summaryrefslogtreecommitdiff
path: root/misc/rpm/INSTALL
blob: 78674f56f6207885f6dec24b52b10884f15cc610 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# $NetBSD: INSTALL,v 1.3 2003/08/30 19:45:00 jlam Exp $

RPM="${PKG_PREFIX}/bin/rpm"
RPMDIR="@RPMDIR@"

case ${STAGE} in
POST-INSTALL)
	${MKDIR} ${RPMDIR}
	${TOUCH} ${RPMDIR}/.pre-timestamp
	sleep 1
	if ! ${RPM} -qa 2>/dev/null; then
		${ECHO} "${PKGNAME}: initializing the RPM database..."
		${RPM} --initdb
	fi
	sleep 1
	${TOUCH} ${RPMDIR}/.post-timestamp
	;;
esac