]> git.ipfire.org Git - ipfire-3.x.git/blame - pkgs/core/squid/squid.nm
New naoki file: squid.
[ipfire-3.x.git] / pkgs / core / squid / squid.nm
CommitLineData
4f9dda45
BS
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
25include $(PKGROOT)/Include
26
27PKG_NAME = squid
28PKG_VER = 3.0.STABLE18
29PKG_REL = 0
30
31PKG_MAINTAINER =
32PKG_GROUP = Networking/Daemons
33PKG_URL = http://www.squid-cache.org/
34PKG_LICENSE = GPLv2+
35PKG_SUMMARY = The Squid proxy caching server.
36
37PKG_DEPS += openssl openldap
38
39define PKG_DESCRIPTION
40 Squid is a high-performance proxy caching server for Web clients, \
41 supporting FTP, gopher, and HTTP data objects. Unlike traditional \
42 caching software, Squid handles all requests in a single, \
43 non-blocking, I/O-driven process. Squid keeps meta data and especially \
44 hot objects cached in RAM, caches DNS lookups, supports non-blocking \
45 DNS lookups, and implements negative caching of failed requests.
46
47endef
48
49PKG_BUILD_DEPS+= openssl openldap coreutils shadow
50
51PKG_TARBALL = $(THISAPP).tar.bz2
52
53###############################################################################
54# Installation Details
55###############################################################################
56
57define STAGE_BUILD
58 cd $(DIR_APP) && \
59 ./configure \
60 $(CONFIGURE_ARCH) \
61 --prefix=/usr \
62 --datadir=/usr/lib/squid \
63 --libexecdir=/usr/lib/squid \
64 --localstatedir=/var \
65 --sysconfdir=/etc/squid \
66 --enable-storeio="aufs,diskd,ufs,null" \
67 --enable-removal-policies="heap,lru" \
68 --enable-icmp \
69 --enable-delay-pools \
70 --disable-esi \
71 --disable-icap-client \
72 --enable-useragent-log \
73 --enable-referrer-log \
74 --disable-wccp \
75 --disable-wccpv2 \
76 --enable-kill-parent-hack \
77 --enable-snmp \
78 --enable-arp-acl \
79 --enable-htcp \
80 --enable-ssl \
81 --enable-forw-via-db \
82 --disable-cache-digests \
83 --enable-poll \
84 --enable-select \
85 --disable-kqueue \
86 --enable-epoll \
87 --enable-http-violations \
88 --enable-linux-netfilter \
89 --disable-ident-lookups \
90 --enable-internal-dns \
91 --enable-auth=basic,ntlm \
92 --enable-basic-auth-helpers="LDAP,MSNT,multi-domain-NTLM,PAM,NCSA,SMB,squid_radius_auth" \
93 --enable-ntlm-auth-helpers="SMB" \
94 --enable-ntlm-fail-open \
95 --enable-unlinkd \
96 --with-pthreads \
97 --with-aio \
98 --with-dl \
99 --with-large-files
100
101
102 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
103endef
104
105define STAGE_INSTALL
106 cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
107
108 rm -vf $(BUILDROOT)/etc/squid/errors
109# ln -svf $(BUILDROOT)/usr/lib/squid/errors/English $(BUILDROOT)/etc/squid/errors
110
111 -mkdir -pv $(BUILDROOT)/var/log/cache $(BUILDROOT)/var/log/squid
112 touch $(BUILDROOT)/var/log/squid/access.log
113 -mkdir -pv $(BUILDROOT)/var/cache/squid
114 groupadd -r squid && useradd -r -g squid -d $(BUILDROOT)/var/cache/squid -s /bin/false -p '*' squid
115 chown -Rv squid:squid $(BUILDROOT)/var/log/squid $(BUILDROOT)/var/log/cache $(BUILDROOT)/var/cache/squid
116 chmod 600 $(BUILDROOT)/var/cache/squid
117 chown squid:squid $(BUILDROOT)/var/log/squid
118# ln -svf $(BUILDROOT)/usr/lib/squid $(BUILDROOT)/usr/lib/squid/auth
119
120endef