Subject: bootstrap-pkgsrc: $pkgdbdir vs. /var/db/pkg
To: None <tech-pkg@netbsd.org>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: tech-pkg
Date: 11/24/2002 04:24:41
I think that the pkg_info (etc.) built by bootstrap-pkgsrc should use
$pkgdbdir by default, and not use /var/db/pkg. The patch below does this.
Can someone please review & commit?
- Hubert
Index: bootstrap
===================================================================
RCS file: /cvsroot/othersrc/bootstrap-pkgsrc/bootstrap,v
retrieving revision 1.33
diff -u -r1.33 bootstrap
--- bootstrap 2002/11/24 02:20:31 1.33
+++ bootstrap 2002/11/24 03:22:00
@@ -298,7 +298,7 @@
esac
# bootstrap pkg_install
-(cd pkg_install; ./configure --prefix=$prefix && make && make install)
+(cd pkg_install; ./configure --prefix=$prefix --datadir=$pkgdbdir && make && make install)
if [ $? -ne 0 ] ; then
die "pkg_install installation failed."
fi
Index: pkg_install/lib/lib.h.in
===================================================================
RCS file: /cvsroot/othersrc/bootstrap-pkgsrc/pkg_install/lib/lib.h.in,v
retrieving revision 1.6
diff -u -r1.6 lib.h.in
--- pkg_install/lib/lib.h.in 2002/10/28 17:06:06 1.6
+++ pkg_install/lib/lib.h.in 2002/11/24 03:22:00
@@ -121,7 +121,7 @@
/* Where we put logging information by default, else ${PKG_DBDIR} if set */
#ifndef DEF_LOG_DIR
-#define DEF_LOG_DIR "/var/db/pkg"
+#define DEF_LOG_DIR "@datadir@"
#endif
/* just in case we change the environment variable name */
#define PKG_DBDIR "PKG_DBDIR"
--
Want to get a clue on IPv6 but don't know where to start? Try this:
* Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
* Setup -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html
Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/