summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>1999-02-11 14:42:08 +0000
committertv <tv@pkgsrc.org>1999-02-11 14:42:08 +0000
commit6a93f491eff92b5d67a53de00f75317544a67fd3 (patch)
tree41692252eff7c91ec23916ec1fd46a7c54e89030 /mk
parent3c72106c6075d1ae45659fc8733480eaff51c7b3 (diff)
downloadpkgsrc-6a93f491eff92b5d67a53de00f75317544a67fd3.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)?$$' \