]>
Commit | Line | Data |
---|---|---|
4f9dda45 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4f9dda45 BS |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = squid |
802ea3af | 7 | major_ver = 3.1 |
165d2feb MT |
8 | version = %{major_ver}.12 |
9 | release = 2 | |
4f9dda45 | 10 | |
802ea3af MT |
11 | maintainer = Christian Schmidt <christian.schmidt@ipfire.org> |
12 | groups = Networking/Daemons | |
13 | url = http://www.squid-cache.org/ | |
14 | license = GPLv2+ | |
15 | summary = The Squid proxy caching server. | |
4f9dda45 | 16 | |
802ea3af MT |
17 | description |
18 | Squid is a high-performance proxy caching server for Web clients, | |
19 | supporting FTP, gopher, and HTTP data objects. Unlike traditional | |
20 | caching software, Squid handles all requests in a single, | |
21 | non-blocking, I/O-driven process. Squid keeps meta data and especially | |
22 | hot objects cached in RAM, caches DNS lookups, supports non-blocking | |
23 | DNS lookups, and implements negative caching of failed requests. | |
24 | end | |
4f9dda45 | 25 | |
802ea3af | 26 | source_dl = http://www.squid-cache.org/Versions/v3/%{major_ver}/ |
321c867a | 27 | |
802ea3af MT |
28 | build |
29 | requires | |
30 | gcc-c++ | |
31 | libxml2-devel | |
32 | openssl-devel | |
33 | openldap-devel | |
34 | samba-devel | |
35 | iptables-devel | |
36 | pam-devel | |
37 | libcap-devel | |
38 | /usr/bin/smbclient | |
39 | end | |
4f9dda45 | 40 | |
165d2feb | 41 | CFLAGS += -Wno-error |
4f9dda45 | 42 | |
802ea3af MT |
43 | configure_options += \ |
44 | --datadir=/usr/lib/squid \ | |
45 | --libexecdir=/usr/lib/squid \ | |
46 | --localstatedir=/var \ | |
47 | --sysconfdir=/etc/squid \ | |
48 | --enable-storeio="aufs,diskd,ufs" \ | |
49 | --enable-removal-policies="heap,lru" \ | |
50 | --enable-icmp \ | |
51 | --enable-delay-pools \ | |
52 | --disable-esi \ | |
53 | --disable-icap-client \ | |
54 | --enable-useragent-log \ | |
55 | --enable-referrer-log \ | |
56 | --disable-wccp \ | |
57 | --disable-wccpv2 \ | |
58 | --enable-kill-parent-hack \ | |
59 | --enable-snmp \ | |
60 | --enable-arp-acl \ | |
61 | --enable-ipf-transparent \ | |
62 | --enable-htcp \ | |
63 | --enable-ssl \ | |
64 | --enable-forw-via-db \ | |
65 | --disable-cache-digests \ | |
66 | --enable-poll \ | |
67 | --enable-select \ | |
68 | --disable-kqueue \ | |
69 | --enable-epoll \ | |
70 | --enable-http-violations \ | |
71 | --enable-linux-netfilter \ | |
72 | --disable-ident-lookups \ | |
73 | --enable-internal-dns \ | |
74 | --enable-auth=basic,ntlm \ | |
75 | --enable-basic-auth-helpers="LDAP,MSNT,multi-domain-NTLM,PAM,NCSA,SMB,squid_radius_auth" \ | |
76 | --enable-ntlm-auth-helpers="smb_lm,no_check,fakeauth" \ | |
77 | --enable-ntlm-fail-open \ | |
78 | --with-filedescriptors=16384 \ | |
79 | --enable-unlinkd \ | |
80 | --with-pthreads \ | |
81 | --with-aio \ | |
82 | --with-dl \ | |
83 | --with-large-files | |
4f9dda45 | 84 | |
802ea3af MT |
85 | install_cmds |
86 | rm -vf %{BUILDROOT}/etc/squid/errors | |
87 | rmdir %{BUILDROOT}/var/logs | |
f464ef1e | 88 | |
802ea3af MT |
89 | mkdir -pv %{BUILDROOT}/var/log/cache %{BUILDROOT}/var/log/squid |
90 | touch %{BUILDROOT}/var/log/squid/access.log | |
91 | mkdir -pv %{BUILDROOT}/var/cache/squid | |
4f9dda45 | 92 | |
802ea3af MT |
93 | # What is this????? |
94 | #groupadd -r squid && useradd -r -g squid -d %{BUILDROOT}/var/cache/squid -s /bin/false -p '*' squid | |
95 | #chown -Rv squid:squid %{BUILDROOT}/var/log/squid %{BUILDROOT}/var/log/cache %{BUILDROOT}/var/cache/squid | |
96 | #chmod 600 %{BUILDROOT}/var/cache/squid | |
97 | #chown squid:squid %{BUILDROOT}/var/log/squid | |
98 | end | |
99 | end | |
4f9dda45 | 100 | |
802ea3af MT |
101 | packages |
102 | package %{name} | |
103 | requires = /usr/bin/smbclient | |
165d2feb MT |
104 | |
105 | filter_requires = perl\(Authen::Smb\) | |
802ea3af MT |
106 | end |
107 | end |