[BACK]Return to INSTALL CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkg_install

File: [cvs.NetBSD.org] / pkgsrc / pkgtools / pkg_install / INSTALL (download)

Revision 1.2, Mon Nov 7 06:52:24 2005 UTC (14 years, 1 month ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2007Q4-base, pkgsrc-2007Q4, pkgsrc-2007Q3-base, pkgsrc-2007Q3, pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1, pkgsrc-2006Q4-base, pkgsrc-2006Q4, pkgsrc-2006Q3-base, pkgsrc-2006Q3, pkgsrc-2006Q2-base, pkgsrc-2006Q2, pkgsrc-2006Q1-base, pkgsrc-2006Q1, pkgsrc-2005Q4-base, pkgsrc-2005Q4
Changes since 1.1: +3 -2 lines

Use the hard-coded ${PKG_TOOLS_BIN} variable as the correct location of
the pkg_admin binary.

#!/bin/sh
#
# $NetBSD: INSTALL,v 1.2 2005/11/07 06:52:24 jlam Exp $

PKGNAME="$1"
STAGE="$2"

PKG_DBDIR="@PKG_DBDIR@"
PKG_TOOLS_BIN="@PKG_TOOLS_BIN@"
MKDIR="@MKDIR@"

case ${STAGE} in
PRE-INSTALL)
	[ -d ${PKG_DBDIR} ] || ${MKDIR} ${PKG_DBDIR}
	;;

POST-INSTALL)
	[ -f ${PKG_DBDIR}/pkgdb.byfile.db ] || ${PKG_TOOLS_BIN}/pkg_admin rebuild
	;;
esac