pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/bootstrap No need to use pkgsrc bsd_install, awk, sed ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6eb226d63b74
branches:  trunk
changeset: 568432:6eb226d63b74
user:      obache <obache%pkgsrc.org@localhost>
date:      Sun Dec 13 08:35:22 2009 +0000

description:
No need to use pkgsrc bsd_install, awk, sed and xargs for SUA 6.0 on bootstrap.
XXX: If someone confirmed SUA 5.2 also so, please adjust "3.* | 5.*)" to "3.*)".

diffstat:

 bootstrap/bootstrap |  23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

diffs (39 lines):

diff -r ff8c877cf375 -r 6eb226d63b74 bootstrap/bootstrap
--- a/bootstrap/bootstrap       Sun Dec 13 08:30:01 2009 +0000
+++ b/bootstrap/bootstrap       Sun Dec 13 08:35:22 2009 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: bootstrap,v 1.150 2009/08/01 20:19:37 dholland Exp $
+# $NetBSD: bootstrap,v 1.151 2009/12/13 08:35:22 obache Exp $
 #
 #
 # Copyright (c) 2001-2002 Alistair G. Crooks.  All rights reserved.
@@ -596,11 +596,22 @@
        default_install_mode=0775
        root_user=`id -u`
        root_group=131616
-       need_bsd_install=yes
-       need_awk=yes
-       need_sed=yes
-       set_opsys=no
-       need_xargs=yes
+       case `uname -r` in
+       3.* | 5.*)
+               need_bsd_install=yes
+               need_awk=yes
+               need_sed=yes
+               set_opsys=no
+               need_xargs=yes
+               ;;
+       *)
+               need_bsd_install=no
+               need_awk=no
+               need_sed=no
+               set_opsys=no
+               need_xargs=no
+               ;;
+       esac
        # only used for unprivileged builds
        groupsprog="id -gn"
        # for bootstrap only; pkgsrc uses CPPFLAGS



Home | Main Index | Thread Index | Old Index