summaryrefslogtreecommitdiff
path: root/mail/mutt
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 /mail/mutt
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 'mail/mutt')
-rw-r--r--mail/mutt/DEINSTALL7
-rw-r--r--mail/mutt/INSTALL6
-rw-r--r--mail/mutt/Makefile3
3 files changed, 9 insertions, 7 deletions
diff --git a/mail/mutt/DEINSTALL b/mail/mutt/DEINSTALL
new file mode 100644
index 00000000000..37c6800c5a5
--- /dev/null
+++ b/mail/mutt/DEINSTALL
@@ -0,0 +1,7 @@
+# $NetBSD: DEINSTALL,v 1.3 2006/06/15 20:40:16 jlam Exp $
+
+case ${STAGE} in
+DEINSTALL)
+ ${RM} -f @DOCDIR@/samples
+ ;;
+esac
diff --git a/mail/mutt/INSTALL b/mail/mutt/INSTALL
index cba0b055973..ce15b7d4513 100644
--- a/mail/mutt/INSTALL
+++ b/mail/mutt/INSTALL
@@ -1,12 +1,8 @@
-# $NetBSD: INSTALL,v 1.3 2004/08/05 07:19:25 jlam Exp $
+# $NetBSD: INSTALL,v 1.4 2006/06/15 20:40:16 jlam Exp $
case ${STAGE} in
POST-INSTALL)
${RM} -f @DOCDIR@/samples
${LN} -sf ../../examples/mutt @DOCDIR@/samples
;;
-
-DEINSTALL)
- ${RM} -f @DOCDIR@/samples
- ;;
esac
diff --git a/mail/mutt/Makefile b/mail/mutt/Makefile
index d36c499eade..234b4b9f45b 100644
--- a/mail/mutt/Makefile
+++ b/mail/mutt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.140 2006/05/22 07:00:55 rillig Exp $
+# $NetBSD: Makefile,v 1.141 2006/06/15 20:40:16 jlam Exp $
DISTNAME= mutt-1.4.2.1i
PKGNAME= ${DISTNAME:C/i$//}
@@ -71,7 +71,6 @@ CONFIGURE_ARGS+= --with-exec-shell=/bin/ksh
LDFLAGS+= ${_STRIPFLAG_CC}
-DEINSTALL_TEMPLATE+= ${PKGDIR}/INSTALL
DOCDIR= ${PREFIX}/share/doc/mutt
EGDIR= ${PREFIX}/share/examples/mutt
CONF_FILES= ${EGDIR}/Muttrc ${PKG_SYSCONFDIR}/Muttrc