View | Details | Raw Unified | Return to bug 59091
Collapse All | Expand All

(-)projekte/FreeBSD/ports/www/squid/Makefile (-75 / +161 lines)
Lines 1-72 Link Here
1
# New ports collection makefile for:	squid24
1
# New ports collection makefile for:	squid
2
# Date created:		Tue Mar 27 14:56:08 CEST 2001
2
# Date created:		Tue Mar 27 14:56:08 CEST 2001
3
# Whom:			Adrian Chadd <adrian@FreeBSD.org>
3
# Whom:			Adrian Chadd <adrian@FreeBSD.org>
4
#
4
#
5
# $FreeBSD: ports/www/squid/Makefile,v 1.101 2003/07/27 08:45:10 adrian Exp $
5
# $FreeBSD: ports/www/squid/Makefile,v 1.101 2003/07/27 08:45:10 adrian Exp $
6
#
6
#
7
# Tunables:
8
# WITH_SQUID_PINGER: install the external icmp helper program (`pinger')
9
#                    for hierarchy stats and selection (default: no)
10
# WITH_SQUID_DNSSERVER: install the external dns helper program (`dnsserver')
11
#                       (default: do not install)
12
# WITHOUT_SQUID_UNLINKD: do not install and use an external unlink daemon
13
#                        (default: install)
14
# WITH_SQUID_DIGEST_AUTH: install support for digest authentication
15
# WITH_SQUID_LDAP_AUTH: install external modules for authentication against
16
#                       LDAP servers
17
# SQUID_{U,G}ID: which user/group ID squid should run as (default: squid/squid)
7
18
8
PORTNAME=	squid
19
PORTNAME=	squid
9
PORTVERSION=	2.5
20
PORTVERSION=	2.5.4
10
PORTREVISION=	4
21
PORTREVISION=
11
CATEGORIES=	www
22
CATEGORIES=	www
12
MASTER_SITES=	\
23
24
MAINTAINER=	adrian@freebsd.org
25
COMMENT=	The successful WWW proxy cache and accelerator
26
27
MASTER_SITE_SUBDIR=	squid-2/STABLE
28
MASTER_SITES=  \
13
	ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \
29
	ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \
14
	ftp://www.unimelb.edu.au/pub/cwis/servers/unix/squid/%SUBDIR%/ \
30
	ftp://ftp.unimelb.edu.au/pub/cwis/servers/unix/squid/%SUBDIR%/ \
31
	ftp://ftp.leo.org/pub/comp/general/infosys/www/servers/squid/%SUBDIR%/ \
15
	ftp://sunsite.auc.dk/pub/infosystems/squid/%SUBDIR%/ \
32
	ftp://sunsite.auc.dk/pub/infosystems/squid/%SUBDIR%/ \
16
	ftp://ftp.net.lut.ac.uk/squid/%SUBDIR%/ \
17
	${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/squid/&,}
33
	${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/squid/&,}
18
MASTER_SITE_SUBDIR=	squid-2/STABLE
34
DISTFILES=	squid-2.5.STABLE4.tar.gz
19
DISTNAME=	squid-2.5.STABLE3
20
EXTRACT_SUFX=	.tar.bz2
21
DIST_SUBDIR=	squid2.5
35
DIST_SUBDIR=	squid2.5
22
36
.if !defined(NOPORTDOCS)
37
MASTER_SITES+=	http://www.squid-cache.org/Doc/FAQ/:doc
38
DISTFILES+=	FAQ.tar.gz:doc
39
IGNOREFILES+=	FAQ.tar.gz
40
.endif
23
PATCH_SITES=	http://www.squid-cache.org/Versions/v2/2.5/bugs/
41
PATCH_SITES=	http://www.squid-cache.org/Versions/v2/2.5/bugs/
24
PATCHFILES=	squid-2.5.STABLE3-deny_info.patch \
42
PATCHFILES=	squid-2.5.STABLE4-reconfigure_message.patch \
25
		squid-2.5.STABLE3-cache_dir_doc.patch \
43
		squid-2.5.STABLE4-digest_auth_pwchange.patch \
26
		squid-2.5.STABLE3-devnull.patch \
44
		squid-2.5.STABLE4-redirect_login_space.patch \
27
		squid-2.5.STABLE3-log_quote.patch \
45
		squid-2.5.STABLE4-fqdnnegcache.patch \
28
		squid-2.5.STABLE3-rfc_reference.patch \
46
		pam_auth-2.2.patch \
29
		squid-2.5.STABLE3-external_acl_ident.patch \
47
		squid-2.5.STABLE4_auth_param_doc.patch \
30
		squid-2.5.STABLE3-gcc-3_3.patch \
48
		squid-2.5.STABLE4-error_load_text.patch \
31
		squid-2.5.STABLE3-carpfactor.patch \
49
		squid-2.5.STABLE4-xpi_mime.patch \
32
		squid-2.5.STABLE3-neighbor_type_domain.patch \
50
		squid-2.5.STABLE4-size_overflow.patch
33
		squid-2.5.STABLE3-header_access_peer.patch \
51
PATCH_DIST_STRIP= -p1
34
		squid-2.5.STABLE3-memwarnsbrk.patch \
35
		squid-2.5.STABLE3-hostscomments.patch \
36
		squid-2.5.STABLE3-store_check_cachable_stats.patch \
37
		squid-2.5.STABLE3-cachePeerPingsSentsnmp.patch \
38
		squid-2.5.STABLE3-minimum_retry_timeout.patch \
39
		squid-2.5.STABLE3-tcp_reset_leak.patch \
40
		squid-2.5.STABLE3-hostheader.patch \
41
		squid-2.5.STABLE3-reply_body_max_size.patch \
42
		squid-2.5.STABLE3-ie_refresh.patch \
43
		squid-2.5.STABLE3-http_reply_access-denied.patch \
44
		squid-2.5.STABLE3-SENT_PASV.patch \
45
		squid-2.5.STABLE3-peer_digest_not_found_assertion.patch \
46
		squid-2.5.STABLE3-round_robin_max_size.patch
47
PATCH_DIST_STRIP=	-p1
48
52
49
MAINTAINER=	adrian@freebsd.org
53
WRKSRC=		${WRKDIR}/${PORTNAME}-2.5.STABLE4
50
COMMENT=	The successful WWW proxy cache and accelerator
51
54
52
GNU_CONFIGURE=	yes
55
GNU_CONFIGURE=	yes
53
USE_BZIP2=	yes
54
USE_PERL5=	yes
56
USE_PERL5=	yes
55
USE_REINPLACE=	yes
57
USE_REINPLACE=	yes
56
# Follow the apache port's lead...
58
57
CONFIGURE_ARGS=	--bindir=${PREFIX}/sbin  --sysconfdir=${PREFIX}/etc/squid \
59
CONFIGURE_ARGS=	--bindir=${PREFIX}/sbin  --sysconfdir=${PREFIX}/etc/squid \
58
		--datadir=${PREFIX}/etc/squid \
60
		--datadir=${PREFIX}/etc/squid \
59
		--localstatedir=${PREFIX}/squid \
61
		--localstatedir=${PREFIX}/squid \
60
		--enable-storeio="ufs diskd null" \
62
		--enable-storeio="ufs diskd null" \
61
		--enable-removal-policies="lru heap" \
63
		--enable-removal-policies="lru heap" \
62
		--enable-auth=basic --enable-basic-auth-helpers="NCSA PAM YP" \
63
		--enable-external-acl-helpers="ip_user unix_group" \
64
		--enable-underscores
64
		--enable-underscores
65
65
66
STRIP=		# won't install scripts correctly otherwise.
66
MAKEFILE=	Makefile
67
MAKEFILE=	Makefile
67
MAN8=	pam_auth.8 squid_unix_group.8 squid.8
68
68
69
# Some other configure options..
69
SQUID_UID?=	squid
70
SQUID_GID?=	squid
71
72
MAN8=		squid.8
73
74
docs=		QUICKSTART README RELEASENOTES.html doc/debug-sections.txt
75
libexec=	cachemgr.cgi
76
sbin=		squidclient squid
77
78
# authentication methods and modules:
79
80
auth_methods=	basic ntlm
81
basic_auth=	NCSA PAM YP MSNT
82
external_acl=	ip_user unix_group
83
MAN8+=		pam_auth.8 squid_unix_group.8
84
libexec+=	ip_user_check msnt_auth ntlm_auth ncsa_auth pam_auth \
85
		squid_unix_group yp_auth
86
87
.ifdef WITH_SQUID_DIGEST_AUTH
88
auth_methods+=	digest
89
CONFIGURE_ARGS+= --enable-digest-auth-helpers="password"
90
libexec+=	digest_pw_auth
91
PLIST_SUB+=	DIGEST_AUTH_HELPER=""
92
.else
93
PLIST_SUB+=	DIGEST_AUTH_HELPER="@comment "
94
.endif
95
96
.ifdef WITH_SQUID_LDAP_AUTH
97
USE_OPENLDAP=	yes
98
CONFIGURE_ENV+=	CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
99
		LDFLAGS="-L${LOCALBASE}/lib"
100
basic_auth+=	LDAP
101
external_acl+=	ldap_group
102
MAN8+=		squid_ldap_auth.8 squid_ldap_group.8
103
libexec+=	squid_ldap_auth squid_ldap_group
104
PLIST_SUB+=	LDAP_AUTH_HELPER=""
105
.else
106
PLIST_SUB+=	LDAP_AUTH_HELPER="@comment "
107
.endif
108
109
CONFIGURE_ARGS+= --enable-auth="${auth_methods}" \
110
		 --enable-basic-auth-helpers="${basic_auth}" \
111
		 --enable-external-acl-helpers="${external_acl}" \
112
		 --enable-ntlm-auth-helpers="SMB"
113
114
# Other external helper programs:
115
116
.ifdef WITH_SQUID_DNSSERVER
117
CONFIGURE_ARGS+= --disable-internal-dns
118
PLIST_SUB+=	DNSSERVER=""
119
libexec+=	dnsserver
120
.else
121
PLIST_SUB+=	DNSSERVER="@comment "
122
.endif
123
.ifdef WITH_SQUID_PINGER
124
CONFIGURE_ARGS+= --enable-icmp
125
PLIST_SUB+=	PINGER=""
126
.else
127
PLIST_SUB+=	PINGER="@comment "
128
.endif
129
.ifdef WITHOUT_SQUID_UNLINKD
130
CONFIGURE_ARGS+= --disable-unlinkd
131
PLIST_SUB+=	UNLINKD="@comment "
132
.else
133
libexec+=	unlinkd
134
PLIST_SUB+=	UNLINKD=""
135
.endif
136
137
# Some other configure options:
138
#
70
#  - Compile and use the malloc package from Doug Lea
139
#  - Compile and use the malloc package from Doug Lea
71
#CONFIGURE_ARGS+= --enable-dlmalloc
140
#CONFIGURE_ARGS+= --enable-dlmalloc
72
#  - Compile and use the supplied GNUregex routines instead of BSD regex.
141
#  - Compile and use the supplied GNUregex routines instead of BSD regex.
Lines 79-86 Link Here
79
#CONFIGURE_ARGS+= --enable-xmalloc-statistics
148
#CONFIGURE_ARGS+= --enable-xmalloc-statistics
80
#  - Enable CARP support
149
#  - Enable CARP support
81
#CONFIGURE_ARGS+= --enable-carp
150
#CONFIGURE_ARGS+= --enable-carp
82
#  - Enable ICMP pinging for heirarchy stats and selection
83
#CONFIGURE_ARGS+= --enable-icmp
84
#  - Enable delay pools to limit bandwidth usage
151
#  - Enable delay pools to limit bandwidth usage
85
#CONFIGURE_ARGS+= --enable-delay-pools
152
#CONFIGURE_ARGS+= --enable-delay-pools
86
#  - Enable generic memory use tracing
153
#  - Enable generic memory use tracing
Lines 106-116 Link Here
106
#CONFIGURE_ARGS+= --enable-htcp
173
#CONFIGURE_ARGS+= --enable-htcp
107
#  - Enable Forw/Via database
174
#  - Enable Forw/Via database
108
#CONFIGURE_ARGS+= --enable-forw-via-db
175
#CONFIGURE_ARGS+= --enable-forw-via-db
109
#  - Use Cache Digests - see http://squid.nlanr.net/Squid/FAQ/FAQ-16.html
176
#  - Use Cache Digests - see http://www.squid-cache.org/Doc/FAQ/FAQ-16.html
110
#CONFIGURE_ARGS+= --enable-cache-digests
177
#CONFIGURE_ARGS+= --enable-cache-digests
111
#  - Select language for Error pages (see errors dir)
178
#  - Select language for Error pages (see errors dir)
112
#CONFIGURE_ARGS+= --enable-err-language=lang
179
#CONFIGURE_ARGS+= --enable-err-language=lang
113
#  (--enable-poll is not needed, it's detected correctly on 3.0)
114
#  - Strict HTTP compliance
180
#  - Strict HTTP compliance
115
#CONFIGURE_ARGS+= --disable-http-violations
181
#CONFIGURE_ARGS+= --disable-http-violations
116
#  - Enable Transparent Proxy support for IP-Filter systems (incl 3.0)
182
#  - Enable Transparent Proxy support for IP-Filter systems (incl 3.0)
Lines 118-162 Link Here
118
# (--enable-leakfinder is a developer support tool only)
184
# (--enable-leakfinder is a developer support tool only)
119
#  - Compile out code that does optional Ident (RFC931) lookups
185
#  - Compile out code that does optional Ident (RFC931) lookups
120
#CONFIGURE_ARGS+= --disable-ident-lookups
186
#CONFIGURE_ARGS+= --disable-ident-lookups
121
#  - Disable squid's internal async DNS lookup code.
122
#CONFIGURE_ARGS+= --disable-internal-dns
123
#  - Use truncate() rather than unlink()
187
#  - Use truncate() rather than unlink()
124
#CONFIGURE_ARGS+= --enable-truncate
188
#CONFIGURE_ARGS+= --enable-truncate
125
#  - accept the illegal '_' character in hostnames.
126
#CONFIGURE_ARGS+= --enable-underscores
127
#  - Enable control of different heap replacement algorithms at runtime.
189
#  - Enable control of different heap replacement algorithms at runtime.
128
#CONFIGURE_ARGS+= --enable-removal-policies
190
#CONFIGURE_ARGS+= --enable-removal-policies
129
191
130
post-patch:
192
post-patch:
131
	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
193
	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
132
	@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/doc/squid.8
194
	@${REINPLACE_CMD} -e 's|/etc/squid/|${PREFIX}/etc/squid/|g' ${WRKSRC}/doc/squid.8
195
.if !defined(NOPORTDOCS)
196
	@cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} <${FILESDIR}/FAQ.html.patch
197
.endif
198
199
pre-configure:
200
.if defined(PACKAGE_BUILDING) || defined(BATCH)
201
	@${ECHO} ""; \
202
	${ECHO} "This port has the following tunables:"; \
203
	${ECHO} ""; \
204
	${ECHO} "     SQUID_UID (default: ${SQUID_UID})"; \
205
	${ECHO} "     SQUID_GID (default: ${SQUID_GID})"; \
206
	${ECHO} "     WITH_SQUID_PINGER - install the external icmp helper program (default: no)"; \
207
	${ECHO} "     WITH_SQUID_DNSSERVER - install the external dns helper program (default: no)"; \
208
	${ECHO} "     WITHOUT_SQUID_UNLINKD - do not install and use an external unlink daemon"; \
209
	${ECHO} "                             (default: install)"; \
210
	${ECHO} "     WITH_SQUID_DIGEST_AUTH - install support for digest authentication"; \
211
	${ECHO} "     WITH_SQUID_LDAP_AUTH - install external modules for authentication against"; \
212
	${ECHO} "                            LDAP servers"; \
213
	${ECHO} ""; \
214
	${ECHO} "Hit Ctrl-C within 10 seconds to abort."; \
215
	${ECHO} ""; \
216
	sleep 10
217
.endif
218
	@${REINPLACE_CMD} -e 's|%%SQUID_UID%%|${SQUID_UID}|g' \
219
	    -e 's|%%SQUID_GID%%|${SQUID_GID}|g' ${WRKSRC}/src/cf.data.pre
220
221
pre-install:
222
	@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' -e 's|%%SQUID_UID%%|${SQUID_UID}|g' ${FILESDIR}/squid.sh.sample >${WRKSRC}/squid.sh.sample
223
	@env SQUID_UID=${SQUID_UID} SQUID_GID=${SQUID_GID} \
224
	    PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
133
225
134
post-install:
226
post-install:
135
#	I don't think many people use the pinger nowadays, and if you
227
.ifdef WITH_SQUID_PINGER
136
#	do you'll want squid in its own group so as to restrict access
228
	cd ${WRKSRC}; make install-pinger; \
137
#	to it.
229
	${STRIP_CMD} ${PREFIX}/libexec/pinger; \
138
#	cd ${WRKSRC}/src; make install-pinger
230
	${CHMOD} 4710 ${PREFIX}/libexec/pinger; \
139
.for sbin_file in client squid
231
	${CHGRP} ${SQUID_GID} ${PREFIX}/libexec/pinger
140
	if [ -f ${PREFIX}/sbin/${sbin_file} ] ; then \
232
.endif
141
		${STRIP_CMD} ${PREFIX}/sbin/${sbin_file} ; \
233
.for dir in libexec sbin
142
	fi
234
.for file in ${${dir}}
235
	${STRIP_CMD} ${PREFIX}/${dir}/${file}
236
.endfor
143
.endfor
237
.endfor
144
.for libexec_file in cachemgr.cgi dnsserver pinger unlinkd
238
	${INSTALL_SCRIPT} ${WRKSRC}/squid.sh.sample ${PREFIX}/etc/rc.d
145
	if [ -f ${PREFIX}/libexec/${libexec_file} ] ; then \
239
.if !defined(NOPORTDOCS)
146
		${STRIP_CMD} ${PREFIX}/libexec/${libexec_file} ; \
240
	${MKDIR} ${DOCSDIR}
147
	fi
241
	${INSTALL_DATA} ${WRKDIR}/FAQ*.html ${DOCSDIR}
242
.for file in ${docs}
243
	${INSTALL_MAN} ${WRKSRC}/${file} ${DOCSDIR}
148
.endfor
244
.endfor
149
	@if [ ! -d ${PREFIX}/squid/logs ]; then			\
245
.endif
150
		${MKDIR} ${PREFIX}/squid/logs;		  	\
246
	@env PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
151
		${CHOWN} nobody:nogroup ${PREFIX}/squid/logs;   \
152
	fi
153
	@if [ ! -d ${PREFIX}/squid/cache ]; then		\
154
		${MKDIR} ${PREFIX}/squid/cache;			\
155
		${CHOWN} nobody:nogroup ${PREFIX}/squid/cache;  \
156
	fi
157
	@if [ ! -f ${PREFIX}/etc/rc.d/squid.sh ]; then \
158
		${ECHO} "Installing ${PREFIX}/etc/rc.d/squid.sh startup file."; \
159
		${INSTALL_SCRIPT} -m 751 ${FILESDIR}/squid.sh ${PREFIX}/etc/rc.d/squid.sh; \
160
	fi
161
247
162
.include <bsd.port.mk>
248
.include <bsd.port.mk>
(-)projekte/FreeBSD/ports/www/squid/distinfo (-24 / +11 lines)
Lines 1-24 Link Here
1
MD5 (squid2.5/squid-2.5.STABLE3.tar.bz2) = ed5eb7835d00fdecc7dd7c1837542df2
1
MD5 (squid2.5/squid-2.5.STABLE4.tar.gz) = e1ffa9ff3bdf40919089bd2693ea599b
2
MD5 (squid2.5/squid-2.5.STABLE3-deny_info.patch) = fd6d2d1a5a75b06e86b743f51866c861
2
MD5 (squid2.5/squid-2.5.STABLE4-reconfigure_message.patch) = a746143deab8b609730660916a297618
3
MD5 (squid2.5/squid-2.5.STABLE3-cache_dir_doc.patch) = e7f6d2bd28430e10999b12001cbb4cae
3
MD5 (squid2.5/squid-2.5.STABLE4-digest_auth_pwchange.patch) = e5020f5b87a92c4d9621ce25403d691b
4
MD5 (squid2.5/squid-2.5.STABLE3-devnull.patch) = a31d669461e2893996f27b5d10ab06b9
4
MD5 (squid2.5/squid-2.5.STABLE4-redirect_login_space.patch) = 2374ed6dae7ef57c009e2428284d6b65
5
MD5 (squid2.5/squid-2.5.STABLE3-log_quote.patch) = 9e391cbb39226abc89281cd4138ddb98
5
MD5 (squid2.5/squid-2.5.STABLE4-fqdnnegcache.patch) = ae1b7cce41ca403ebd7115d4506b0c25
6
MD5 (squid2.5/squid-2.5.STABLE3-rfc_reference.patch) = 48996215282d80caf3b5cbbbdb7965b7
6
MD5 (squid2.5/pam_auth-2.2.patch) = 3037a67d8f4b85cd7d51cb2dd5b4e8b8
7
MD5 (squid2.5/squid-2.5.STABLE3-external_acl_ident.patch) = a7ab2152b202bf9941ee8200f20b3032
7
MD5 (squid2.5/squid-2.5.STABLE4_auth_param_doc.patch) = 3b35c424db58c71c541563cd5ae39d15
8
MD5 (squid2.5/squid-2.5.STABLE3-gcc-3_3.patch) = 49195dd7f3745c0f54c0ca07068b2d67
8
MD5 (squid2.5/squid-2.5.STABLE4-error_load_text.patch) = 3935a3005d125f55cd78b228eba20647
9
MD5 (squid2.5/squid-2.5.STABLE3-carpfactor.patch) = ac2a5f8304b29951ee3579cce10a6ea6
9
MD5 (squid2.5/squid-2.5.STABLE4-xpi_mime.patch) = 1143fb9244690a24450c3c9ce6105da4
10
MD5 (squid2.5/squid-2.5.STABLE3-neighbor_type_domain.patch) = 3edd72ec42e0b49b36096a6a8fff6b2a
10
MD5 (squid2.5/squid-2.5.STABLE4-size_overflow.patch) = 7cd2d6b1ebbd86aa143fa5a57156d6ce
11
MD5 (squid2.5/squid-2.5.STABLE3-header_access_peer.patch) = 5015f95e0db20ddcb25082a92f8861a8
11
MD5 (squid2.5/FAQ.tar.gz) = IGNORE
12
MD5 (squid2.5/squid-2.5.STABLE3-memwarnsbrk.patch) = 47cc7566f9584c6f8c764afcb95ce636
13
MD5 (squid2.5/squid-2.5.STABLE3-hostscomments.patch) = dabea14824e5b3d48b211c933471036a
14
MD5 (squid2.5/squid-2.5.STABLE3-store_check_cachable_stats.patch) = 04477bf0722026a67bbd6954b02c9374
15
MD5 (squid2.5/squid-2.5.STABLE3-cachePeerPingsSentsnmp.patch) = b0ecd095062a21d72b15a817f4e821b5
16
MD5 (squid2.5/squid-2.5.STABLE3-minimum_retry_timeout.patch) = b265b000b2f5d48a385f68c6d987cbea
17
MD5 (squid2.5/squid-2.5.STABLE3-tcp_reset_leak.patch) = 49c5aeb54467e7cbf44edd2271006bb3
18
MD5 (squid2.5/squid-2.5.STABLE3-hostheader.patch) = b786122d2353e1e607d1d02e18a86b61
19
MD5 (squid2.5/squid-2.5.STABLE3-reply_body_max_size.patch) = f869e793478ad6c3c706424d0236dcaa
20
MD5 (squid2.5/squid-2.5.STABLE3-ie_refresh.patch) = 82bfba0cde950541c6aef5e8b52db010
21
MD5 (squid2.5/squid-2.5.STABLE3-http_reply_access-denied.patch) = 2abe9bd50e6561251dfd96d2583d15bc
22
MD5 (squid2.5/squid-2.5.STABLE3-SENT_PASV.patch) = c394ec388054b1f86d419006250400bd
23
MD5 (squid2.5/squid-2.5.STABLE3-peer_digest_not_found_assertion.patch) = f071e6e3ba5a56ce5d0350d7528b597c
24
MD5 (squid2.5/squid-2.5.STABLE3-round_robin_max_size.patch) = 081a220c874765395394baa4482a8913
(-)projekte/FreeBSD/ports/www/squid/pkg-deinstall (+41 lines)
Added Link Here
1
#! /bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
PATH=/bin:/usr/bin:/usr/sbin:${PKG_PREFIX:-/usr/local}/sbin
7
pkgname=$1
8
9
case $2 in
10
	DEINSTALL)
11
	if ps -axc | grep -q squid; then
12
		echo "It seems squid is still running. I will try to shut it down:"
13
		squid -k shutdown
14
		while ps -axc | grep -q squid; do
15
			sleep 5
16
		done
17
		if ps -axc | grep -q squid; then
18
			echo "could not stop squid -- aborting the deinstallation process!"
19
			exit 1
20
		fi
21
	fi
22
	echo "squid is not running, starting the deinstallation..."
23
	;;
24
	POST-DEINSTALL)
25
	echo "==> post-deinstallation information for ${pkgname}"
26
	echo ""
27
	echo "    Please note that ${pkgname} was not completely removed"
28
	echo "    from this system."
29
	echo ""
30
	echo "    The cache and log directories, squid's user account,"
31
	echo "    and any modified configuration files have been preserved"
32
	echo "    in case you want to install an updated version of squid"
33
	echo "    on this system. You must remove them manually if you do"
34
	echo "    not want to use squid any longer."
35
	echo ""
36
	;;
37
	*)
38
	exit 64
39
	;;
40
esac
41
exit 0
(-)projekte/FreeBSD/ports/www/squid/pkg-install (-31 / +71 lines)
Lines 1-44 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
2
5
3
PKGNAME=$1
6
PATH=/bin:/usr/bin:/usr/sbin
7
pkgname=$1
8
squid_base=${PKG_PREFIX:-/usr/local}/squid
9
squid_conf=${PKG_PREFIX:-/usr/local}/etc/squid
10
squid_user=${SQUID_UID:=squid}
11
squid_group=${SQUID_GID:=squid}
4
12
5
case $2 in
13
case $2 in
6
    PRE-INSTALL)
14
	PRE-INSTALL)
15
	echo "==> Pre-installation configuration for ${pkgname}"
16
	# XXX: Check whether pw really exists (pre 2.2.8 Systems)?
17
	if ! pw groupshow ${squid_group} >/dev/null 2>&1; then
18
		echo "There is no group \"${squid_group}\" on this system, so I will try to create one:"
19
		pw groupadd ${squid_group}
20
	else
21
		echo "I will use the existing group \"${squid_group}\"."
22
	fi
23
	if ! pw usershow ${squid_user} >/dev/null 2>&1; then
24
		echo "There is no account \"${squid_user}\" on this system, so I will try to create it:"
25
		pw useradd ${squid_user} -c "squid caching-proxy pseudo user" -g ${squid_group} -d "${squid_base}" -s "/sbin/nologin" -h -
26
		echo "Success! The \"${squid_user}\" account has been created with the following settings:"
27
		pw usershow ${squid_user}
28
	else
29
		echo "I will use the existing account \"${squid_user}\"."
30
		tput md
31
		echo ""
32
		echo "PLEASE NOTICE: An already present account will be used for squid."
33
		echo "This might be a security risk, please check this account's privileges"
34
		echo "carefully before starting squid!"
35
		echo ""
36
		tput me
37
		if [ -z "${PACKAGE_BUILDING}" ]; then
38
			sleep 10
39
		fi
40
41
	fi
42
	for dir in cache logs; do
43
	if [ ! -d ${squid_base}/${dir} ]; then
44
		echo "Creating ${squid_base}/${dir}..."
45
		install -d -o ${squid_user} -g ${squid_group} -m 0750 ${squid_base}/${dir}
46
	fi
47
	done
48
	if [ ! -d ${squid_conf} ]; then
49
		echo "Creating ${squid_conf}..."
50
		install -d -o root -g ${squid_group} -m 0750 ${squid_conf}
51
	fi
7
	;;
52
	;;
8
    POST-INSTALL)
53
	POST-INSTALL)
9
	echo "==> Post-installation configuration of ${PKGNAME}"
54
	# Install default configuration files:
55
	for file in mime.conf squid.conf; do
56
	if [ -f ${squid_conf}/${file}.default -a ! -f ${squid_conf}/${file} ]; then
57
		echo "Creating ${file}..."
58
		cp ${squid_conf}/${file}.default ${squid_conf}/${file}
59
	fi
60
	done
61
62
	echo "==> Post-installation informations for ${pkgname}"
63
	echo ""
64
	echo "    o You can find the configuration files for this package"
65
	echo "      in the directory ${squid_conf}."
66
	echo "      A sample startup script was installed to ${PREFIX}/etc/rc.d/."
10
	echo ""
67
	echo ""
11
	echo "    o you DO need running nameservice to start and run ${PKGNAME}"
68
	echo "    o A cache directory has been created in ${squid_base}/cache."
69
	echo "      Log files will be written to ${squid_base}/logs."
12
	echo ""
70
	echo ""
13
	echo "    o use the ${PKGNAME} proxy and caching WWW Server by"
71
	echo "    o Note that if you run squid for the first time on this"
14
	echo "      configuring your WWW Navigator (Netscape, Mosaic,...)"
72
	echo "      system, you will need to initialize the cache directory."
15
	echo "      to use it as a proxy server."
73
	echo "      You can do this by running \"squid -z\" as root."
16
	echo ""
74
	echo ""
17
	echo "    o Note that before you can run ${PKGNAME} you will"
75
	echo "    o The default configuration will deny everyone access to the"
18
	echo "      need to initialise the cache directory."
76
	echo "      proxy service. Edit the \"http_access\" directives in"
19
	echo "      You can do this by typing \"squid -z\"."
77
	echo "      ${PKG_PREFIX}/etc/squid/squid.conf to suit your needs."
20
	echo ""
78
	echo ""
21
	echo "==> Press Enter to edit the ${PKGNAME} config file."
22
	echo "    (The defaults are reasonable; and the file is well commented)"
23
	tput md
24
	echo "    You'd certainly like to pay attention to the"
25
	echo "    ACTUAL locations of cache \"spool\", logfiles, pidfile!"
26
	tput me
27
	if [ -z "${PACKAGE_BUILDING}" ]; then read skip; fi
28
	chown root:wheel ${PREFIX}/etc/squid/squid.conf*
29
	chmod 644 ${PREFIX}/etc/squid/squid.conf*
30
	[ -f ${PREFIX}/etc/squid/squid.conf ] || \
31
		cp -fp	${PREFIX}/etc/squid/squid.conf.default \
32
			${PREFIX}/etc/squid/squid.conf
33
	[ -f ${PREFIX}/etc/squid/mime.conf ] || \
34
		cp -fp	${PREFIX}/etc/squid/mime.conf.default \
35
			${PREFIX}/etc/squid/mime.conf
36
	${EDITOR:-vi} ${PREFIX}/etc/squid/squid.conf \
37
		      ${PREFIX}/etc/squid/mime.conf
38
	;;
79
	;;
39
    *)
80
	*)
40
	echo "Unexpected Argument $2!!!"
81
	exit 64
41
	exit 1
42
	;;
82
	;;
43
esac
83
esac
44
exit 0
84
exit 0
(-)projekte/FreeBSD/ports/www/squid/pkg-plist (-16 / +76 lines)
Lines 1-4 Link Here
1
etc/rc.d/squid.sh
1
@unexec rm -f %D/etc/rc.d/squid.sh
2
etc/rc.d/squid.sh.sample
2
etc/squid/icons/anthony-binhex.gif
3
etc/squid/icons/anthony-binhex.gif
3
etc/squid/icons/anthony-bomb.gif
4
etc/squid/icons/anthony-bomb.gif
4
etc/squid/icons/anthony-box.gif
5
etc/squid/icons/anthony-box.gif
Lines 461-466 Link Here
461
etc/squid/errors/Korean/ERR_URN_RESOLVE
462
etc/squid/errors/Korean/ERR_URN_RESOLVE
462
etc/squid/errors/Korean/ERR_WRITE_ERROR
463
etc/squid/errors/Korean/ERR_WRITE_ERROR
463
etc/squid/errors/Korean/ERR_ZERO_SIZE_OBJECT
464
etc/squid/errors/Korean/ERR_ZERO_SIZE_OBJECT
465
etc/squid/errors/Lithuanian/ERR_ACCESS_DENIED
466
etc/squid/errors/Lithuanian/ERR_CACHE_ACCESS_DENIED
467
etc/squid/errors/Lithuanian/ERR_CACHE_MGR_ACCESS_DENIED
468
etc/squid/errors/Lithuanian/ERR_CANNOT_FORWARD
469
etc/squid/errors/Lithuanian/ERR_CONNECT_FAIL
470
etc/squid/errors/Lithuanian/ERR_DNS_FAIL
471
etc/squid/errors/Lithuanian/ERR_FORWARDING_DENIED
472
etc/squid/errors/Lithuanian/ERR_FTP_DISABLED
473
etc/squid/errors/Lithuanian/ERR_FTP_FAILURE
474
etc/squid/errors/Lithuanian/ERR_FTP_PUT_CREATED
475
etc/squid/errors/Lithuanian/ERR_FTP_PUT_ERROR
476
etc/squid/errors/Lithuanian/ERR_FTP_PUT_MODIFIED
477
etc/squid/errors/Lithuanian/ERR_INVALID_REQ
478
etc/squid/errors/Lithuanian/ERR_INVALID_URL
479
etc/squid/errors/Lithuanian/ERR_LIFETIME_EXP
480
etc/squid/errors/Lithuanian/ERR_NO_RELAY
481
etc/squid/errors/Lithuanian/ERR_ONLY_IF_CACHED_MISS
482
etc/squid/errors/Lithuanian/ERR_READ_ERROR
483
etc/squid/errors/Lithuanian/ERR_READ_TIMEOUT
484
etc/squid/errors/Lithuanian/ERR_SOCKET_FAILURE
485
etc/squid/errors/Lithuanian/ERR_UNSUP_REQ
486
etc/squid/errors/Lithuanian/ERR_URN_RESOLVE
487
etc/squid/errors/Lithuanian/ERR_WRITE_ERROR
488
etc/squid/errors/Lithuanian/ERR_ZERO_SIZE_OBJECT
464
etc/squid/errors/Polish/ERR_ACCESS_DENIED
489
etc/squid/errors/Polish/ERR_ACCESS_DENIED
465
etc/squid/errors/Polish/ERR_CACHE_ACCESS_DENIED
490
etc/squid/errors/Polish/ERR_CACHE_ACCESS_DENIED
466
etc/squid/errors/Polish/ERR_CACHE_MGR_ACCESS_DENIED
491
etc/squid/errors/Polish/ERR_CACHE_MGR_ACCESS_DENIED
Lines 812-837 Link Here
812
etc/squid/mib.txt
837
etc/squid/mib.txt
813
@unexec if cmp -s %D/etc/squid/mime.conf %D/etc/squid/mime.conf.default; then rm -f %D/etc/squid/mime.conf; fi
838
@unexec if cmp -s %D/etc/squid/mime.conf %D/etc/squid/mime.conf.default; then rm -f %D/etc/squid/mime.conf; fi
814
etc/squid/mime.conf.default
839
etc/squid/mime.conf.default
815
@exec [ -f %B/mime.conf ] || cp %B/%f %B/mime.conf
840
@unexec if cmp -s %D/etc/squid/msntauth.conf %D/etc/squid/msntauth.conf.default; then rm -f %D/etc/squid/msntauth.conf; fi
841
etc/squid/msntauth.conf.default
816
@unexec if cmp -s %D/etc/squid/squid.conf %D/etc/squid/squid.conf.default; then rm -f %D/etc/squid/squid.conf; fi
842
@unexec if cmp -s %D/etc/squid/squid.conf %D/etc/squid/squid.conf.default; then rm -f %D/etc/squid/squid.conf; fi
817
etc/squid/squid.conf.default
843
etc/squid/squid.conf.default
818
@exec [ -f %B/squid.conf ] || cp %B/%f %B/squid.conf
819
libexec/cachemgr.cgi
844
libexec/cachemgr.cgi
820
libexec/diskd
845
libexec/diskd
821
libexec/unlinkd
846
%%DIGEST_AUTH_HELPER%%libexec/digest_pw_auth
822
libexec/ip_user_check
847
libexec/ip_user_check
823
libexec/yp_auth
848
%%LDAP_AUTH_HELPER%%libexec/squid_ldap_auth
824
libexec/pam_auth
849
%%LDAP_AUTH_HELPER%%libexec/squid_ldap_group
850
libexec/msnt_auth
825
libexec/ncsa_auth
851
libexec/ncsa_auth
852
libexec/ntlm_auth
853
libexec/pam_auth
854
libexec/yp_auth
826
libexec/squid_unix_group
855
libexec/squid_unix_group
856
%%DNSSERVER%%libexec/dnsserver
857
%%PINGER%%libexec/pinger
858
%%UNLINKD%%libexec/unlinkd
827
sbin/RunAccel
859
sbin/RunAccel
828
sbin/RunCache
860
sbin/RunCache
829
sbin/squidclient
861
sbin/squidclient
830
sbin/squid
862
sbin/squid
831
@exec mkdir -p %D/squid/cache
863
%%PORTDOCS%%%%DOCSDIR%%/FAQ.html
832
@exec chown nobody:nogroup %D/squid/cache
864
%%PORTDOCS%%%%DOCSDIR%%/FAQ-1.html
833
@exec mkdir -p %D/squid/logs
865
%%PORTDOCS%%%%DOCSDIR%%/FAQ-2.html
834
@exec chown nobody:nogroup %D/squid/logs
866
%%PORTDOCS%%%%DOCSDIR%%/FAQ-3.html
867
%%PORTDOCS%%%%DOCSDIR%%/FAQ-4.html
868
%%PORTDOCS%%%%DOCSDIR%%/FAQ-5.html
869
%%PORTDOCS%%%%DOCSDIR%%/FAQ-6.html
870
%%PORTDOCS%%%%DOCSDIR%%/FAQ-7.html
871
%%PORTDOCS%%%%DOCSDIR%%/FAQ-8.html
872
%%PORTDOCS%%%%DOCSDIR%%/FAQ-9.html
873
%%PORTDOCS%%%%DOCSDIR%%/FAQ-10.html
874
%%PORTDOCS%%%%DOCSDIR%%/FAQ-11.html
875
%%PORTDOCS%%%%DOCSDIR%%/FAQ-12.html
876
%%PORTDOCS%%%%DOCSDIR%%/FAQ-13.html
877
%%PORTDOCS%%%%DOCSDIR%%/FAQ-14.html
878
%%PORTDOCS%%%%DOCSDIR%%/FAQ-15.html
879
%%PORTDOCS%%%%DOCSDIR%%/FAQ-16.html
880
%%PORTDOCS%%%%DOCSDIR%%/FAQ-17.html
881
%%PORTDOCS%%%%DOCSDIR%%/FAQ-18.html
882
%%PORTDOCS%%%%DOCSDIR%%/FAQ-19.html
883
%%PORTDOCS%%%%DOCSDIR%%/FAQ-20.html
884
%%PORTDOCS%%%%DOCSDIR%%/FAQ-21.html
885
%%PORTDOCS%%%%DOCSDIR%%/FAQ-22.html
886
%%PORTDOCS%%%%DOCSDIR%%/FAQ-23.html
887
%%PORTDOCS%%%%DOCSDIR%%/FAQ-24.html
888
%%PORTDOCS%%%%DOCSDIR%%/FAQ-25.html
889
%%PORTDOCS%%%%DOCSDIR%%/QUICKSTART
890
%%PORTDOCS%%%%DOCSDIR%%/README
891
%%PORTDOCS%%%%DOCSDIR%%/RELEASENOTES.html
892
%%PORTDOCS%%%%DOCSDIR%%/debug-sections.txt
893
%%PORTDOCS%%@dirrm %%DOCSDIR%%
894
@dirrm etc/squid/icons
835
@dirrm etc/squid/errors/Bulgarian
895
@dirrm etc/squid/errors/Bulgarian
836
@dirrm etc/squid/errors/Catalan
896
@dirrm etc/squid/errors/Catalan
837
@dirrm etc/squid/errors/Czech
897
@dirrm etc/squid/errors/Czech
Lines 847-852 Link Here
847
@dirrm etc/squid/errors/Italian
907
@dirrm etc/squid/errors/Italian
848
@dirrm etc/squid/errors/Japanese
908
@dirrm etc/squid/errors/Japanese
849
@dirrm etc/squid/errors/Korean
909
@dirrm etc/squid/errors/Korean
910
@dirrm etc/squid/errors/Lithuanian
850
@dirrm etc/squid/errors/Polish
911
@dirrm etc/squid/errors/Polish
851
@dirrm etc/squid/errors/Portuguese
912
@dirrm etc/squid/errors/Portuguese
852
@dirrm etc/squid/errors/Romanian
913
@dirrm etc/squid/errors/Romanian
Lines 859-867 Link Here
859
@dirrm etc/squid/errors/Swedish
920
@dirrm etc/squid/errors/Swedish
860
@dirrm etc/squid/errors/Traditional_Chinese
921
@dirrm etc/squid/errors/Traditional_Chinese
861
@dirrm etc/squid/errors/Turkish
922
@dirrm etc/squid/errors/Turkish
862
@dirrm etc/squid/icons
923
@unexec rmdir %D/etc/squid/errors 2>/dev/null || true
863
@dirrm etc/squid/errors
924
@unexec rmdir %D/etc/squid 2>/dev/null || true
864
@dirrm etc/squid
925
@unexec rmdir %D/squid/logs 2>/dev/null || true
865
@dirrm squid/logs
926
@unexec rmdir %D/squid/cache 2>/dev/null || true
866
@dirrm squid/cache
927
@unexec rmdir %D/squid 2>/dev/null || true
867
@dirrm squid
(-)projekte/FreeBSD/ports/www/squid/files/FAQ.html.patch (+19 lines)
Added Link Here
1
--- ../FAQ.html.orig	Sat Mar 15 16:45:25 2003
2
+++ ../FAQ.html		Sat Mar 15 16:47:30 2003
3
@@ -16,11 +16,11 @@
4
 Object Cache software.</EM>
5
 <HR>
6
 <P>You can download the FAQ as
7
-<A HREF="FAQ.pdf">PDF</A>, 
8
-<A HREF="FAQ.ps.gz">compressed Postscript</A>, 
9
-<A HREF="FAQ.txt">plain text</A>,
10
-<A HREF="FAQ.sgml">linuxdoc SGML source</A> or as a
11
-<A HREF="FAQ.tar.gz">compressed tar of HTML</A>.
12
+<A HREF="http://www.squid-cache.org/Doc/FAQ/FAQ.pdf">PDF</A>, 
13
+<A HREF="http://www.squid-cache.org/Doc/FAQ/FAQ.ps.gz">compressed Postscript</A>, 
14
+<A HREF="http://www.squid-cache.org/Doc/FAQ/FAQ.txt">plain text</A>,
15
+<A HREF="http://www.squid-cache.org/Doc/FAQ/FAQ.sgml">linuxdoc SGML source</A> or as a
16
+<A HREF="http://www.squid-cache.org/Doc/FAQ/FAQ.tar.gz">compressed tar of HTML</A>.
17
 <P>
18
 <H2><A NAME="toc1">1.</A> <A HREF="FAQ-1.html">About Squid, this FAQ, and other Squid information resources</A></H2>
19
 
(-)projekte/FreeBSD/ports/www/squid/files/patch-errors-German (+10 lines)
Added Link Here
1
--- errors/German/ERR_DNS_FAIL.orig	Wed Aug 28 23:07:42 2002
2
+++ errors/German/ERR_DNS_FAIL	Sun Nov  9 16:05:06 2003
3
@@ -3,6 +3,7 @@
4
 <TITLE>FEHLER: Der angeforderte URL konnte nicht geholt werden</TITLE>
5
 <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
6
 </HEAD><BODY>
7
+<H1>FEHLER</H1>
8
 <H2>Der angeforderte URL konnte nicht geholt werden</H2>
9
 <HR noshade size="1px">
10
 <P>
(-)projekte/FreeBSD/ports/www/squid/files/patch-src-cf.data.pre (+20 lines)
Added Link Here
1
--- src/cf.data.pre.orig	Thu May  1 14:07:51 2003
2
+++ src/cf.data.pre	Thu May  1 14:13:12 2003
3
@@ -2325,7 +2325,7 @@
4
 
5
 NAME: cache_effective_user
6
 TYPE: string
7
-DEFAULT: nobody
8
+DEFAULT: %%SQUID_UID%%
9
 LOC: Config.effectiveUser
10
 DOC_NONE
11
 
12
@@ -2337,7 +2337,7 @@
13
 
14
 	If you start Squid as root, it will change its effective/real
15
 	UID/GID to the UID/GID specified below.  The default is to
16
-	change to UID to nobody.  If you define cache_effective_user,
17
+	change to UID to %%SQUID_UID%%.  If you define cache_effective_user,
18
 	but not cache_effective_group, Squid sets the GID the
19
 	effective user's default group ID (taken from the password
20
 	file).
(-)projekte/FreeBSD/ports/www/squid/files/squid.sh (-26 lines)
Lines 1-26 Link Here
1
#!/bin/sh
2
3
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
4
    echo "$0: Cannot determine the PREFIX" >&2
5
    exit 1
6
fi
7
8
case "$1" in
9
start)
10
	if [ -x ${PREFIX}/sbin/squid -a -f ${PREFIX}/etc/squid/squid.conf ]; then
11
		(cd /${PREFIX}/squid/logs; ${PREFIX}/sbin/squid >/dev/null 2>&1 &) ; echo -n ' squid'
12
	fi
13
	;;
14
stop)
15
		${PREFIX}/sbin/squid -k shutdown 2>&1
16
		# Uncomment this if you'd like the system to (attempt to
17
		# wait for) squid to shut down cleanly
18
		#echo "Sleeping for 45 seconds to allow squid to shutdown.."
19
		#sleep 45 
20
	;;
21
*)
22
	echo "Usage: `basename $0` {start|stop}" >&2
23
	;;
24
esac
25
26
exit 0
(-)projekte/FreeBSD/ports/www/squid/files/squid.sh.sample (+37 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
PREFIX=%%PREFIX%%
7
8
squid_conf=${PREFIX}/etc/squid/squid.conf
9
squid_logdir=${PREFIX}/squid/logs
10
# See squid(8) for a list of possible options:
11
squid_opts=""
12
squid_user=%%SQUID_UID%%
13
14
case $1 in
15
	start)
16
	if [ -x ${PREFIX}/sbin/squid -a -f ${squid_conf} ]; then
17
		echo -n ' squid'
18
		(cd ${squid_logdir} && exec su -fm ${squid_user} -c "{PREFIX}/sbin/squid -f ${squid_conf} ${squid_opts}")
19
	fi
20
	;;
21
	stop)
22
	if [ -x ${PREFIX}/sbin/squid ]; then
23
		echo -n ' squid'
24
		${PREFIX}/sbin/squid -k shutdown
25
		# Uncomment this if you'd like the system to attempt to
26
		# wait for squid to shut down cleanly:
27
		#while ps -axc | grep -q squid; do
28
		#	sleep 5
29
		#done
30
	fi
31
	;;
32
	*)
33
	echo "Usage: `basename $0` {start|stop}" >&2
34
	exit 64
35
	;;
36
esac
37
exit 0

Return to bug 59091