summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_alternatives/Makefile
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2005-01-25 16:27:37 +0000
committerjmmv <jmmv@pkgsrc.org>2005-01-25 16:27:37 +0000
commit3cfcc8be82229d92018f68b27bb29093adb78e97 (patch)
tree7dc97d342ceaef3e03ae57687f61b60f59e10a5d /pkgtools/pkg_alternatives/Makefile
parent5ff7c8f3a530690cba3d5bd2dcdbddc045d50d5e (diff)
downloadpkgsrc-3cfcc8be82229d92018f68b27bb29093adb78e97.tar.gz
Update to 1.1:
- Add the destroy action, used to remove the alternatives database as well as any known wrappers. - Use the rebuild/destroy actions at install/deinstall time respectively so that this package can be installed at any time and pick up automatically available alternatives from PKG_DBDIR. Per suggestion from reed@ in tech-pkg@.
Diffstat (limited to 'pkgtools/pkg_alternatives/Makefile')
-rw-r--r--pkgtools/pkg_alternatives/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgtools/pkg_alternatives/Makefile b/pkgtools/pkg_alternatives/Makefile
index 3a3d33afa03..0c5ca185a20 100644
--- a/pkgtools/pkg_alternatives/Makefile
+++ b/pkgtools/pkg_alternatives/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.1.1.1 2005/01/25 13:00:46 jmmv Exp $
+# $NetBSD: Makefile,v 1.2 2005/01/25 16:27:37 jmmv Exp $
#
-DISTNAME= pkg_alternatives-1.0
+DISTNAME= pkg_alternatives-1.1
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
@@ -21,6 +21,10 @@ WRKSRC= ${WRKDIR}
DATADIR= ${PREFIX}/share/pkg_alternatives
DBDIR= ${PREFIX}/libdata/pkg_alternatives
+DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
+INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
+FILES_SUBST+= PKG_ALTERNATIVES=${PREFIX}/sbin/pkg_alternatives
+
MAKE_DIRS= ${DBDIR}
MAKE_DIRS+= ${PKG_SYSCONFDIR}