diff options
author | obache <obache> | 2010-02-06 04:30:49 +0000 |
---|---|---|
committer | obache <obache> | 2010-02-06 04:30:49 +0000 |
commit | 2d0d40bc62aa2effec2382715978e800badac129 (patch) | |
tree | 0ab3bf86088d9b2c159ed9eab33abcf1f801c08b /bootstrap | |
parent | 75f7a19af0ddbdb253a566582a108fd1922060f5 (diff) | |
download | pkgsrc-2d0d40bc62aa2effec2382715978e800badac129.tar.gz |
Sort $opsys case alphabetically.
part of PR#41130.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/bootstrap | 126 |
1 files changed, 63 insertions, 63 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index 50923fa7af5..fc08fd89d4f 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.152 2010/01/16 02:16:35 obache Exp $ +# $NetBSD: bootstrap,v 1.153 2010/02/06 04:30:49 obache Exp $ # # # Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved. @@ -449,6 +449,15 @@ bmakexenv= bmakexargs= need_extras=no case "$opsys" in +AIX) + root_group=system + need_bsd_install=yes + need_awk=yes + need_sed=yes + need_fixed_strip=yes + set_opsys=no + machine_arch=`get_machine_arch_aix` + ;; Darwin) root_group=wheel need_bsd_install=no @@ -505,6 +514,42 @@ HPUX) set_opsys=no machine_arch=`uname -m | sed 's/^9000.*$/hppa/'` ;; +Interix) + is_root () { + if id -G | grep -q 131616; then + return 1 + fi + return 0 + } + mkdir_p () { + mkdir -p "$@" # allows umask to take effect + } + default_install_mode=0775 + root_user=`id -u` + root_group=131616 + 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 + CC="gcc -D_ALL_SOURCE"; export CC + ac_cv_header_poll_h=no; export ac_cv_header_poll_h + ac_cv_func_poll=no; export ac_cv_func_poll + ;; IRIX*) if [ -d "/usr/freeware/bin" ]; then overpath="/usr/freeware/bin:$overpath" @@ -560,6 +605,23 @@ OpenBSD) set_opsys=no machine_arch=`uname -m` ;; +OSF1) + root_group=system + need_bsd_install=yes + need_awk=yes + need_sed=yes + need_ksh=yes + set_opsys=no + ;; +QNX) + root_group=root + need_bsd_install=yes + set_opsys=no + groupsprog="id -gn" + whoamiprog="id -un" + fetch_cmd="/usr/bin/ftp" + machine_arch=`uname -p | sed -e 's/x86/i386/'` + ;; SunOS) if [ -d "/usr/xpg4/bin" ]; then overpath="/usr/xpg4/bin:$overpath" @@ -575,51 +637,6 @@ SunOS) machine_arch=`uname -p | sed -e 's/i86pc/i386/'` check_compiler=yes ;; -AIX) - root_group=system - need_bsd_install=yes - need_awk=yes - need_sed=yes - need_fixed_strip=yes - set_opsys=no - machine_arch=`get_machine_arch_aix` - ;; -Interix) - is_root () { - if id -G | grep -q 131616; then - return 1 - fi - return 0 - } - mkdir_p () { - mkdir -p "$@" # allows umask to take effect - } - default_install_mode=0775 - root_user=`id -u` - root_group=131616 - 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 - CC="gcc -D_ALL_SOURCE"; export CC - ac_cv_header_poll_h=no; export ac_cv_header_poll_h - ac_cv_func_poll=no; export ac_cv_func_poll - ;; UnixWare) root_group=sys need_bsd_install=no @@ -631,23 +648,6 @@ UnixWare) set_opsys=no CC="gcc -DUNIXWARE"; export CC ;; -OSF1) - root_group=system - need_bsd_install=yes - need_awk=yes - need_sed=yes - need_ksh=yes - set_opsys=no - ;; -QNX) - root_group=root - need_bsd_install=yes - set_opsys=no - groupsprog="id -gn" - whoamiprog="id -un" - fetch_cmd="/usr/bin/ftp" - machine_arch=`uname -p | sed -e 's/x86/i386/'` - ;; *) echo "This platform ($opsys) is untried - good luck, and thanks for using pkgsrc" root_group=wheel |