pkgsrc/misc/rpm/INSTALL

18 lines
367 B
Text
Executable file

# $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