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

(-)squid/Makefile (-19 / +44 lines)
Lines 1-37 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:		Mon Jul 21 13:19:32 CDT 2003
3
# Whom:			Adrian Chadd <adrian@FreeBSD.org>
3
# Whom:			Jonathan Noack <noackjr@alumni.rice.edu>
4
#
4
#
5
# $FreeBSD: ports/www/squid/Makefile,v 1.100 2003/04/09 08:31:30 adrian Exp $
5
# $FreeBSD: ports/www/squid/Makefile,v 1.100 2003/04/09 08:31:30 adrian Exp $
6
#
6
#
7
7
8
PORTNAME=	squid
8
PORTNAME=	squid
9
PORTVERSION=	2.5
9
PORTVERSION=	2.5
10
PORTREVISION=	3
10
PORTREVISION=	4
11
CATEGORIES=	www
11
CATEGORIES=	www
12
MASTER_SITES=  \
12
MASTER_SITES=	\
13
	ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \
13
	ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \
14
	ftp://www.unimelb.edu.au/pub/cwis/servers/unix/squid/%SUBDIR%/ \
14
	ftp://www.unimelb.edu.au/pub/cwis/servers/unix/squid/%SUBDIR%/ \
15
	ftp://sunsite.auc.dk/pub/infosystems/squid/%SUBDIR%/ \
15
	ftp://sunsite.auc.dk/pub/infosystems/squid/%SUBDIR%/ \
16
	ftp://ftp.net.lut.ac.uk/squid/%SUBDIR%/ \
16
	ftp://ftp.net.lut.ac.uk/squid/%SUBDIR%/ \
17
	${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/squid/&,}
17
	${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/squid/&,}
18
MASTER_SITE_SUBDIR=	squid-2/STABLE
18
MASTER_SITE_SUBDIR=	squid-2/STABLE
19
DISTNAME=	squid-2.5.STABLE2
19
DISTNAME=	squid-2.5.STABLE3
20
EXTRACT_SUFX=	.tar.gz
20
EXTRACT_SUFX=	.tar.bz2
21
DIST_SUBDIR=	squid2.5
21
22
22
PATCH_SITES=	http://www.squid-cache.org/Versions/v2/2.5/bugs/
23
PATCH_SITES=	http://www.squid-cache.org/Versions/v2/2.5/bugs/
24
PATCHFILES=	squid-2.5.STABLE3-deny_info.patch \
25
		squid-2.5.STABLE3-cache_dir_doc.patch \
26
		squid-2.5.STABLE3-devnull.patch \
27
		squid-2.5.STABLE3-log_quote.patch \
28
		squid-2.5.STABLE3-rfc_reference.patch \
29
		squid-2.5.STABLE3-external_acl_ident.patch \
30
		squid-2.5.STABLE3-gcc-3_3.patch \
31
		squid-2.5.STABLE3-carpfactor.patch \
32
		squid-2.5.STABLE3-neighbor_type_domain.patch \
33
		squid-2.5.STABLE3-header_access_peer.patch \
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
23
48
24
MAINTAINER=	adrian@freebsd.org
49
MAINTAINER=	noackjr@alumni.rice.edu
25
COMMENT=	The successful WWW proxy cache and accelerator
50
COMMENT=	The successful WWW proxy cache and accelerator
26
51
27
DIST_SUBDIR=	squid2.5
28
PATCH_DIST_STRIP= -p1
29
GNU_CONFIGURE=	yes
52
GNU_CONFIGURE=	yes
53
USE_BZIP2=	yes
30
USE_PERL5=	yes
54
USE_PERL5=	yes
31
USE_REINPLACE=	yes
55
USE_REINPLACE=	yes
32
# Follow the apache port's lead...
56
# Follow the apache port's lead...
33
CONFIGURE_ARGS=	--bindir=${PREFIX}/sbin  --sysconfdir=${PREFIX}/etc/squid \
57
CONFIGURE_ARGS=	--bindir=${PREFIX}/sbin  --sysconfdir=${PREFIX}/etc/squid \
34
		--datadir=${PREFIX}/etc/squid/ \
58
		--datadir=${PREFIX}/etc/squid \
35
		--localstatedir=${PREFIX}/squid \
59
		--localstatedir=${PREFIX}/squid \
36
		--enable-storeio="ufs diskd null" \
60
		--enable-storeio="ufs diskd null" \
37
		--enable-removal-policies="lru heap" \
61
		--enable-removal-policies="lru heap" \
Lines 39-46 Link Here
39
		--enable-external-acl-helpers="ip_user unix_group" \
63
		--enable-external-acl-helpers="ip_user unix_group" \
40
		--enable-underscores
64
		--enable-underscores
41
65
42
STRIP=		# won't install scripts correctly otherwise.
43
MAKEFILE=	Makefile
66
MAKEFILE=	Makefile
67
MAN8=	pam_auth.8 squid_unix_group.8 squid.8
44
68
45
# Some other configure options..
69
# Some other configure options..
46
#  - Compile and use the malloc package from Doug Lea
70
#  - Compile and use the malloc package from Doug Lea
Lines 101-124 Link Here
101
#  - accept the illegal '_' character in hostnames.
125
#  - accept the illegal '_' character in hostnames.
102
#CONFIGURE_ARGS+= --enable-underscores
126
#CONFIGURE_ARGS+= --enable-underscores
103
#  - Enable control of different heap replacement algorithms at runtime.
127
#  - Enable control of different heap replacement algorithms at runtime.
104
#CONFIGURE_ARGS+= --enable-heap-replacement
128
#CONFIGURE_ARGS+= --enable-removal-policies
105
129
106
post-patch:
130
post-patch:
107
	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
131
	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
132
	@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/doc/squid.8
108
133
109
post-install:
134
post-install:
110
#	I don't think many people use the pinger nowadays, and if you
135
#	I don't think many people use the pinger nowadays, and if you
111
#	do you'll want squid in its own group so as to restrict access
136
#	do you'll want squid in its own group so as to restrict access
112
#	to it.
137
#	to it.
113
#	cd ${WRKSRC}/src; make install-pinger
138
#	cd ${WRKSRC}/src; make install-pinger
114
.for file in client squid
139
.for sbin_file in client squid
115
	if [ -f ${PREFIX}/sbin/${file} ] ; then \
140
	if [ -f ${PREFIX}/sbin/${sbin_file} ] ; then \
116
		strip ${PREFIX}/sbin/${file} ; \
141
		${STRIP_CMD} ${PREFIX}/sbin/${sbin_file} ; \
117
	fi
142
	fi
118
.endfor
143
.endfor
119
.for file in cachemgr.cgi dnsserver pinger unlinkd
144
.for libexec_file in cachemgr.cgi dnsserver pinger unlinkd
120
	if [ -f ${PREFIX}/libexec/${file} ] ; then \
145
	if [ -f ${PREFIX}/libexec/${libexec_file} ] ; then \
121
		strip ${PREFIX}/libexec/${file} ; \
146
		${STRIP_CMD} ${PREFIX}/libexec/${libexec_file} ; \
122
	fi
147
	fi
123
.endfor
148
.endfor
124
	@if [ ! -d ${PREFIX}/squid/logs ]; then			\
149
	@if [ ! -d ${PREFIX}/squid/logs ]; then			\
(-)squid/distinfo (-1 / +24 lines)
Line 1 Link Here
1
MD5 (squid2.5/squid-2.5.STABLE2.tar.gz) = 806c27e2b5a7bd9d788390f5ea5a5dc1
1
MD5 (squid2.5/squid-2.5.STABLE3.tar.bz2) = ed5eb7835d00fdecc7dd7c1837542df2
2
MD5 (squid2.5/squid-2.5.STABLE3-deny_info.patch) = fd6d2d1a5a75b06e86b743f51866c861
3
MD5 (squid2.5/squid-2.5.STABLE3-cache_dir_doc.patch) = e7f6d2bd28430e10999b12001cbb4cae
4
MD5 (squid2.5/squid-2.5.STABLE3-devnull.patch) = a31d669461e2893996f27b5d10ab06b9
5
MD5 (squid2.5/squid-2.5.STABLE3-log_quote.patch) = 9e391cbb39226abc89281cd4138ddb98
6
MD5 (squid2.5/squid-2.5.STABLE3-rfc_reference.patch) = 48996215282d80caf3b5cbbbdb7965b7
7
MD5 (squid2.5/squid-2.5.STABLE3-external_acl_ident.patch) = a7ab2152b202bf9941ee8200f20b3032
8
MD5 (squid2.5/squid-2.5.STABLE3-gcc-3_3.patch) = 49195dd7f3745c0f54c0ca07068b2d67
9
MD5 (squid2.5/squid-2.5.STABLE3-carpfactor.patch) = ac2a5f8304b29951ee3579cce10a6ea6
10
MD5 (squid2.5/squid-2.5.STABLE3-neighbor_type_domain.patch) = 3edd72ec42e0b49b36096a6a8fff6b2a
11
MD5 (squid2.5/squid-2.5.STABLE3-header_access_peer.patch) = 5015f95e0db20ddcb25082a92f8861a8
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
(-)squid/files/patch-aa (+11 lines)
Line 0 Link Here
1
--- include/squid_types.h.orig Mon Jul  7 00:45:26 2003
2
+++ include/squid_types.h      Mon Jul  7 00:48:39 2003
3
@@ -66,8 +66,5 @@
4
 #if HAVE_SYS_TYPES_H
5
 #include <sys/types.h>
6
 #endif
7
-#if HAVE_SYS_BITYPES_H
8
-#include <sys/bitypes.h>
9
-#endif
10
11
 #endif /* SQUID_TYPES_H */
(-)squid/pkg-install (-11 / +10 lines)
Lines 25-40 Link Here
25
	echo "    ACTUAL locations of cache \"spool\", logfiles, pidfile!"
25
	echo "    ACTUAL locations of cache \"spool\", logfiles, pidfile!"
26
	tput me
26
	tput me
27
	if [ -z "${PACKAGE_BUILDING}" ]; then read skip; fi
27
	if [ -z "${PACKAGE_BUILDING}" ]; then read skip; fi
28
	chown root:wheel ${PREFIX:-/usr/local}/etc/squid/squid.conf*
28
	chown root:wheel ${PREFIX}/etc/squid/squid.conf*
29
	chmod 644 ${PREFIX:-/usr/local}/etc/squid/squid.conf*
29
	chmod 644 ${PREFIX}/etc/squid/squid.conf*
30
	[ -f ${PREFIX:-/usr/local}/etc/squid/squid.conf ] || \
30
	[ -f ${PREFIX}/etc/squid/squid.conf ] || \
31
		cp -fp	${PREFIX:-/usr/local}/etc/squid/squid.conf.default \
31
		cp -fp	${PREFIX}/etc/squid/squid.conf.default \
32
			${PREFIX:-/usr/local}/etc/squid/squid.conf
32
			${PREFIX}/etc/squid/squid.conf
33
	[ -f ${PREFIX:-/usr/local}/etc/squid/mime.conf ] || \
33
	[ -f ${PREFIX}/etc/squid/mime.conf ] || \
34
		cp -fp	${PREFIX:-/usr/local}/etc/squid/mime.conf.default \
34
		cp -fp	${PREFIX}/etc/squid/mime.conf.default \
35
			${PREFIX:-/usr/local}/etc/squid/mime.conf
35
			${PREFIX}/etc/squid/mime.conf
36
	${EDITOR:-vi} ${PREFIX:-/usr/local}/etc/squid/squid.conf \
36
	${EDITOR:-vi} ${PREFIX}/etc/squid/squid.conf \
37
		      ${PREFIX:-/usr/local}/etc/squid/mime.conf
37
		      ${PREFIX}/etc/squid/mime.conf
38
	;;
38
	;;
39
    *)
39
    *)
40
	echo "Unexpected Argument $2!!!"
40
	echo "Unexpected Argument $2!!!"
Lines 42-45 Link Here
42
	;;
42
	;;
43
esac
43
esac
44
exit 0
44
exit 0
45
(-)squid/pkg-plist (-3 lines)
Lines 822-836 Link Here
822
libexec/ip_user_check
822
libexec/ip_user_check
823
libexec/yp_auth
823
libexec/yp_auth
824
libexec/pam_auth
824
libexec/pam_auth
825
man/man8/pam_auth.8
826
libexec/ncsa_auth
825
libexec/ncsa_auth
827
libexec/squid_unix_group
826
libexec/squid_unix_group
828
man/man8/squid_unix_group.8
829
sbin/RunAccel
827
sbin/RunAccel
830
sbin/RunCache
828
sbin/RunCache
831
sbin/squidclient
829
sbin/squidclient
832
sbin/squid
830
sbin/squid
833
man/man8/squid.8
834
@exec mkdir -p %D/squid/cache
831
@exec mkdir -p %D/squid/cache
835
@exec chown nobody:nogroup %D/squid/cache
832
@exec chown nobody:nogroup %D/squid/cache
836
@exec mkdir -p %D/squid/logs
833
@exec mkdir -p %D/squid/logs

Return to bug 54727