blob: 2ec0fd7581f98ea1be9557da2e37e51c90b64d88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# $NetBSD: DEINSTALL,v 1.3 2003/08/30 19:45:00 jlam Exp $
RPMDIR="@RPMDIR@"
case ${STAGE} in
POST-DEINSTALL)
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
===========================================================================
If you won't be using ${PKGNAME} any longer, you may want to remove:
${RPMDIR}
where the RPM database is stored.
Caution: you will lose any data ${PKGNAME} has about any installed
packages!
===========================================================================
EOF
fi
;;
esac
|