diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-09-03 05:16:13 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-09-03 05:16:13 +0000 |
commit | c4526308ea8298676eba125fb32c557f7ba39893 (patch) | |
tree | 049ffcb5b571194aa7324281882d2623d6a9cf5d /Keywords | |
parent | 4763c7d4d0875adaeda5496d358ccd5f4c4dd778 (diff) |
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
Notes
Notes:
svn path=/head/; revision=367153
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 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 |