summaryrefslogtreecommitdiff
path: root/print/foomatic-filters-cups
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-06-15 20:40:15 +0000
committerjlam <jlam@pkgsrc.org>2006-06-15 20:40:15 +0000
commit827643d4bb8f5f83c28919b7df0d42108769e37d (patch)
treefdcc07230f85f6fc9861a7659692fa83b1801fd4 /print/foomatic-filters-cups
parent16435dbba43f2f98501e2daefad890a6542aab31 (diff)
downloadpkgsrc-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/foomatic-filters-cups')
-rw-r--r--print/foomatic-filters-cups/DEINSTALL10
-rw-r--r--print/foomatic-filters-cups/INSTALL8
-rw-r--r--print/foomatic-filters-cups/Makefile4
3 files changed, 12 insertions, 10 deletions
diff --git a/print/foomatic-filters-cups/DEINSTALL b/print/foomatic-filters-cups/DEINSTALL
new file mode 100644
index 00000000000..b7b4bf6f3a6
--- /dev/null
+++ b/print/foomatic-filters-cups/DEINSTALL
@@ -0,0 +1,10 @@
+# $NetBSD: DEINSTALL,v 1.1 2006/06/15 20:40:16 jlam Exp $
+
+CUPS_FILTERDIR="@CUPS_FILTERDIR@"
+
+case ${STAGE} in
+DEINSTALL)
+ ${ECHO} "Removing foomatic-rip filter from CUPS."
+ ${RM} -f ${CUPS_FILTERDIR}/foomatic-rip
+ ;;
+esac
diff --git a/print/foomatic-filters-cups/INSTALL b/print/foomatic-filters-cups/INSTALL
index df9e9a15583..46293f9233b 100644
--- a/print/foomatic-filters-cups/INSTALL
+++ b/print/foomatic-filters-cups/INSTALL
@@ -1,4 +1,4 @@
-# $NetBSD: INSTALL,v 1.1.1.1 2005/12/17 18:26:15 jlam Exp $
+# $NetBSD: INSTALL,v 1.2 2006/06/15 20:40:16 jlam Exp $
CUPS_FILTERDIR="@CUPS_FILTERDIR@"
@@ -8,11 +8,5 @@ POST-INSTALL)
${TEST} -f ${CUPS_FILTERDIR}/foomatic-rip ||
{ ${ECHO} "Adding foomatic-rip filter to CUPS.";
${LN} -s ${PKG_PREFIX}/bin/foomatic-rip ${CUPS_FILTERDIR}; }
-
- ;;
-
-DEINSTALL)
- ${ECHO} "Removing foomatic-rip filter from CUPS."
- ${RM} -f ${CUPS_FILTERDIR}/foomatic-rip
;;
esac
diff --git a/print/foomatic-filters-cups/Makefile b/print/foomatic-filters-cups/Makefile
index 5a4133f8c3d..b53d88b2d9f 100644
--- a/print/foomatic-filters-cups/Makefile
+++ b/print/foomatic-filters-cups/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2006/03/14 01:14:32 jlam Exp $
+# $NetBSD: Makefile,v 1.5 2006/06/15 20:40:16 jlam Exp $
.include "../../print/foomatic-filters/Makefile.common"
@@ -22,8 +22,6 @@ EVAL_PREFIX+= CUPS_PREFIX=cups
CUPS_FILTERDIR= ${CUPS_PREFIX:Q}/libexec/cups/filter
FILES_SUBST+= CUPS_FILTERDIR=${CUPS_FILTERDIR}
-DEINSTALL_TEMPLATE+= ${PKGDIR}/INSTALL
-
do-build: # empty
do-install: # empty