Config files cannot be forced into ${PREFIX}.

This commit is contained in:
kim 2001-11-17 23:47:24 +00:00
parent 5984fe563b
commit 7aceab2279
2 changed files with 12 additions and 7 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.54 2001/11/06 07:22:13 tron Exp $
# $NetBSD: Makefile,v 1.55 2001/11/17 23:47:24 kim Exp $
DISTNAME= squid-2.4.STABLE2-src
PKGNAME= squid-2.4.2
@ -14,12 +14,13 @@ COMMENT= Post-Harvest_cached WWW proxy cache and accelerator
BUILD_DEPENDS+= perl>=${PERL5_REQD}:../../lang/perl5
GNU_CONFIGURE= # defined
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc/squid \
SQUID_SYSCONFDIR?= ${PREFIX}/etc/squid
CONFIGURE_ARGS+= --sysconfdir=${SQUID_SYSCONFDIR} \
--localstatedir=/var/squid \
${SQUID_CONFIGURE_ARGS}
CONFIGURE_ENV+= PERL=${PERL5}
BUILD_DEFS+= SQUID_CONFIGURE_ARGS
BUILD_DEFS+= SQUID_CONFIGURE_ARGS SQUID_SYSCONFDIR
MAKEFILE= makefile
MAKE_ENV+= INSTALL_SCRIPT="${INSTALL_SCRIPT}" PKG_PREFIX="${PREFIX}"
PLIST_SRC= ${WRKDIR}/PLIST
@ -53,6 +54,10 @@ pre-install:
post-install:
cd ${WRKSRC}/src; ${TEST} ! -x pinger || ${MAKE} install-pinger
@for i in mime squid; do \
${MV} ${SQUID_SYSCONFDIR}/$$i.conf.default \
${PREFIX}/share/squid; \
done
${INSTALL_SCRIPT} ${WRKDIR}/squid.sh ${PREFIX}/etc/rc.d/squid
@${SETENV} ${MAKE_ENV} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}

View file

@ -1,8 +1,8 @@
@comment $NetBSD: PLIST,v 1.1 2001/11/01 02:18:53 zuntum Exp $
@comment $NetBSD: PLIST,v 1.2 2001/11/17 23:47:24 kim Exp $
etc/rc.d/squid
etc/squid/mime.conf.default
etc/squid/squid.conf.default
@unexec rmdir %D/etc/squid 2>/dev/null || true
share/squid/mime.conf.default
share/squid/squid.conf.default
@unexec rmdir %D/share/squid 2>/dev/null || true
libexec/cachemgr.cgi
sbin/RunAccel
sbin/RunCache