svn commit: r375767 - in head/games/linux-doom3: . files

Dmitry Marakasov amdmi3 at FreeBSD.org
Mon Dec 29 01:16:43 UTC 2014


Author: amdmi3
Date: Mon Dec 29 01:16:41 2014
New Revision: 375767
URL: https://svnweb.freebsd.org/changeset/ports/375767
QAT: https://qat.redports.org/buildarchive/r375767/

Log:
  - Fix reporting files that should be removed manually
  - Drop @dirrm* from plist

Added:
  head/games/linux-doom3/files/pkg-deinstall.in   (contents, props changed)
Modified:
  head/games/linux-doom3/Makefile
  head/games/linux-doom3/pkg-plist

Modified: head/games/linux-doom3/Makefile
==============================================================================
--- head/games/linux-doom3/Makefile	Mon Dec 29 01:16:20 2014	(r375766)
+++ head/games/linux-doom3/Makefile	Mon Dec 29 01:16:41 2014	(r375767)
@@ -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>
 

Added: head/games/linux-doom3/files/pkg-deinstall.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/linux-doom3/files/pkg-deinstall.in	Mon Dec 29 01:16:41 2014	(r375767)
@@ -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

Modified: head/games/linux-doom3/pkg-plist
==============================================================================
--- head/games/linux-doom3/pkg-plist	Mon Dec 29 01:16:20 2014	(r375766)
+++ head/games/linux-doom3/pkg-plist	Mon Dec 29 01:16:41 2014	(r375767)
@@ -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
- at dirrmtry %%DATADIR%%/base
- at 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


More information about the svn-ports-head mailing list