1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/Keywords/info.yaml
Baptiste Daroussin 5285b348d3 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
2013-03-14 10:11:19 +00:00

15 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