From 0dcd925361497ee9fde28008df357e6513c65adb Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 15 Jun 2006 20:36:08 +0000 Subject: Split out deinstall portion of INSTALL script into a DEINSTALL script to avoid the confusing DEINSTALL_TEMPLATE+=.../INSTALL line in the Makefile. Also, fix the INSTALL script so that we actually link a real target into ${PKG_SYSCONFDIR}. Bump the PKGREVISION. --- www/privoxy/DEINSTALL | 9 +++++++++ www/privoxy/INSTALL | 14 ++++---------- www/privoxy/Makefile | 6 ++---- 3 files changed, 15 insertions(+), 14 deletions(-) create mode 100644 www/privoxy/DEINSTALL diff --git a/www/privoxy/DEINSTALL b/www/privoxy/DEINSTALL new file mode 100644 index 00000000000..f23a1b54fb0 --- /dev/null +++ b/www/privoxy/DEINSTALL @@ -0,0 +1,9 @@ +#!@SH@ +# +# $NetBSD: DEINSTALL,v 1.1 2006/06/15 20:36:08 jlam Exp $ + +case "${STAGE}" in +DEINSTALL) + ${RM} -f ${PKG_SYSCONFDIR}/templates + ;; +esac diff --git a/www/privoxy/INSTALL b/www/privoxy/INSTALL index 5ca5a7d8cdb..fc23a103bda 100644 --- a/www/privoxy/INSTALL +++ b/www/privoxy/INSTALL @@ -1,16 +1,10 @@ #!@SH@ # -# $NetBSD: INSTALL,v 1.2 2003/11/05 10:45:29 agc Exp $ - -EGDIR="@EGDIR@" +# $NetBSD: INSTALL,v 1.3 2006/06/15 20:36:08 jlam Exp $ case "${STAGE}" in POST-INSTALL) - (cd ${PKG_SYSCONFDIR} && - ${LN} -s ${EGDIR}/templates) - ;; -DEINSTALL) - (cd ${PKG_SYSCONFDIR} && - ${RM} -f templates) - ;; + ${LN} -s ${PKG_PREFIX}/share/examples/privoxy/templates \ + ${PKG_SYSCONFDIR}/. + ;; esac diff --git a/www/privoxy/Makefile b/www/privoxy/Makefile index 927f9fb01b0..855712d74c3 100644 --- a/www/privoxy/Makefile +++ b/www/privoxy/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.26 2006/04/23 00:12:42 jlam Exp $ +# $NetBSD: Makefile,v 1.27 2006/06/15 20:36:08 jlam Exp $ # DISTNAME= ${PKGNAME_NOREV}-stable-src PKGNAME= privoxy-3.0.3 -PKGREVISION= 4 +PKGREVISION= 5 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ijbswa/} @@ -52,8 +52,6 @@ CONF_FILES_PERMS+= ${EGDIR}/${i} ${PKG_SYSCONFDIR}/${i} ${USER_GROUP} 0660 OWN_DIRS_PERMS+= /var/log/privoxy ${USER_GROUP} 0775 -DEINSTALL_TEMPLATE+= ${PKGDIR}/INSTALL - FILES_SUBST+= PRIVOXY_USER=${PRIVOXY_USER:Q} SUBST_CLASSES+= paths -- cgit v1.2.3