aboutsummaryrefslogtreecommitdiff
path: root/Keywords
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-03-14 10:11:19 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-03-14 10:11:19 +0000
commit5285b348d3f8ef6dce0f4cde4e800f56fa3192e9 (patch)
tree24a0c14a0913d29f7a5b5f8475bb9c240cd75e41 /Keywords
parent98d451887b5744daee140068ba1ea22fa8004bb1 (diff)
downloadports-5285b348d3f8ef6dce0f4cde4e800f56fa3192e9.tar.gz
ports-5285b348d3f8ef6dce0f4cde4e800f56fa3192e9.zip
Fix info files with pkgng.
This bring the first Keyword into the ports tree. Keywords are pkgng custom plist keyword definition. info.yaml defines a new @info keyword usable only with pkgng which will: - add the info agument to the file list - set a post-installation execution script - set a post-deinstallation execution script in keyword definition the script uses the same format (%f, %F, %D, ...) as @exec/@unexec does it just add a new one: %@ which correspond the the keyword argument line. Exp-run: miwi
Notes
Notes: svn path=/head/; revision=314142
Diffstat (limited to 'Keywords')
-rw-r--r--Keywords/info.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/Keywords/info.yaml b/Keywords/info.yaml
new file mode 100644
index 000000000000..5cdb789f499c
--- /dev/null
+++ b/Keywords/info.yaml
@@ -0,0 +1,14 @@
+# $FreeBSD$
+#
+# MAINTAINER: portmgr@FreeBSD.org
+
+actions: [file]
+post-install: |
+ file=%D/%@
+ install-info --quiet %D/%@ ${file%/*}/dir
+post-deinstall: |
+ file=%D/%@
+ install-info --quiet --delete %D/%@ ${file%/*}/dir
+ if [ $(info -d ${file%/*} --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
+ rm -f ${file%/*}/dir
+ fi