| @@ -1,83 +1,83 @@ | | | @@ -1,83 +1,83 @@ |
1 | # $NetBSD: Makefile,v 1.25 2013/12/31 11:54:32 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.26 2014/02/04 14:23:01 adam Exp $ |
2 | | | 2 | |
3 | DISTNAME= squid-3.4.2 | | 3 | DISTNAME= squid-3.4.3 |
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 | helpers/basic_auth/MSNT/msntauth.conf.default \ | | 43 | helpers/basic_auth/MSNT/msntauth.conf.default \ |
44 | errors/errorpage.css tools/cachemgr.conf | | 44 | errors/errorpage.css tools/cachemgr.conf |
45 | EGDIR= share/examples/squid | | 45 | EGDIR= share/examples/squid |
46 | .for f in cachemgr.conf errorpage.css mime.conf squid.conf msntauth.conf | | 46 | .for f in cachemgr.conf errorpage.css mime.conf squid.conf msntauth.conf |
47 | CONF_FILES+= ${PREFIX}/${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} | | 47 | CONF_FILES+= ${PREFIX}/${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} |
48 | .endfor | | 48 | .endfor |
49 | OWN_DIRS= ${SQUID_DATADIR} | | 49 | OWN_DIRS= ${SQUID_DATADIR} |
50 | OWN_DIRS_PERMS+=${SQUID_DATADIR}/cache ${SQUID_USER} ${SQUID_GROUP} 0750 \ | | 50 | OWN_DIRS_PERMS+=${SQUID_DATADIR}/cache ${SQUID_USER} ${SQUID_GROUP} 0750 \ |
51 | ${SQUID_DATADIR}/logs ${SQUID_USER} ${SQUID_GROUP} 0750 | | 51 | ${SQUID_DATADIR}/logs ${SQUID_USER} ${SQUID_GROUP} 0750 |
52 | | | 52 | |
53 | .include "Makefile.common" | | 53 | .include "Makefile.common" |
54 | .include "options.mk" | | 54 | .include "options.mk" |
55 | | | 55 | |
56 | .if !empty(MACHINE_PLATFORM:MNetBSD-[0-5]*-i386) | | 56 | .if !empty(MACHINE_PLATFORM:MNetBSD-[0-5]*-i386) |
57 | GNU_ARCH.i386= i486 | | 57 | GNU_ARCH.i386= i486 |
58 | CFLAGS+= -march=i486 | | 58 | CFLAGS+= -march=i486 |
59 | .endif | | 59 | .endif |
60 | | | 60 | |
61 | INSTALLATION_DIRS= bin libexec ${PKGMANDIR}/man8 sbin ${EGDIR} \ | | 61 | INSTALLATION_DIRS= bin libexec ${PKGMANDIR}/man8 sbin ${EGDIR} \ |
62 | share/squid share/squid/errors share/squid/icons \ | | 62 | share/squid share/squid/errors share/squid/icons \ |
63 | SPECIAL_PERMS+= libexec/pinger ${SETUID_ROOT_PERMS} | | 63 | SPECIAL_PERMS+= libexec/pinger ${SETUID_ROOT_PERMS} |
64 | | | 64 | |
65 | RCD_SCRIPTS= squid | | 65 | RCD_SCRIPTS= squid |
66 | RCD_SCRIPT_SRC.squid= files/squid.sh | | 66 | RCD_SCRIPT_SRC.squid= files/squid.sh |
67 | | | 67 | |
68 | SUBST_CLASSES+= confs | | 68 | SUBST_CLASSES+= confs |
69 | SUBST_STAGE.confs= pre-configure | | 69 | SUBST_STAGE.confs= pre-configure |
70 | SUBST_FILES.confs= src/cf.data.pre | | 70 | SUBST_FILES.confs= src/cf.data.pre |
71 | SUBST_SED.confs= -e "s/@USER@/${SQUID_USER}/" | | 71 | SUBST_SED.confs= -e "s/@USER@/${SQUID_USER}/" |
72 | SUBST_MESSAGE.confs= Fixing configuration files. | | 72 | SUBST_MESSAGE.confs= Fixing configuration files. |
73 | | | 73 | |
74 | post-build: | | 74 | post-build: |
75 | cd ${WRKSRC}/src && ${CP} -pf squid.conf.documented squid.conf.default | | 75 | cd ${WRKSRC}/src && ${CP} -pf squid.conf.documented squid.conf.default |
76 | | | 76 | |
77 | post-install: | | 77 | post-install: |
78 | .for f in ${EGFILES} | | 78 | .for f in ${EGFILES} |
79 | ${INSTALL_DATA} ${WRKSRC}/${f} \ | | 79 | ${INSTALL_DATA} ${WRKSRC}/${f} \ |
80 | ${DESTDIR}${PREFIX}/${EGDIR}/`basename ${f} .default` | | 80 | ${DESTDIR}${PREFIX}/${EGDIR}/`basename ${f} .default` |
81 | .endfor | | 81 | .endfor |
82 | | | 82 | |
83 | .include "../../mk/bsd.pkg.mk" | | 83 | .include "../../mk/bsd.pkg.mk" |