From f151d0d43076307881a448479f71fa0b40cad780 Mon Sep 17 00:00:00 2001 From: lioux Date: Thu, 29 Mar 2001 02:32:02 +0000 Subject: Add graceful creation/removal of global Skins dir. Approved by: maintainer --- audio/xmms/Makefile | 3 +++ audio/xmms/pkg-plist | 2 ++ multimedia/xmms/Makefile | 3 +++ multimedia/xmms/pkg-plist | 2 ++ 4 files changed, 10 insertions(+) diff --git a/audio/xmms/Makefile b/audio/xmms/Makefile index 57bae47..68b05e2 100644 --- a/audio/xmms/Makefile +++ b/audio/xmms/Makefile @@ -94,4 +94,7 @@ pre-patch: s|\$\(datadir\)/aclocal|\$\(prefix\)/share/aclocal|g ; \ s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g' +post-install: + @${MKDIR} ${PREFIX}/share/xmms/Skins + .include diff --git a/audio/xmms/pkg-plist b/audio/xmms/pkg-plist index 36574fd..d64f2a0 100644 --- a/audio/xmms/pkg-plist +++ b/audio/xmms/pkg-plist @@ -74,3 +74,5 @@ share/locale/zh_TW.Big5/LC_MESSAGES/xmms.mo @dirrm lib/xmms/Effect @dirrm lib/xmms @dirrm include/xmms +@exec mkdir -p %D/share/xmms/Skins +@unexec rmdir %D/share/xmms/Skins %D/share/xmms 2>/dev/null || echo "If you are permanently removing xmms, do not forget to remove skin files left under %D/share/xmms/Skins. Use \`\`rm -Rf %D/share/xmms/Skins; rmdir %D/share/xmms''" | fmt diff --git a/multimedia/xmms/Makefile b/multimedia/xmms/Makefile index 57bae47..68b05e2 100644 --- a/multimedia/xmms/Makefile +++ b/multimedia/xmms/Makefile @@ -94,4 +94,7 @@ pre-patch: s|\$\(datadir\)/aclocal|\$\(prefix\)/share/aclocal|g ; \ s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g' +post-install: + @${MKDIR} ${PREFIX}/share/xmms/Skins + .include diff --git a/multimedia/xmms/pkg-plist b/multimedia/xmms/pkg-plist index 36574fd..d64f2a0 100644 --- a/multimedia/xmms/pkg-plist +++ b/multimedia/xmms/pkg-plist @@ -74,3 +74,5 @@ share/locale/zh_TW.Big5/LC_MESSAGES/xmms.mo @dirrm lib/xmms/Effect @dirrm lib/xmms @dirrm include/xmms +@exec mkdir -p %D/share/xmms/Skins +@unexec rmdir %D/share/xmms/Skins %D/share/xmms 2>/dev/null || echo "If you are permanently removing xmms, do not forget to remove skin files left under %D/share/xmms/Skins. Use \`\`rm -Rf %D/share/xmms/Skins; rmdir %D/share/xmms''" | fmt -- cgit v1.1