diff options
author | wiz <wiz@pkgsrc.org> | 2001-05-06 00:11:47 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2001-05-06 00:11:47 +0000 |
commit | 4be01b53577cfb9446b3303d090c71a0cf18446f (patch) | |
tree | 79b41fa63e6dd09a29dcf47e91875f65aacebdd2 /audio | |
parent | f65b0a8620a64a463aef64a0557fd088911ca5fe (diff) | |
download | pkgsrc-4be01b53577cfb9446b3303d090c71a0cf18446f.tar.gz |
Don't run amok with 'rm -fr'; instead tell the user to delete some files
that could have been modified, but that he could want to safe, himself.
Addresses pkg/12373 by Olaf Seibert.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/xmcd/pkg/DEINSTALL | 32 | ||||
-rw-r--r-- | audio/xmcd/pkg/PLIST | 10 |
2 files changed, 37 insertions, 5 deletions
diff --git a/audio/xmcd/pkg/DEINSTALL b/audio/xmcd/pkg/DEINSTALL new file mode 100644 index 00000000000..5689233e1ce --- /dev/null +++ b/audio/xmcd/pkg/DEINSTALL @@ -0,0 +1,32 @@ +#!/bin/sh +# +# $NetBSD: DEINSTALL,v 1.1 2001/05/06 00:11:47 wiz Exp $ +# + +PKGNAME=$1 +STAGE=$2 + +case ${STAGE} in +DEINSTALL) + ;; + +POST-DEINSTALL) + cat << EOF +============================================================================= +If you won't be using ${PKGNAME} any longer, you may want to remove +any cached CD informations in + @PREFIX@/lib/X11/xmcd/cddb +and any drive informations in + @PREFIX@/lib/X11/xmcd/config +e.g. by deleting the corresponding directory. Please note that config +files will get overwritten on re-install if you don't save them manually. +============================================================================= +EOF + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 diff --git a/audio/xmcd/pkg/PLIST b/audio/xmcd/pkg/PLIST index bcce455ce4f..aaa5b095fe6 100644 --- a/audio/xmcd/pkg/PLIST +++ b/audio/xmcd/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.10 2000/02/13 19:17:24 fredb Exp $ +@comment $NetBSD: PLIST,v 1.11 2001/05/06 00:11:47 wiz Exp $ bin/cda bin/cddbcmd bin/dp2xmcd @@ -55,8 +55,10 @@ lib/X11/xmcd/config/common.cfg lib/X11/xmcd/config/config.sh lib/X11/xmcd/config/device.cfg lib/X11/xmcd/config/sites -@comment remove the CD drive configuration file(s). Its name is unknown. -@unexec rm -f %D/lib/X11/xmcd/config/* +@comment remove the CD drive configuration file(s). Its exact name is unknown. +@comment just doing the unexec like it was before is a bit too disruptive, +@comment though, see pkg/12373. So ask the user to delete it (DEINSTALL). +@comment unexec rm -f %D/lib/X11/xmcd/config/* lib/X11/xmcd/discog/bkgnd.gif lib/X11/xmcd/discog/xmcdlogo.gif lib/X11/xmcd/discog/discog.html @@ -233,7 +235,5 @@ man/man1/xmcd.1 @dirrm lib/X11/xmcd/config @dirrm lib/X11/xmcd/bin-${OPSYS}-${MACHINE_ARCH} @dirrm lib/X11/xmcd/app-defaults -@comment in case users requested using internet cddb server -@unexec rm -fr %D/lib/X11/xmcd/cddb @dirrm lib/X11/xmcd @exec %D/lib/X11/xmcd/config/config.sh |