aboutsummaryrefslogtreecommitdiff
path: root/games/linux-doom3
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2014-12-29 01:16:41 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2014-12-29 01:16:41 +0000
commit18436e09cb6b343361adb6429cc1e33eddd4b838 (patch)
tree368a18606b3de9ee0e41b149130d40f0a7d94645 /games/linux-doom3
parentda49fae3a81aaf171b2380556e39c7cc7c89379f (diff)
- Fix reporting files that should be removed manually
- Drop @dirrm* from plist
Notes
svn path=/head/; revision=375767
Diffstat (limited to 'games/linux-doom3')
-rw-r--r--games/linux-doom3/Makefile2
-rw-r--r--games/linux-doom3/files/pkg-deinstall.in7
-rw-r--r--games/linux-doom3/pkg-plist5
3 files changed, 8 insertions, 6 deletions
diff --git a/games/linux-doom3/Makefile b/games/linux-doom3/Makefile
index 1e417182fb89..51de889a017a 100644
--- a/games/linux-doom3/Makefile
+++ b/games/linux-doom3/Makefile
@@ -24,7 +24,7 @@ OPTIONS_DEFINE= NO_CDKEY
NO_CDKEY_DESC= Use older version which doesn't require cd key
DATADIR= ${PREFIX}/lib/${PKGNAMEPREFIX}${PORTNAME}
-SUB_FILES= doom3 doom3-ded pkg-message
+SUB_FILES= doom3 doom3-ded pkg-message pkg-deinstall
.include <bsd.port.options.mk>
diff --git a/games/linux-doom3/files/pkg-deinstall.in b/games/linux-doom3/files/pkg-deinstall.in
new file mode 100644
index 000000000000..9edf00843778
--- /dev/null
+++ b/games/linux-doom3/files/pkg-deinstall.in
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ "$2" = "POST-DEINSTALL" ]; then
+ if find "%%DATADIR%%" -type f | head -1 | grep -q ''; then
+ echo "If you are permanently removing this port, you should remove any configuration files, data files, and mods left in %%DATADIR%%." | fmt
+ fi
+fi
diff --git a/games/linux-doom3/pkg-plist b/games/linux-doom3/pkg-plist
index 9a2361b1a1c6..ab95e44fb8ec 100644
--- a/games/linux-doom3/pkg-plist
+++ b/games/linux-doom3/pkg-plist
@@ -21,8 +21,3 @@ bin/linux-doom3-ded
%%DATADIR%%/doom.x86
%%DATADIR%%/doomded.x86
share/pixmaps/doom3.png
-%%NEW%%@dirrm %%DATADIR%%/pb/htm
-%%NEW%%@dirrm %%DATADIR%%/pb
-%%NEW%%@dirrmtry %%DATADIR%%/d3xp
-@dirrmtry %%DATADIR%%/base
-@unexec rmdir %D/%%DATADIR%% >/dev/null 2>&1 || echo "If you are permanently removing this port, you should remove any configuration files, data files, and mods left in %D/%%DATADIR%%." | fmt