]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - squid/squid.nm
Change file layout of the makefiles.
[people/amarx/ipfire-3.x.git] / squid / squid.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = squid
7 version = 3.1.12
8 major_ver = 3.1
9 release = 1
10
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.
16
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
25
26 source_dl = http://www.squid-cache.org/Versions/v3/%{major_ver}/
27
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
40
41 export PKG_REQUIRES_FILTER = perl\(Authen::Smb\)
42
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
84
85 install_cmds
86 rm -vf %{BUILDROOT}/etc/squid/errors
87 rmdir %{BUILDROOT}/var/logs
88
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
92
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
100
101 packages
102 package %{name}
103 requires = /usr/bin/smbclient
104 end
105 end