summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorjlam <jlam>2006-07-14 17:51:13 +0000
committerjlam <jlam>2006-07-14 17:51:13 +0000
commite6a3620f954808dee16f56d572d53ce9bcb6d234 (patch)
treeb9425f52c83923eaccaa1cf5b1d709f3dad3a4d2 /bootstrap
parent4a86e07c1b758b71402023f6a93c502af5f1e7aa (diff)
downloadpkgsrc-e6a3620f954808dee16f56d572d53ce9bcb6d234.tar.gz
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 (limited to 'bootstrap')
-rwxr-xr-xbootstrap/bootstrap32
1 files changed, 29 insertions, 3 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index ad5f96c8c25..891b8f7768f 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -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 @@ yes) echo_msg "Installing sed"
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 @@ if [ -z "$fetch_cmd" ]; then
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 @@ opsys_finish
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."