diff options
author | lioux <lioux@FreeBSD.org> | 2001-05-10 02:14:30 +0000 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2001-05-10 02:14:30 +0000 |
commit | d3272f5d16c54d4a107d144799e19cfad75f4990 (patch) | |
tree | ce948307caa9a513749b437b3752ea20400c7d4a /games/halflifeserver/pkg-plist | |
parent | a77646f1c571693308ec5163078a37109e138fc6 (diff) | |
download | FreeBSD-ports-d3272f5d16c54d4a107d144799e19cfad75f4990.zip FreeBSD-ports-d3272f5d16c54d4a107d144799e19cfad75f4990.tar.gz |
Be more graceful when removing directories
Submitted by: maintainer
Diffstat (limited to 'games/halflifeserver/pkg-plist')
-rw-r--r-- | games/halflifeserver/pkg-plist | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/games/halflifeserver/pkg-plist b/games/halflifeserver/pkg-plist index 90eb446..5ea8359 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 |