2003-08-30 21:45:00 +02:00
|
|
|
# $NetBSD: DEINSTALL,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
|
|
|
RPMDIR="@RPMDIR@"
|
2001-02-26 15:36:11 +01:00
|
|
|
|
|
|
|
case ${STAGE} in
|
2000-09-10 14:02:48 +02:00
|
|
|
POST-DEINSTALL)
|
2002-10-21 01:09:27 +02:00
|
|
|
for db in ${RPMDIR}/*.rpm; do
|
|
|
|
if [ ${RPMDIR}/.pre-timestamp -ot $db ] && \
|
|
|
|
[ ${RPMDIR}/.post-timestamp -nt $db ]; then
|
|
|
|
${RM} -f $db
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
${RM} -f ${RPMDIR}/.pre-timestamp
|
|
|
|
${RM} -f ${RPMDIR}/.post-timestamp
|
|
|
|
|
|
|
|
${RMDIR} -p ${RPMDIR} 2>/dev/null || ${TRUE}
|
|
|
|
if [ -d ${RPMDIR} ]; then
|
|
|
|
${CAT} << EOF
|
2000-09-10 14:02:48 +02:00
|
|
|
===========================================================================
|
|
|
|
|
2001-02-26 15:36:11 +01:00
|
|
|
If you won't be using ${PKGNAME} any longer, you may want to remove:
|
|
|
|
|
|
|
|
${RPMDIR}
|
2000-09-10 14:02:48 +02:00
|
|
|
|
2001-02-26 15:36:11 +01:00
|
|
|
where the RPM database is stored.
|
|
|
|
|
|
|
|
Caution: you will lose any data ${PKGNAME} has about any installed
|
|
|
|
packages!
|
2000-09-10 14:02:48 +02:00
|
|
|
|
|
|
|
===========================================================================
|
|
|
|
EOF
|
2002-10-21 01:09:27 +02:00
|
|
|
fi
|
2000-09-10 14:02:48 +02:00
|
|
|
;;
|
|
|
|
esac
|