]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/squid/squid.nm
Remove legacy build system.
[people/ms/ipfire-3.x.git] / pkgs / squid / squid.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = squid
28 PKG_VER = 3.1.8
29 PKG_REL = 0
30
31 PKG_MAINTAINER = Christian Schmidt <christian.schmidt@ipfire.org>
32 PKG_GROUP = Networking/Daemons
33 PKG_URL = http://www.squid-cache.org/
34 PKG_LICENSE = GPLv2+
35 PKG_SUMMARY = The Squid proxy caching server.
36
37 PKG_BUILD_DEPS+= gcc-c++ libxml2-devel openssl-devel openldap-devel samba-devel \
38 iptables-devel $(PKG_DEPS) pam-devel
39 PKG_DEPS += /usr/bin/smbclient
40
41 define PKG_DESCRIPTION
42 Squid is a high-performance proxy caching server for Web clients, \
43 supporting FTP, gopher, and HTTP data objects. Unlike traditional \
44 caching software, Squid handles all requests in a single, \
45 non-blocking, I/O-driven process. Squid keeps meta data and especially \
46 hot objects cached in RAM, caches DNS lookups, supports non-blocking \
47 DNS lookups, and implements negative caching of failed requests.
48
49 endef
50
51 PKG_TARBALL = $(THISAPP).tar.bz2
52
53 CONFIGURE_OPTIONS += \
54 --datadir=/usr/lib/squid \
55 --libexecdir=/usr/lib/squid \
56 --localstatedir=/var \
57 --sysconfdir=/etc/squid \
58 --enable-storeio="aufs,diskd,ufs" \
59 --enable-removal-policies="heap,lru" \
60 --enable-icmp \
61 --enable-delay-pools \
62 --disable-esi \
63 --disable-icap-client \
64 --enable-useragent-log \
65 --enable-referrer-log \
66 --disable-wccp \
67 --disable-wccpv2 \
68 --enable-kill-parent-hack \
69 --enable-snmp \
70 --enable-arp-acl \
71 --enable-ipf-transparent \
72 --enable-htcp \
73 --enable-ssl \
74 --enable-forw-via-db \
75 --disable-cache-digests \
76 --enable-poll \
77 --enable-select \
78 --disable-kqueue \
79 --enable-epoll \
80 --enable-http-violations \
81 --enable-linux-netfilter \
82 --disable-ident-lookups \
83 --enable-internal-dns \
84 --enable-auth=basic,ntlm \
85 --enable-basic-auth-helpers="LDAP,MSNT,multi-domain-NTLM,PAM,NCSA,SMB,squid_radius_auth" \
86 --enable-ntlm-auth-helpers="smb_lm,no_check,fakeauth" \
87 --enable-ntlm-fail-open \
88 --with-filedescriptors=16384 \
89 --enable-unlinkd \
90 --with-pthreads \
91 --with-aio \
92 --with-dl \
93 --with-large-files
94
95 define STAGE_INSTALL_CMDS
96 rm -vf $(BUILDROOT)/etc/squid/errors
97 rmdir $(BUILDROOT)/var/logs
98
99 -mkdir -pv $(BUILDROOT)/var/log/cache $(BUILDROOT)/var/log/squid
100 touch $(BUILDROOT)/var/log/squid/access.log
101 -mkdir -pv $(BUILDROOT)/var/cache/squid
102
103 # What is this?????
104 #groupadd -r squid && useradd -r -g squid -d $(BUILDROOT)/var/cache/squid -s /bin/false -p '*' squid
105 #chown -Rv squid:squid $(BUILDROOT)/var/log/squid $(BUILDROOT)/var/log/cache $(BUILDROOT)/var/cache/squid
106 #chmod 600 $(BUILDROOT)/var/cache/squid
107 #chown squid:squid $(BUILDROOT)/var/log/squid
108 endef