pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/bootstrap Register the files that installed by the boo...
details: https://anonhg.NetBSD.org/pkgsrc/rev/adc328b19f14
branches: trunk
changeset: 516121:adc328b19f14
user: jlam <jlam%pkgsrc.org@localhost>
date: Fri Jul 14 17:51:13 2006 +0000
description:
Register the files that installed by the bootstrap script into the
package database.
XXX There are still some files not registered, e.g. share/mk and any
XXX mkdir/install/strip/ldd replacements needed by some platforms.
XXX These will probably get moved into pkgsrc proper.
diffstat:
bootstrap/bootstrap | 32 +++++++++++++++++++++++++++++---
1 files changed, 29 insertions(+), 3 deletions(-)
diffs (62 lines):
diff -r cd570acb7003 -r adc328b19f14 bootstrap/bootstrap
--- a/bootstrap/bootstrap Fri Jul 14 17:37:03 2006 +0000
+++ b/bootstrap/bootstrap Fri Jul 14 17:51:13 2006 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.60 2006/07/14 15:58:43 jlam Exp $
+# $NetBSD: bootstrap,v 1.61 2006/07/14 17:51:13 jlam Exp $
#
#
# Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved.
@@ -761,7 +761,13 @@
esac
if [ -z "$fetch_cmd" ]; then
- # bootstrap tnftp
+ need_ftp=yes
+else
+ need_ftp=no
+fi
+
+case "$need_ftp" in
+yes) # bootstrap tnftp
fetch_cmd="$prefix/bin/ftp"
case "$DEBIAN" in
yes)
@@ -771,7 +777,8 @@
echo_msg "Installing tnftp"
copy_src ../net/tnftp/files tnftp
run_cmd "(cd $wrkdir/tnftp; env $BSTRAP_ENV $tnftpxenv $shprog ./configure --prefix=$prefix --mandir=$mandir --sysconfdir=$sysconfdir && $bmake && (cd src && $bmake install))"
-fi
+ ;;
+esac
pkg_install_args="$pkg_install_args --with-ftp=$fetch_cmd"
@@ -820,6 +827,25 @@
echo "" >> ${MKCONF_EXAMPLE}
echo ".endif # end pkgsrc settings" >> ${MKCONF_EXAMPLE}
+# register packages
+echo_msg "Registering installed packages"
+case "$need_awk" in
+yes) run_cmd "(cd ../lang/nawk && $bmake MAKECONF=${MKCONF_EXAMPLE} bootstrap-register)" ;;
+esac
+case "$need_sed" in
+yes) run_cmd "(cd ../textproc/nbsed && $bmake MAKECONF=${MKCONF_EXAMPLE} LIBNBCOMPAT_STYLE=inplace bootstrap-register)" ;;
+esac
+case "$need_ftp" in
+yes) run_cmd "(cd ../net/tnftp&& $bmake MAKECONF=${MKCONF_EXAMPLE} LIBNBCOMPAT_STYLE=inplace PKG_OPTIONS= bootstrap-register)" ;;
+esac
+case "$need_mtree" in
+yes) run_cmd "(cd ../pkgtools/mtree && $bmake MAKECONF=${MKCONF_EXAMPLE} LIBNBCOMPAT_STYLE=inplace bootstrap-register)" ;;
+esac
+case "$need_pax" in
+yes) run_cmd "(cd ../archivers/pax && $bmake MAKECONF=${MKCONF_EXAMPLE} LIBNBCOMPAT_STYLE=inplace bootstrap-register)" ;;
+esac
+run_cmd "(cd ../pkgtools/pkg_install && $bmake MAKECONF=${MKCONF_EXAMPLE} LIBNBCOMPAT_STYLE=inplace bootstrap-register)"
+
echo ""
echo "Please remember to add $prefix/bin to your PATH environment variable"
echo "and $prefix/man to your MANPATH environment variable, if necessary."
Home |
Main Index |
Thread Index |
Old Index