Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / misc / rpm / INSTALL
blob3749abfaa737056e0e3ae194d26ceb5cb64c0629
1 # $NetBSD: INSTALL,v 1.2 2002/10/20 23:09:27 jlam Exp $
3 RPM="${PKG_PREFIX}/bin/rpm"
4 RPMDIR="@RPMDIR@"
6 case ${STAGE} in
7 POST-INSTALL)
8         ${MKDIR} ${RPMDIR}
9         ${TOUCH} ${RPMDIR}/.pre-timestamp
10         sleep 1
11         if ! ${RPM} -qa 2>/dev/null; then
12                 ${ECHO} "${PKGNAME}: initializing the RPM database..."
13                 ${RPM} --initdb
14         fi
15         sleep 1
16         ${TOUCH} ${RPMDIR}/.post-timestamp
17         ;;
18 esac