diff options
author | bapt <bapt@FreeBSD.org> | 2014-09-03 13:16:13 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-09-03 13:16:13 +0800 |
commit | 360c6f45b25a6b859b394a23d7c55f6feaf0419f (patch) | |
tree | 049ffcb5b571194aa7324281882d2623d6a9cf5d /Keywords | |
parent | e6828d6bb5c7d6843a07e468e216176eeb25cdd4 (diff) | |
download | freebsd-ports-graphics-360c6f45b25a6b859b394a23d7c55f6feaf0419f.tar.gz freebsd-ports-graphics-360c6f45b25a6b859b394a23d7c55f6feaf0419f.tar.zst freebsd-ports-graphics-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.ucl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Keywords/rmtry.ucl b/Keywords/rmtry.ucl new file mode 100644 index 00000000000..deddce913c9 --- /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 |