diff options
author | jlam <jlam@pkgsrc.org> | 2006-07-14 17:51:13 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-07-14 17:51:13 +0000 |
commit | 9924c898b7b4e31bd71ab357e74ab5f0dab68b22 (patch) | |
tree | b9425f52c83923eaccaa1cf5b1d709f3dad3a4d2 /bootstrap | |
parent | 01df22aa06d07f3dba6102c256dd77575dab712f (diff) | |
download | pkgsrc-9924c898b7b4e31bd71ab357e74ab5f0dab68b22.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-x | bootstrap/bootstrap | 32 |
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." |