aboutsummaryrefslogtreecommitdiffstats
path: root/Keywords
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-09-03 13:16:13 +0800
committerbapt <bapt@FreeBSD.org>2014-09-03 13:16:13 +0800
commit360c6f45b25a6b859b394a23d7c55f6feaf0419f (patch)
tree049ffcb5b571194aa7324281882d2623d6a9cf5d /Keywords
parente6828d6bb5c7d6843a07e468e216176eeb25cdd4 (diff)
downloadfreebsd-ports-gnome-360c6f45b25a6b859b394a23d7c55f6feaf0419f.tar.gz
freebsd-ports-gnome-360c6f45b25a6b859b394a23d7c55f6feaf0419f.tar.zst
freebsd-ports-gnome-360c6f45b25a6b859b394a23d7c55f6feaf0419f.zip
Convert rmtry into regular Keyword
Note that this allows to control when it is executed (always in post-installation) This makes @rmtry accept both absolute path and relative path (to latest prefix/cwd) While here now that it is not used, remove the old PLIST_REINPLACE macro Reviewed by: antoine Differential Revision: https://reviews.freebsd.org/D713
Diffstat (limited to 'Keywords')
-rw-r--r--Keywords/rmtry.ucl11
1 files changed, 11 insertions, 0 deletions
diff --git a/Keywords/rmtry.ucl b/Keywords/rmtry.ucl
new file mode 100644
index 000000000000..deddce913c9f
--- /dev/null
+++ b/Keywords/rmtry.ucl
@@ -0,0 +1,11 @@
+# $FreeBSD$
+#
+# MAINTAINER: portmgr@FreeBSD.org
+actions: []
+post-deinstall: <<EOD
+ case "%@" in
+ /*) f="%@" ;;
+ *) f="%D/%@" ;;
+ esac
+ /bin/rm -f $f 2>/dev/null || /usr/bin/true
+EOD