summaryrefslogtreecommitdiff
path: root/games/halflifeserver
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-05-10 02:14:30 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-05-10 02:14:30 +0000
commit9b02bf4a1b3fa1e1d6f1f5eacd6baf4d6d3b2ec1 (patch)
tree1e5b53418d448c8b61a4be0bf9889f65b120d7dd /games/halflifeserver
parentImprove pre-patch following hlserver-cs/Makefile rev 1.10 (diff)
Be more graceful when removing directories
Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=42474
Diffstat (limited to '')
-rw-r--r--games/halflifeserver/pkg-plist10
1 files changed, 7 insertions, 3 deletions
diff --git a/games/halflifeserver/pkg-plist b/games/halflifeserver/pkg-plist
index 90eb44619dc2..5ea83590154b 100644
--- a/games/halflifeserver/pkg-plist
+++ b/games/halflifeserver/pkg-plist
@@ -219,7 +219,6 @@
@dirrm %%HLDSDIR%%valve/events
@dirrm %%HLDSDIR%%valve/dlls
@dirrm %%HLDSDIR%%valve/cl_dlls
-@dirrm %%HLDSDIR%%valve
@dirrm %%HLDSDIR%%tfc/tfstats
@dirrm %%HLDSDIR%%tfc/sound/weapons
@dirrm %%HLDSDIR%%tfc/sound/vox
@@ -246,8 +245,13 @@
@dirrm %%HLDSDIR%%tfc/events
@dirrm %%HLDSDIR%%tfc/dlls
@dirrm %%HLDSDIR%%tfc/cl_dlls
-@dirrm %%HLDSDIR%%tfc
-@dirrm %%HLDSDIR%%
+@unexec rmdir %D/%%HLDSDIR%%tfc/SAVE 2>/dev/null || true
+@unexec rmdir %D/%%HLDSDIR%%tfc/logs 2>/dev/null || true
+@unexec rmdir %D/%%HLDSDIR%%valve/SAVE 2>/dev/null || true
+@unexec rmdir %D/%%HLDSDIR%%valve/logs 2>/dev/null || true
+@unexec rmdir %D/%%HLDSDIR%%tfc 2>/dev/null || true
+@unexec rmdir %D/%%HLDSDIR%%valve 2>/dev/null || true
+@unexec rmdir %D/%%HLDSDIR%% 2>/dev/null || echo "If you are permanently removing this port and its mods, you should do a ``rm -rf ${PKG_PREFIX}/%%HLDSDIR%%`` to remove any configuration files and logs left." | fmt
@mode 0444
@exec grep -E "^/%%HLDSDIR%%$" %D/etc/ld.so.conf >/dev/null || ( echo /%%HLDSDIR%% >> %D/etc/ld.so.conf ; %%LDCONFIG%% )
@unexec grep -v -E "^/%%HLDSDIR%%$" %D/etc/ld.so.conf > %D/etc/ld.so.conf.bak; cmp -s %D/etc/ld.so.conf %D/etc/ld.so.conf.bak || ( cp %D/etc/ld.so.conf.bak %D/etc/ld.so.conf ; %%LDCONFIG%% ) ; rm %D/etc/ld.so.conf.bak