aboutsummaryrefslogtreecommitdiffstats
path: root/Keywords
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-03-14 18:11:19 +0800
committerbapt <bapt@FreeBSD.org>2013-03-14 18:11:19 +0800
commite78f7fb401fd5c8eb6d306a74ecf52068c56160d (patch)
tree24a0c14a0913d29f7a5b5f8475bb9c240cd75e41 /Keywords
parente3100f579808b8e1d1db90beb8bd675d28e9477f (diff)
downloadfreebsd-ports-gnome-e78f7fb401fd5c8eb6d306a74ecf52068c56160d.tar.gz
freebsd-ports-gnome-e78f7fb401fd5c8eb6d306a74ecf52068c56160d.tar.zst
freebsd-ports-gnome-e78f7fb401fd5c8eb6d306a74ecf52068c56160d.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
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