summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortv <tv>1999-02-11 14:42:08 +0000
committertv <tv>1999-02-11 14:42:08 +0000
commit0bc4fe5e664f5a94dc0b95d56fab62b9a1e155fd (patch)
tree41692252eff7c91ec23916ec1fd46a7c54e89030 /mk
parent6ba432b028bc43f92a20acf3e06b0f69753fa485 (diff)
downloadpkgsrc-0bc4fe5e664f5a94dc0b95d56fab62b9a1e155fd.tar.gz
If /usr/bin/install-info exists:
- do not depend on gtexinfo pkg even if USE_GTEXINFO is set - if ${LOCALBASE}/info/dir is a regular file, nuke it and replace as a symlink to /usr/share/info/dir. (Upgrades of the base system will do this too, except that those will copy the contents of /usr/pkg/info/dir first. There is no truly clean solution here.) Also, use --info-dir=${LOCALBASE}/info/dir, NOT ${PREFIX}/info/dir. info(1) only searches one directory file.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk13
1 files changed, 10 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index f6ff94c0454..ca6b657d852 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.209 1999/02/03 15:11:46 tv Exp $
+# $NetBSD: bsd.pkg.mk,v 1.210 1999/02/11 14:42:08 tv Exp $
#
# This file is in the public domain.
#
@@ -1144,9 +1144,16 @@ _PORT_USE: .USE
${SCRIPTDIR}/${.TARGET:S/^real-/post-/}; \
fi
.if make(real-install)
+.if exists(/usr/bin/install-info)
+ @if [ -f ${LOCALBASE}/info/dir ]; then \
+ rm -f ${LOCALBASE}/info/dir; \
+ ln -s /usr/share/info/dir ${LOCALBASE}/info/dir; \
+ fi
+.endif
@for f in ${INFO_FILES}; do \
- ${ECHO} "${LOCALBASE}/bin/install-info --info-dir=${PREFIX}/info ${PREFIX}/info/$$f"; \
- ${LOCALBASE}/bin/install-info --info-dir=${PREFIX}/info ${PREFIX}/info/$$f; \
+ ${ECHO} "install-info --info-dir=${LOCALBASE}/info ${PREFIX}/info/$$f"; \
+ install-info --remove --info-dir=${LOCALBASE}/info ${PREFIX}/info/$$f; \
+ install-info --info-dir=${LOCALBASE}/info ${PREFIX}/info/$$f; \
done
@(newmanpages=`/usr/bin/egrep -h \
'^([^/]*/)*man/([^/]*/)?(man[1-9ln]/.*\.[1-9ln]|cat[1-9ln]/.*\.0)(\.gz)?$$' \