summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install/INSTALL
blob: e63ed494699a6de10644c43c0736f09213e5f8fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
#
# $NetBSD: INSTALL,v 1.3 2008/04/02 13:23:31 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}/sbin/pkg_admin rebuild
	;;
esac