1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/Keywords/info.yaml
Baptiste Daroussin 4b146fcac9 Fix handling of info files with pkgng, when dealing with .info-X files and also what INFO_SUBDIR.
The .info-X handling was wrong since the beginning of pkgng, the INFO_SUBDIR regression was introduced with stage

PR:		ports/184178
Reported by:	gerald
Tested by:	gerald
2013-11-23 09:48:42 +00:00

18 lines
415 B
YAML

# $FreeBSD$
#
# MAINTAINER: portmgr@FreeBSD.org
actions: [file]
post-install: |
file=%D/%@
install-info --quiet %D/%@ %D/info/dir
post-deinstall: |
file=%D/%@
install-info --quiet --delete %D/%@ %D/info/dir
if [ $(info -d ${file%/*} --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
rm -f ${file%/*}/dir
fi
if [ ${file%/*} != "%D/info" ]; then
rmdir ${file%/*} 2> /dev/null || true
fi