2003-08-30 21:45:00 +02:00
|
|
|
# $NetBSD: INSTALL,v 1.3 2003/08/30 19:45:00 jlam Exp $
|
2001-02-26 15:36:11 +01:00
|
|
|
|
2002-10-21 01:09:27 +02:00
|
|
|
RPM="${PKG_PREFIX}/bin/rpm"
|
|
|
|
RPMDIR="@RPMDIR@"
|
2001-02-26 15:36:11 +01:00
|
|
|
|
|
|
|
case ${STAGE} in
|
|
|
|
POST-INSTALL)
|
|
|
|
${MKDIR} ${RPMDIR}
|
2002-10-21 01:09:27 +02:00
|
|
|
${TOUCH} ${RPMDIR}/.pre-timestamp
|
|
|
|
sleep 1
|
|
|
|
if ! ${RPM} -qa 2>/dev/null; then
|
|
|
|
${ECHO} "${PKGNAME}: initializing the RPM database..."
|
2001-02-26 15:36:11 +01:00
|
|
|
${RPM} --initdb
|
|
|
|
fi
|
2002-10-21 01:09:27 +02:00
|
|
|
sleep 1
|
|
|
|
${TOUCH} ${RPMDIR}/.post-timestamp
|
2001-02-26 15:36:11 +01:00
|
|
|
;;
|
2000-09-10 14:02:48 +02:00
|
|
|
esac
|