65 lines
2.1 KiB
Makefile
65 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.13 1999/06/03 16:42:35 tron Exp $
|
|
|
|
DISTNAME= squid-2.2.STABLE3-src
|
|
PKGNAME= squid-2.2s3
|
|
CATEGORIES= www
|
|
MASTER_SITES= \
|
|
ftp://squid.nlanr.net/pub/squid-2/STABLE/ \
|
|
ftp://ftp.gw.com/pub/unix/squid/squid-2/STABLE/ \
|
|
ftp://www.unimelb.edu.au/pub/cwis/servers/unix/squid/squid-2/STABLE/ \
|
|
ftp://sunsite.auc.dk/pub/infosystems/squid/squid-2/STABLE/ \
|
|
ftp://ftp.net.lut.ac.uk/squid/squid-2/STABLE/
|
|
|
|
MAINTAINER= tron@netbsd.org
|
|
HOMEPAGE= http://squid.nlanr.net/Squid/
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/perl:../../lang/perl5
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --sysconfdir=/etc \
|
|
--localstatedir=/var/squid
|
|
|
|
# Options you might want to enable
|
|
CONFIGURE_ARGS+= --enable-cachemgr-hostname=localhost
|
|
CONFIGURE_ARGS+= --enable-icmp
|
|
CONFIGURE_ARGS+= --enable-ipf-transparent
|
|
#CONFIGURE_ARGS+= --enable-snmp
|
|
|
|
CPPFLAGS= -I/usr/include/netinet
|
|
CFLAGS+= ${CPPFLAGS}
|
|
CONFIGURE_ENV+= CPPFLAGS=${CPPFLAGS} \
|
|
PERL=${LOCALBASE}/bin/perl
|
|
|
|
MAKEFILE= makefile
|
|
MAKE_ENV+= INSTALL_SCRIPT="${INSTALL_SCRIPT}" PKG_PREFIX="${PREFIX}"
|
|
PLIST_SRC= ${PKGDIR}/PLIST ${WRKDIR}/PLIST.share
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
|
|
|
|
post-build:
|
|
${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/squid.sh >${WRKDIR}/squid.sh
|
|
|
|
pre-install:
|
|
@-rm -f ${WRKDIR}/PLIST.share
|
|
@${MKDIR} ${PREFIX}/share/squid
|
|
@${MKDIR} ${PREFIX}/share/squid/errors
|
|
@${MKDIR} ${PREFIX}/share/squid/icons
|
|
@( \
|
|
cd ${WRKSRC}/errors/English; \
|
|
ls ERR_* | ${SED} -e 's@^@share/squid/errors/@'; \
|
|
${ECHO} "@dirrm share/squid/errors"; \
|
|
cd ${WRKSRC}/icons; \
|
|
ls anthony-*.gif | ${SED} -e 's@^@share/squid/icons/@'; \
|
|
${ECHO} "@dirrm share/squid/icons"; \
|
|
${ECHO} "share/squid/mib.txt"; \
|
|
${ECHO} "share/squid/mime.conf"; \
|
|
${ECHO} "share/squid/mime.conf.default"; \
|
|
${ECHO} "share/squid/squid.conf.default"; \
|
|
${ECHO} "@dirrm share/squid"; \
|
|
) > ${WRKDIR}/PLIST.share
|
|
|
|
post-install:
|
|
cd ${WRKSRC}/src; ${MAKE} install-pinger
|
|
${INSTALL_SCRIPT} ${WRKDIR}/squid.sh ${PREFIX}/etc/rc.d/squid.sh
|
|
@${SETENV} ${MAKE_ENV} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
|
|
|
|
.include <../../mk/bsd.pkg.mk>
|