Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Dec 2014 01:16:42 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r375767 - in head/games/linux-doom3: . files
Message-ID:  <201412290116.sBT1Gg8o096425@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
-@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412290116.sBT1Gg8o096425>