From 9b99bdcff086e87fc846f357683943f2da77420b Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 4 Aug 2000 18:35:25 +0000 Subject: Do not unconditionally delete ${PREFIX}/share/gqmpeg/skins (and contents); instead tell user to remove it himself. --- audio/gqmpeg/Makefile | 7 ++++++- audio/gqmpeg/pkg/DEINSTALL | 24 ++++++++++++++++++++++++ audio/gqmpeg/pkg/PLIST | 4 ++-- 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 audio/gqmpeg/pkg/DEINSTALL (limited to 'audio/gqmpeg') 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 -- cgit v1.2.3