mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
4b146fcac9
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
18 lines
415 B
YAML
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
|