diff options
author | wiz <wiz@pkgsrc.org> | 2000-08-04 18:35:25 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2000-08-04 18:35:25 +0000 |
commit | c0628304a7f42734a05f63f9ffba664842aec95c (patch) | |
tree | 7577a7307f706d8416420cce795b8ea2c2c019bc /audio | |
parent | d40331668f60f0590254df949ac6e0eaeefae4ff (diff) | |
download | pkgsrc-c0628304a7f42734a05f63f9ffba664842aec95c.tar.gz |
Do not unconditionally delete ${PREFIX}/share/gqmpeg/skins (and contents);
instead tell user to remove it himself.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/gqmpeg/Makefile | 7 | ||||
-rw-r--r-- | audio/gqmpeg/pkg/DEINSTALL | 24 | ||||
-rw-r--r-- | audio/gqmpeg/pkg/PLIST | 4 |
3 files changed, 32 insertions, 3 deletions
diff --git a/audio/gqmpeg/Makefile b/audio/gqmpeg/Makefile index 714ab72249c..29db7ec4f79 100644 --- a/audio/gqmpeg/Makefile +++ b/audio/gqmpeg/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2000/08/02 06:06:10 jlam Exp $ +# $NetBSD: Makefile,v 1.20 2000/08/04 18:35:25 wiz Exp $ # FreeBSD Id: Makefile,v 1.6 1998/12/28 01:02:05 vanilla Exp # @@ -22,5 +22,10 @@ CONFIGURE_ARGS+= --without-included-gettext CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" CPPFLAGS+= -I${LOCALBASE}/include # libintl.h +DEINSTALL_FILE= ${WRKDIR}/DEINSTALL + +post-build: + ${SED} -e 's#@PREFIX@#${PREFIX}#g' < ${PKGDIR}/DEINSTALL \ + > ${WRKDIR}/DEINSTALL .include "../../mk/bsd.pkg.mk" diff --git a/audio/gqmpeg/pkg/DEINSTALL b/audio/gqmpeg/pkg/DEINSTALL new file mode 100644 index 00000000000..fa71dcfdbf7 --- /dev/null +++ b/audio/gqmpeg/pkg/DEINSTALL @@ -0,0 +1,24 @@ +#!/bin/sh +# +# $NetBSD: DEINSTALL,v 1.1 2000/08/04 18:35:26 wiz Exp $ +# + +PKGNAME=$1 + +case $2 in +DEINSTALL) + ;; +POST-DEINSTALL) + cat << EOF +============================================================================= +If you won't be using ${PKGNAME} any longer, you may want to remove any +skins that were installed in @PREFIX@/share/gqmpeg/skins. +============================================================================= +EOF + ;; +*) + echo "Unexpected argument: $2" + exit 1 + ;; +esac +exit 0 diff --git a/audio/gqmpeg/pkg/PLIST b/audio/gqmpeg/pkg/PLIST index 524c638a88e..b6cf33676de 100644 --- a/audio/gqmpeg/pkg/PLIST +++ b/audio/gqmpeg/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.3 2000/08/02 06:06:16 jlam Exp $ +@comment $NetBSD: PLIST,v 1.4 2000/08/04 18:35:26 wiz Exp $ bin/gqmpeg bin/gqmpeg-shoutcast-plugin.sh man/man1/gqmpeg.1 @@ -10,4 +10,4 @@ share/locale/ja/LC_MESSAGES/gqmpeg.mo share/locale/pt_BR/LC_MESSAGES/gqmpeg.mo share/pixmaps/gqmpeg.png @exec mkdir -p %D/share/gqmpeg/skins -@unexec rm -fr %D/share/gqmpeg/skins +@unexec rmdir -p %D/share/gqmpeg/skins 2> /dev/null || true |