summaryrefslogtreecommitdiff
path: root/Keywords
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-10-07 23:26:28 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-10-07 23:26:28 +0000
commit655afac56431facba9e232bf66c481de3994002c (patch)
treeee5b450487fd5b940b8c6c36031b36ac4b922c6f /Keywords
parent- Use new pkg plist-related features (diff)
Accept absolute path for @info keyword
Diffstat (limited to 'Keywords')
-rw-r--r--Keywords/info.ucl10
1 files changed, 8 insertions, 2 deletions
diff --git a/Keywords/info.ucl b/Keywords/info.ucl
index b0d4b02ac4a4..956884330786 100644
--- a/Keywords/info.ucl
+++ b/Keywords/info.ucl
@@ -4,10 +4,16 @@
actions: [file]
post-install: <<EOD
- file=%D/%@
+ case "%@" in
+ /*) file="%@" ;;
+ *) file="%D/%@" ;;
+ esac
indexinfo ${file%/*}
EOD
post-deinstall: <<EOD
- file=%D/%@
+ case "%@" in
+ /*) file="%@" ;;
+ *) file="%D/%@" ;;
+ esac
indexinfo ${file%/*}
EOD