| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.13 2020/08/31 18:13:16 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.13.4.1 2021/03/07 18:30:13 bsiegert Exp $ |
2 | | | 2 | |
3 | DISTNAME= squid-4.13 | | 3 | DISTNAME= squid-4.13 |
4 | PKGREVISION= 1 | | 4 | PKGREVISION= 1 |
5 | CATEGORIES= www | | 5 | CATEGORIES= www |
6 | MASTER_SITES= http://www.squid-cache.org/Versions/v4/ | | 6 | MASTER_SITES= http://www.squid-cache.org/Versions/v4/ |
7 | MASTER_SITES+= ftp://ftp.squid-cache.org/pub/squid/ | | 7 | MASTER_SITES+= ftp://ftp.squid-cache.org/pub/squid/ |
8 | MASTER_SITES+= ftp://ftp.squid-cache.org/pub/archive/4/ | | 8 | MASTER_SITES+= ftp://ftp.squid-cache.org/pub/archive/4/ |
9 | EXTRACT_SUFX= .tar.xz | | 9 | EXTRACT_SUFX= .tar.xz |
10 | | | 10 | |
11 | MAINTAINER= pkgsrc-users@NetBSD.org | | 11 | MAINTAINER= pkgsrc-users@NetBSD.org |
12 | HOMEPAGE= http://www.squid-cache.org/ | | 12 | HOMEPAGE= http://www.squid-cache.org/ |
13 | COMMENT= Post-Harvest_cached WWW proxy cache and accelerator | | 13 | COMMENT= Post-Harvest_cached WWW proxy cache and accelerator |
14 | LICENSE= gnu-gpl-v2 | | 14 | LICENSE= gnu-gpl-v2 |
| @@ -25,26 +25,33 @@ CONFIGURE_ARGS+= --enable-cachemgr-hostn | | | @@ -25,26 +25,33 @@ CONFIGURE_ARGS+= --enable-cachemgr-hostn |
25 | CONFIGURE_ARGS+= --enable-delay-pools | | 25 | CONFIGURE_ARGS+= --enable-delay-pools |
26 | CONFIGURE_ARGS+= --enable-icap-client | | 26 | CONFIGURE_ARGS+= --enable-icap-client |
27 | CONFIGURE_ARGS+= --enable-icmp | | 27 | CONFIGURE_ARGS+= --enable-icmp |
28 | CONFIGURE_ARGS+= --enable-poll | | 28 | CONFIGURE_ARGS+= --enable-poll |
29 | CONFIGURE_ARGS+= --enable-removal-policies=lru,heap | | 29 | CONFIGURE_ARGS+= --enable-removal-policies=lru,heap |
30 | CONFIGURE_ARGS+= --enable-storeio=${SQUID_BACKENDS:Q} | | 30 | CONFIGURE_ARGS+= --enable-storeio=${SQUID_BACKENDS:Q} |
31 | CONFIGURE_ARGS+= --with-aio | | 31 | CONFIGURE_ARGS+= --with-aio |
32 | CONFIGURE_ARGS+= --with-default-user=${SQUID_USER} | | 32 | CONFIGURE_ARGS+= --with-default-user=${SQUID_USER} |
33 | CONFIGURE_ARGS+= --with-pidfile=${VARBASE}/run/squid.pid | | 33 | CONFIGURE_ARGS+= --with-pidfile=${VARBASE}/run/squid.pid |
34 | | | 34 | |
35 | # Let 'purge' find correct config file by default. | | 35 | # Let 'purge' find correct config file by default. |
36 | CPPFLAGS+= -DDEFAULT_SQUID_CONF=\"${PKG_SYSCONFDIR}/squid.conf\" | | 36 | CPPFLAGS+= -DDEFAULT_SQUID_CONF=\"${PKG_SYSCONFDIR}/squid.conf\" |
37 | | | 37 | |
| | | 38 | .if ${MACHINE_ARCH} == "i386" |
| | | 39 | . if empty(CFLAGS:M*march=*) |
| | | 40 | CFLAGS+= -march=i586 |
| | | 41 | CXXFLAGS+= -march=i586 |
| | | 42 | . endif |
| | | 43 | .endif |
| | | 44 | |
38 | BUILDLINK_TRANSFORM+= rm:-Werror | | 45 | BUILDLINK_TRANSFORM+= rm:-Werror |
39 | | | 46 | |
40 | MAKE_ENV+= INSTALL_SCRIPT=${INSTALL_SCRIPT:Q} | | 47 | MAKE_ENV+= INSTALL_SCRIPT=${INSTALL_SCRIPT:Q} |
41 | MAKE_ENV+= PKG_PREFIX=${PREFIX} VARBASE=${VARBASE} | | 48 | MAKE_ENV+= PKG_PREFIX=${PREFIX} VARBASE=${VARBASE} |
42 | REPLACE_PERL+= contrib/url-normalizer.pl contrib/user-agents.pl \ | | 49 | REPLACE_PERL+= contrib/url-normalizer.pl contrib/user-agents.pl \ |
43 | scripts/AnnounceCache.pl scripts/access-log-matrix.pl \ | | 50 | scripts/AnnounceCache.pl scripts/access-log-matrix.pl \ |
44 | scripts/cache-compare.pl scripts/cachetrace.pl \ | | 51 | scripts/cache-compare.pl scripts/cachetrace.pl \ |
45 | scripts/calc-must-ids.pl scripts/check_cache.pl \ | | 52 | scripts/calc-must-ids.pl scripts/check_cache.pl \ |
46 | scripts/fileno-to-pathname.pl scripts/find-alive.pl \ | | 53 | scripts/fileno-to-pathname.pl scripts/find-alive.pl \ |
47 | scripts/flag_truncs.pl scripts/icp-test.pl \ | | 54 | scripts/flag_truncs.pl scripts/icp-test.pl \ |
48 | scripts/icpserver.pl scripts/tcp-banger.pl \ | | 55 | scripts/icpserver.pl scripts/tcp-banger.pl \ |
49 | scripts/trace-job.pl scripts/trace-master.pl \ | | 56 | scripts/trace-job.pl scripts/trace-master.pl \ |
50 | scripts/udp-banger.pl scripts/upgrade-1.0-store.pl \ | | 57 | scripts/udp-banger.pl scripts/upgrade-1.0-store.pl \ |
| @@ -78,15 +85,18 @@ SUBST_STAGE.confs= pre-configure | | | @@ -78,15 +85,18 @@ SUBST_STAGE.confs= pre-configure |
78 | SUBST_FILES.confs= src/cf.data.pre | | 85 | SUBST_FILES.confs= src/cf.data.pre |
79 | SUBST_SED.confs= -e "s/@DEFAULT_CACHE_EFFECTIVE_USER@/${SQUID_USER}/" | | 86 | SUBST_SED.confs= -e "s/@DEFAULT_CACHE_EFFECTIVE_USER@/${SQUID_USER}/" |
80 | SUBST_MESSAGE.confs= Fixing configuration files. | | 87 | SUBST_MESSAGE.confs= Fixing configuration files. |
81 | | | 88 | |
82 | post-build: | | 89 | post-build: |
83 | cd ${WRKSRC}/src && ${CP} -pf squid.conf.documented squid.conf.default | | 90 | cd ${WRKSRC}/src && ${CP} -pf squid.conf.documented squid.conf.default |
84 | | | 91 | |
85 | post-install: | | 92 | post-install: |
86 | .for f in ${EGFILES} | | 93 | .for f in ${EGFILES} |
87 | ${INSTALL_DATA} ${WRKSRC}/${f} \ | | 94 | ${INSTALL_DATA} ${WRKSRC}/${f} \ |
88 | ${DESTDIR}${PREFIX}/${EGDIR}/`basename ${f} .default` | | 95 | ${DESTDIR}${PREFIX}/${EGDIR}/`basename ${f} .default` |
89 | .endfor | | 96 | .endfor |
90 | | | 97 | |
| | | 98 | .if ${MACHINE_ARCH} == "powerpc" |
| | | 99 | . include "../../devel/libatomic/buildlink3.mk" |
| | | 100 | .endif |
91 | .include "../../devel/libltdl/buildlink3.mk" | | 101 | .include "../../devel/libltdl/buildlink3.mk" |
92 | .include "../../mk/bsd.pkg.mk" | | 102 | .include "../../mk/bsd.pkg.mk" |