summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2008-06-08 21:04:30 +0000
committerhe <he@pkgsrc.org>2008-06-08 21:04:30 +0000
commita8e2184877b4e6595670f739c358e1fbc90bc2bc (patch)
treeb846e7196c75b3e12e04f3399b05e38a054b6ce5 /pkgtools/pkg_install
parent9c0077dc1ef33ae1639254eed113f84663a9f0a2 (diff)
downloadpkgsrc-a8e2184877b4e6595670f739c358e1fbc90bc2bc.tar.gz
Commit two fixes which at least for me appear to be required when
doing an old-style bulk build on 4.0 or older systems: - in mk/bulk/build, do "make update" instead of "make install + clean" when installing a new pkg_install - in pkgtools/pkg_install/Makefile, don't try to use our own executables (${WORKDIR}/pkg_add/pkg_add etc.) if they don't exist Discussed with joerg, and even though he's not entirely happy with the latter change, he didn't appear to have a better suggestion. This, and putting /usr/pkg/sbin earlier than /usr/sbin in the $PATH appears to be required to get an old-style bulk build going.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r--pkgtools/pkg_install/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile
index 8c51f1ff345..197af353eb0 100644
--- a/pkgtools/pkg_install/Makefile
+++ b/pkgtools/pkg_install/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.153 2008/06/02 16:40:25 joerg Exp $
+# $NetBSD: Makefile,v 1.154 2008/06/08 21:04:30 he Exp $
# Notes to package maintainers:
#
@@ -53,10 +53,12 @@ CHECK_PERMS= no
# from an older pkg_install might required features of the new program.
#
USE_NATIVE_GCC= yes
+.if exists(${WRKSRC}/add/pkg_add)
PKG_ADD_CMD= ${WRKSRC}/add/pkg_add
PKG_CREATE_CMD= ${WRKSRC}/create/pkg_create
PKG_DELETE_CMD= ${WRKSRC}/delete/pkg_delete
PKG_INFO_CMD= ${WRKSRC}/info/pkg_info
+.endif
CPPFLAGS+= -D_LARGEFILE_SOURCE -D_LARGE_FILES
CPPFLAGS+= -D_FILE_OFFSET_BITS=64