diff options
author | jlam <jlam@pkgsrc.org> | 2006-06-15 20:40:15 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-06-15 20:40:15 +0000 |
commit | 827643d4bb8f5f83c28919b7df0d42108769e37d (patch) | |
tree | fdcc07230f85f6fc9861a7659692fa83b1801fd4 /print/apsfilter | |
parent | 16435dbba43f2f98501e2daefad890a6542aab31 (diff) | |
download | pkgsrc-827643d4bb8f5f83c28919b7df0d42108769e37d.tar.gz |
Split out deinstall portions of INSTALL scripts into DEINSTALL scripts.
This avoids the need for a confusing line of the form:
DEINSTALL_TEMPLATE+= path/to/INSTALL
in the package Makefile, and actually removes the need to specify it
altogether since by convention, the existence of the DEINSTALL script
is enough to add it to DEINSTALL_TEMPLATE.
Diffstat (limited to 'print/apsfilter')
-rw-r--r-- | print/apsfilter/DEINSTALL | 18 | ||||
-rw-r--r-- | print/apsfilter/INSTALL | 18 | ||||
-rw-r--r-- | print/apsfilter/Makefile | 4 |
3 files changed, 21 insertions, 19 deletions
diff --git a/print/apsfilter/DEINSTALL b/print/apsfilter/DEINSTALL new file mode 100644 index 00000000000..9193e158d26 --- /dev/null +++ b/print/apsfilter/DEINSTALL @@ -0,0 +1,18 @@ +#!/bin/sh +# +# $NetBSD: DEINSTALL,v 1.3 2006/06/15 20:40:16 jlam Exp $ + +case ${STAGE} in +DEINSTALL) + ${RM} ${PKG_SYSCONFDIR}/basedir + + ${CAT} << EOF +=========================================================================== +If you will not be using apsfilter any longer, you may want to remove +apsfilter's configuration directory (${PKG_SYSCONFDIR}) and the +SETUP.cfg configuration file from apsfilter's directory +(${PKG_PREFIX}/share/apsfilter/SETUP.cfg). +=========================================================================== +EOF + ;; +esac diff --git a/print/apsfilter/INSTALL b/print/apsfilter/INSTALL index 49e95e50432..5eb01ded6ba 100644 --- a/print/apsfilter/INSTALL +++ b/print/apsfilter/INSTALL @@ -1,23 +1,9 @@ #!/bin/sh # -# $NetBSD: INSTALL,v 1.1 2002/11/26 11:26:32 jmmv Exp $ - -PREFIX="@PREFIX@" +# $NetBSD: INSTALL,v 1.2 2006/06/15 20:40:16 jlam Exp $ case ${STAGE} in POST-INSTALL) - ${LN} -s ${PREFIX}/share/apsfilter ${PKG_SYSCONFDIR}/basedir - ;; -DEINSTALL) - ${RM} ${PKG_SYSCONFDIR}/basedir - - cat << EOF -=========================================================================== -If you will not be using apsfilter any longer, you may want to remove -apsfilter's configuration directory (${PKG_SYSCONFDIR}) and the -SETUP.cfg configuration file from apsfilter's directory -(${PREFIX}/share/apsfilter/SETUP.cfg). -=========================================================================== -EOF + ${LN} -s ${PKG_PREFIX}/share/apsfilter ${PKG_SYSCONFDIR}/basedir ;; esac diff --git a/print/apsfilter/Makefile b/print/apsfilter/Makefile index 61244a669f5..016388b0a62 100644 --- a/print/apsfilter/Makefile +++ b/print/apsfilter/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.27 2006/03/14 01:14:32 jlam Exp $ +# $NetBSD: Makefile,v 1.28 2006/06/15 20:40:16 jlam Exp $ # DISTNAME= apsfilter-7.2.6 @@ -32,8 +32,6 @@ PKG_SYSCONFSUBDIR?= apsfilter CONF_FILES= ${PREFIX}/share/apsfilter/template/apsfilterrc \ ${PKG_SYSCONFDIR}/apsfilterrc -DEINSTALL_TEMPLATE+= ${PKGDIR}/INSTALL - post-patch: for i in bin/apsfilter.in SETUP.in tools/prtmgmt; do \ ${SED} "s,/usr/local,${LOCALBASE},g" ${WRKSRC}/$$i \ |