5285b348d3
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
14 lines
334 B
YAML
14 lines
334 B
YAML
# $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
|