diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-12-29 01:16:53 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-12-29 01:16:53 +0000 |
commit | ed956120ae29fa89947eb28011f3ecbbf4ccce3d (patch) | |
tree | db9647f6706208fc197010688e6e39e737723e52 /games/linux-quake4 | |
parent | 18436e09cb6b343361adb6429cc1e33eddd4b838 (diff) |
Notes
Diffstat (limited to 'games/linux-quake4')
-rw-r--r-- | games/linux-quake4/Makefile | 4 | ||||
-rw-r--r-- | games/linux-quake4/files/pkg-deinstall.in | 7 | ||||
-rw-r--r-- | games/linux-quake4/pkg-plist | 19 |
3 files changed, 9 insertions, 21 deletions
diff --git a/games/linux-quake4/Makefile b/games/linux-quake4/Makefile index 05c3f8d66adc..8229e700d1c4 100644 --- a/games/linux-quake4/Makefile +++ b/games/linux-quake4/Makefile @@ -23,14 +23,14 @@ NO_PACKAGE= Package will be 280MB, set FORCE_PACKAGE if you really want it Q4DIR= lib/${PORTNAME} PLIST_SUB+= Q4DIR="${Q4DIR}" \ LINUXBASE="${LINUXBASE}" -SUB_FILES= pkg-message +SUB_LIST+= Q4DIR="${Q4DIR}" +SUB_FILES= pkg-message pkg-deinstall OPTIONS_DEFINE= THREADS GERMANY DOCS GERMANY_DESC= Germany version OPTIONS_DEFAULT= THREADS -.include <bsd.port.options.mk> .include <bsd.port.pre.mk> .if ${PORT_OPTIONS:MTHREADS} diff --git a/games/linux-quake4/files/pkg-deinstall.in b/games/linux-quake4/files/pkg-deinstall.in new file mode 100644 index 000000000000..7f993730c187 --- /dev/null +++ b/games/linux-quake4/files/pkg-deinstall.in @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ "$2" = "POST-DEINSTALL" ]; then + if find "%%PREFIX%%/%%Q4DIR%%" -type f | head -1 | grep -q ''; then + echo "Note: %%PREFIX%%/%%Q4DIR%% not empty -- not deleted!" + fi +fi diff --git a/games/linux-quake4/pkg-plist b/games/linux-quake4/pkg-plist index 067276c60352..55c1a23d1455 100644 --- a/games/linux-quake4/pkg-plist +++ b/games/linux-quake4/pkg-plist @@ -414,23 +414,4 @@ bin/linux-quake4 %%PORTDOCS%%%%DOCSDIR%%/LICENSE %%PORTDOCS%%%%DOCSDIR%%/PBEULA %%PORTDOCS%%%%DOCSDIR%%/README -@dirrm %%Q4DIR%%/pb/htm -@dirrm %%Q4DIR%%/pb -@dirrmtry %%Q4DIR%%/q4base @unexec rmdir %D/%%Q4DIR%% 2>/dev/null || echo "Note: %D/%%Q4DIR%% not empty -- not deleted!" -%%PORTDOCS%%@dirrm %%DOCSDIR%%/ENG/htm -%%PORTDOCS%%@dirrm %%DOCSDIR%%/ENG/images -%%PORTDOCS%%@dirrm %%DOCSDIR%%/ENG -%%PORTDOCS%%@dirrm %%DOCSDIR%%/ENU/htm -%%PORTDOCS%%@dirrm %%DOCSDIR%%/ENU/images -%%PORTDOCS%%@dirrm %%DOCSDIR%%/ENU -%%PORTDOCS%%@dirrm %%DOCSDIR%%/ESP/htm -%%PORTDOCS%%@dirrm %%DOCSDIR%%/ESP/images -%%PORTDOCS%%@dirrm %%DOCSDIR%%/ESP -%%PORTDOCS%%@dirrm %%DOCSDIR%%/FRA/htm -%%PORTDOCS%%@dirrm %%DOCSDIR%%/FRA/images -%%PORTDOCS%%@dirrm %%DOCSDIR%%/FRA -%%PORTDOCS%%@dirrm %%DOCSDIR%%/ITA/htm -%%PORTDOCS%%@dirrm %%DOCSDIR%%/ITA/images -%%PORTDOCS%%@dirrm %%DOCSDIR%%/ITA -%%PORTDOCS%%@dirrm %%DOCSDIR%% |