| @@ -1,83 +1,83 @@ | | | @@ -1,83 +1,83 @@ |
1 | # $NetBSD: Makefile,v 1.49 2015/07/06 09:39:40 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.50 2015/08/05 08:10:56 adam Exp $ |
2 | | | 2 | |
3 | DISTNAME= squid-3.5.6 | | 3 | DISTNAME= squid-3.5.7 |
4 | CATEGORIES= www | | 4 | CATEGORIES= www |
5 | MASTER_SITES= http://www.squid-cache.org/Versions/v3/${PKGVERSION_NOREV:R}/ \ | | 5 | MASTER_SITES= http://www.squid-cache.org/Versions/v3/${PKGVERSION_NOREV:R}/ \ |
6 | ftp://ftp.squid-cache.org/pub/squid/ \ | | 6 | ftp://ftp.squid-cache.org/pub/squid/ \ |
7 | http://ftp.nluug.nl/internet/squid/ | | 7 | http://ftp.nluug.nl/internet/squid/ |
8 | EXTRACT_SUFX= .tar.xz | | 8 | EXTRACT_SUFX= .tar.xz |
9 | | | 9 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= http://www.squid-cache.org/ | | 11 | HOMEPAGE= http://www.squid-cache.org/ |
12 | COMMENT= Post-Harvest_cached WWW proxy cache and accelerator | | 12 | COMMENT= Post-Harvest_cached WWW proxy cache and accelerator |
13 | LICENSE= gnu-gpl-v2 | | 13 | LICENSE= gnu-gpl-v2 |
14 | | | 14 | |
15 | USE_LANGUAGES= c c++ | | 15 | USE_LANGUAGES= c c++ |
16 | USE_TOOLS+= perl:run gmake | | 16 | USE_TOOLS+= perl:run gmake |
17 | GNU_CONFIGURE= yes | | 17 | GNU_CONFIGURE= yes |
18 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | | 18 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} |
19 | CONFIGURE_ARGS+= --localstatedir=${SQUID_DATADIR} | | 19 | CONFIGURE_ARGS+= --localstatedir=${SQUID_DATADIR} |
20 | CONFIGURE_ARGS+= --datarootdir=${PREFIX}/share/squid | | 20 | CONFIGURE_ARGS+= --datarootdir=${PREFIX}/share/squid |
21 | CONFIGURE_ARGS+= --disable-strict-error-checking | | 21 | CONFIGURE_ARGS+= --disable-strict-error-checking |
22 | CONFIGURE_ARGS+= --enable-auth | | 22 | CONFIGURE_ARGS+= --enable-auth |
23 | CONFIGURE_ARGS+= --enable-cachemgr-hostname=localhost | | 23 | CONFIGURE_ARGS+= --enable-cachemgr-hostname=localhost |
24 | CONFIGURE_ARGS+= --enable-delay-pools | | 24 | CONFIGURE_ARGS+= --enable-delay-pools |
25 | CONFIGURE_ARGS+= --enable-icap-client | | 25 | CONFIGURE_ARGS+= --enable-icap-client |
26 | CONFIGURE_ARGS+= --enable-icmp | | 26 | CONFIGURE_ARGS+= --enable-icmp |
27 | CONFIGURE_ARGS+= --enable-poll | | 27 | CONFIGURE_ARGS+= --enable-poll |
28 | CONFIGURE_ARGS+= --enable-removal-policies=lru,heap | | 28 | CONFIGURE_ARGS+= --enable-removal-policies=lru,heap |
29 | CONFIGURE_ARGS+= --enable-storeio=${SQUID_BACKENDS:Q} | | 29 | CONFIGURE_ARGS+= --enable-storeio=${SQUID_BACKENDS:Q} |
30 | CONFIGURE_ARGS+= --with-aio | | 30 | CONFIGURE_ARGS+= --with-aio |
31 | CONFIGURE_ARGS+= --with-default-user=${SQUID_USER} | | 31 | CONFIGURE_ARGS+= --with-default-user=${SQUID_USER} |
32 | CONFIGURE_ARGS+= --with-pidfile=${VARBASE}/run/squid.pid | | 32 | CONFIGURE_ARGS+= --with-pidfile=${VARBASE}/run/squid.pid |
33 | | | 33 | |
34 | # Explicitly disable using CPU optimized instruction | | 34 | # Explicitly disable using CPU optimized instruction |
35 | CONFIGURE_ARGS+= --disable-arch-native | | 35 | CONFIGURE_ARGS+= --disable-arch-native |
36 | | | 36 | |
37 | BUILD_DEFS+= VARBASE | | 37 | BUILD_DEFS+= VARBASE |
38 | MAKE_ENV+= INSTALL_SCRIPT=${INSTALL_SCRIPT:Q} | | 38 | MAKE_ENV+= INSTALL_SCRIPT=${INSTALL_SCRIPT:Q} |
39 | MAKE_ENV+= PKG_PREFIX=${PREFIX} VARBASE=${VARBASE} | | 39 | MAKE_ENV+= PKG_PREFIX=${PREFIX} VARBASE=${VARBASE} |
40 | REPLACE_PERL+= helpers/ssl/cert_valid.pl tools/helper-mux.pl | | 40 | REPLACE_PERL+= helpers/ssl/cert_valid.pl tools/helper-mux.pl |
41 | | | 41 | |
42 | EGFILES= src/mime.conf.default src/squid.conf.default \ | | 42 | EGFILES= src/mime.conf.default src/squid.conf.default \ |
43 | errors/errorpage.css tools/cachemgr.conf | | 43 | errors/errorpage.css tools/cachemgr.conf |
44 | EGDIR= share/examples/squid | | 44 | EGDIR= share/examples/squid |
45 | .for f in cachemgr.conf errorpage.css mime.conf squid.conf | | 45 | .for f in cachemgr.conf errorpage.css mime.conf squid.conf |
46 | CONF_FILES+= ${PREFIX}/${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} | | 46 | CONF_FILES+= ${PREFIX}/${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} |
47 | .endfor | | 47 | .endfor |
48 | OWN_DIRS= ${SQUID_DATADIR} | | 48 | OWN_DIRS= ${SQUID_DATADIR} |
49 | OWN_DIRS_PERMS+=${SQUID_DATADIR}/cache ${SQUID_USER} ${SQUID_GROUP} 0750 \ | | 49 | OWN_DIRS_PERMS+=${SQUID_DATADIR}/cache ${SQUID_USER} ${SQUID_GROUP} 0750 \ |
50 | ${SQUID_DATADIR}/logs ${SQUID_USER} ${SQUID_GROUP} 0750 | | 50 | ${SQUID_DATADIR}/logs ${SQUID_USER} ${SQUID_GROUP} 0750 |
51 | | | 51 | |
52 | .include "Makefile.common" | | 52 | .include "Makefile.common" |
53 | .include "options.mk" | | 53 | .include "options.mk" |
54 | | | 54 | |
55 | # Incorrect check for <netinet/ip_icmp.h> on FreeBSD: | | 55 | # Incorrect check for <netinet/ip_icmp.h> on FreeBSD: |
56 | .if $(OPSYS) == "FreeBSD" | | 56 | .if $(OPSYS) == "FreeBSD" |
57 | CONFIGURE_ENV+= ac_cv_header_netinet_ip_icmp_h=yes | | 57 | CONFIGURE_ENV+= ac_cv_header_netinet_ip_icmp_h=yes |
58 | .endif | | 58 | .endif |
59 | | | 59 | |
60 | INSTALLATION_DIRS= ${EGDIR} | | 60 | INSTALLATION_DIRS= ${EGDIR} |
61 | | | 61 | |
62 | SPECIAL_PERMS+= libexec/pinger ${SETUID_ROOT_PERMS} | | 62 | SPECIAL_PERMS+= libexec/pinger ${SETUID_ROOT_PERMS} |
63 | | | 63 | |
64 | RCD_SCRIPTS= squid | | 64 | RCD_SCRIPTS= squid |
65 | RCD_SCRIPT_SRC.squid= files/squid.sh | | 65 | RCD_SCRIPT_SRC.squid= files/squid.sh |
66 | | | 66 | |
67 | SUBST_CLASSES+= confs | | 67 | SUBST_CLASSES+= confs |
68 | SUBST_STAGE.confs= pre-configure | | 68 | SUBST_STAGE.confs= pre-configure |
69 | SUBST_FILES.confs= src/cf.data.pre | | 69 | SUBST_FILES.confs= src/cf.data.pre |
70 | SUBST_SED.confs= -e "s/@USER@/${SQUID_USER}/" | | 70 | SUBST_SED.confs= -e "s/@USER@/${SQUID_USER}/" |
71 | SUBST_MESSAGE.confs= Fixing configuration files. | | 71 | SUBST_MESSAGE.confs= Fixing configuration files. |
72 | | | 72 | |
73 | post-build: | | 73 | post-build: |
74 | cd ${WRKSRC}/src && ${CP} -pf squid.conf.documented squid.conf.default | | 74 | cd ${WRKSRC}/src && ${CP} -pf squid.conf.documented squid.conf.default |
75 | | | 75 | |
76 | post-install: | | 76 | post-install: |
77 | .for f in ${EGFILES} | | 77 | .for f in ${EGFILES} |
78 | ${INSTALL_DATA} ${WRKSRC}/${f} \ | | 78 | ${INSTALL_DATA} ${WRKSRC}/${f} \ |
79 | ${DESTDIR}${PREFIX}/${EGDIR}/`basename ${f} .default` | | 79 | ${DESTDIR}${PREFIX}/${EGDIR}/`basename ${f} .default` |
80 | .endfor | | 80 | .endfor |
81 | | | 81 | |
82 | .include "../../devel/libltdl/buildlink3.mk" | | 82 | .include "../../devel/libltdl/buildlink3.mk" |
83 | .include "../../mk/bsd.pkg.mk" | | 83 | .include "../../mk/bsd.pkg.mk" |