diff options
author | jlam <jlam@pkgsrc.org> | 2005-11-06 22:15:44 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-11-06 22:15:44 +0000 |
commit | c0fc02789143689d7aadd9679cdf296cfa3f11ca (patch) | |
tree | 868a337a175af90df4a8fdfc6c5353160d3cf10d /pkgtools/pkg_install/INSTALL | |
parent | 49e24d63709bc4e7c790568a64a724942411c46d (diff) | |
download | pkgsrc-c0fc02789143689d7aadd9679cdf296cfa3f11ca.tar.gz |
Remove @exec from PLIST and put the action into an INSTALL script instead.
Also, simplify the package by making use of the PKGMANDIR-handling in
pkgsrc to remove the custom MANDIR code from the package Makefile and
the PLIST.
Technically, this type of a change would require a PKGREVISION bump,
but as this is the pkg_* tools package and there were no changes to the
binaries, we refrain from doing so.
Diffstat (limited to 'pkgtools/pkg_install/INSTALL')
-rw-r--r-- | pkgtools/pkg_install/INSTALL | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pkgtools/pkg_install/INSTALL b/pkgtools/pkg_install/INSTALL new file mode 100644 index 00000000000..5726b2a11fe --- /dev/null +++ b/pkgtools/pkg_install/INSTALL @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1 2005/11/06 22:15:44 jlam Exp $ + +PKGNAME="$1" +STAGE="$2" + +PKG_DBDIR="@PKG_DBDIR@" +MKDIR="@MKDIR@" + +case ${STAGE} in +PRE-INSTALL) + [ -d ${PKG_DBDIR} ] || ${MKDIR} ${PKG_DBDIR} + ;; + +POST-INSTALL) + [ -f ${PKG_DBDIR}/pkgdb.byfile.db ] || ${PKG_PREFIX}/bin/pkg_admin rebuild + ;; +esac |