Sat Feb 6 04:30:52 2010 UTC ()
Sort $opsys case alphabetically.
part of PR#41130.


(obache)
diff -r1.152 -r1.153 pkgsrc/bootstrap/bootstrap

cvs diff -r1.152 -r1.153 pkgsrc/bootstrap/bootstrap (expand / switch to unified diff)

--- pkgsrc/bootstrap/bootstrap 2010/01/16 02:16:35 1.152
+++ pkgsrc/bootstrap/bootstrap 2010/02/06 04:30:49 1.153
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1#! /bin/sh 1#! /bin/sh
2 2
3# $NetBSD: bootstrap,v 1.152 2010/01/16 02:16:35 obache Exp $ 3# $NetBSD: bootstrap,v 1.153 2010/02/06 04:30:49 obache Exp $
4# 4#
5# 5#
6# Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved. 6# Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved.
7# 7#
8# Redistribution and use in source and binary forms, with or without 8# Redistribution and use in source and binary forms, with or without
9# modification, are permitted provided that the following conditions 9# modification, are permitted provided that the following conditions
10# are met: 10# are met:
11# 1. Redistributions of source code must retain the above copyright 11# 1. Redistributions of source code must retain the above copyright
12# notice, this list of conditions and the following disclaimer. 12# notice, this list of conditions and the following disclaimer.
13# 2. Redistributions in binary form must reproduce the above copyright 13# 2. Redistributions in binary form must reproduce the above copyright
14# notice, this list of conditions and the following disclaimer in the 14# notice, this list of conditions and the following disclaimer in the
15# documentation and/or other materials provided with the distribution. 15# documentation and/or other materials provided with the distribution.
16# 3. All advertising materials mentioning features or use of this software 16# 3. All advertising materials mentioning features or use of this software
@@ -439,26 +439,35 @@ fi @@ -439,26 +439,35 @@ fi
439mandir=${prefix}/${pkgmandir} 439mandir=${prefix}/${pkgmandir}
440[ -z "$sysconfdir" ] && sysconfdir=${prefix}/etc 440[ -z "$sysconfdir" ] && sysconfdir=${prefix}/etc
441 441
442if [ "x$preserve_path" != "xyes" ]; then 442if [ "x$preserve_path" != "xyes" ]; then
443 PATH="$PATH:/sbin:/usr/sbin" 443 PATH="$PATH:/sbin:/usr/sbin"
444fi 444fi
445 445
446overpath="" 446overpath=""
447root_user=root 447root_user=root
448bmakexenv= 448bmakexenv=
449bmakexargs= 449bmakexargs=
450need_extras=no 450need_extras=no
451case "$opsys" in 451case "$opsys" in
 452AIX)
 453 root_group=system
 454 need_bsd_install=yes
 455 need_awk=yes
 456 need_sed=yes
 457 need_fixed_strip=yes
 458 set_opsys=no
 459 machine_arch=`get_machine_arch_aix`
 460 ;;
452Darwin) 461Darwin)
453 root_group=wheel 462 root_group=wheel
454 need_bsd_install=no 463 need_bsd_install=no
455 need_awk=no 464 need_awk=no
456 need_sed=no 465 need_sed=no
457 set_opsys=no 466 set_opsys=no
458 [ -z "$fetch_cmd" ] && fetch_cmd="/usr/bin/ftp" 467 [ -z "$fetch_cmd" ] && fetch_cmd="/usr/bin/ftp"
459 machine_arch=`uname -p` 468 machine_arch=`uname -p`
460 CC="gcc -isystem /usr/include"; export CC 469 CC="gcc -isystem /usr/include"; export CC
461 osrev=`uname -r` 470 osrev=`uname -r`
462 macosx_version=`echo $osrev | awk -F . '{ print "10."$1-4; }'` 471 macosx_version=`echo $osrev | awk -F . '{ print "10."$1-4; }'`
463 case "$macosx_version" in 472 case "$macosx_version" in
464 10.[0-4]) 473 10.[0-4])
@@ -495,26 +504,62 @@ FreeBSD) @@ -495,26 +504,62 @@ FreeBSD)
495 need_awk=no 504 need_awk=no
496 need_sed=no 505 need_sed=no
497 set_opsys=no 506 set_opsys=no
498 machine_arch=`uname -p` 507 machine_arch=`uname -p`
499 ;; 508 ;;
500HPUX) 509HPUX)
501 root_group=sys 510 root_group=sys
502 need_bsd_install=yes 511 need_bsd_install=yes
503 need_awk=yes 512 need_awk=yes
504 need_sed=yes 513 need_sed=yes
505 set_opsys=no 514 set_opsys=no
506 machine_arch=`uname -m | sed 's/^9000.*$/hppa/'` 515 machine_arch=`uname -m | sed 's/^9000.*$/hppa/'`
507 ;; 516 ;;
 517Interix)
 518 is_root () {
 519 if id -G | grep -q 131616; then
 520 return 1
 521 fi
 522 return 0
 523 }
 524 mkdir_p () {
 525 mkdir -p "$@" # allows umask to take effect
 526 }
 527 default_install_mode=0775
 528 root_user=`id -u`
 529 root_group=131616
 530 case `uname -r` in
 531 3.* | 5.*)
 532 need_bsd_install=yes
 533 need_awk=yes
 534 need_sed=yes
 535 set_opsys=no
 536 need_xargs=yes
 537 ;;
 538 *)
 539 need_bsd_install=no
 540 need_awk=no
 541 need_sed=no
 542 set_opsys=no
 543 need_xargs=no
 544 ;;
 545 esac
 546 # only used for unprivileged builds
 547 groupsprog="id -gn"
 548 # for bootstrap only; pkgsrc uses CPPFLAGS
 549 CC="gcc -D_ALL_SOURCE"; export CC
 550 ac_cv_header_poll_h=no; export ac_cv_header_poll_h
 551 ac_cv_func_poll=no; export ac_cv_func_poll
 552 ;;
508IRIX*) 553IRIX*)
509 if [ -d "/usr/freeware/bin" ]; then 554 if [ -d "/usr/freeware/bin" ]; then
510 overpath="/usr/freeware/bin:$overpath" 555 overpath="/usr/freeware/bin:$overpath"
511 fi 556 fi
512 if [ -d "/usr/bsd" ]; then 557 if [ -d "/usr/bsd" ]; then
513 overpath="/usr/bsd:$overpath" 558 overpath="/usr/bsd:$overpath"
514 fi 559 fi
515 if [ -d "/usr/bsd/bin" ]; then 560 if [ -d "/usr/bsd/bin" ]; then
516 overpath="/usr/bsd/bin:$overpath" 561 overpath="/usr/bsd/bin:$overpath"
517 fi 562 fi
518 root_group=sys 563 root_group=sys
519 need_bsd_install=yes 564 need_bsd_install=yes
520 get_abi "IRIX" 565 get_abi "IRIX"
@@ -550,114 +595,69 @@ NetBSD) @@ -550,114 +595,69 @@ NetBSD)
550 need_awk=no 595 need_awk=no
551 need_sed=no 596 need_sed=no
552 set_opsys=no 597 set_opsys=no
553 machine_arch=`uname -p` 598 machine_arch=`uname -p`
554 ;; 599 ;;
555OpenBSD) 600OpenBSD)
556 root_group=wheel 601 root_group=wheel
557 need_bsd_install=no 602 need_bsd_install=no
558 need_awk=no 603 need_awk=no
559 need_sed=no 604 need_sed=no
560 set_opsys=no 605 set_opsys=no
561 machine_arch=`uname -m` 606 machine_arch=`uname -m`
562 ;; 607 ;;
 608OSF1)
 609 root_group=system
 610 need_bsd_install=yes
 611 need_awk=yes
 612 need_sed=yes
 613 need_ksh=yes
 614 set_opsys=no
 615 ;;
 616QNX)
 617 root_group=root
 618 need_bsd_install=yes
 619 set_opsys=no
 620 groupsprog="id -gn"
 621 whoamiprog="id -un"
 622 fetch_cmd="/usr/bin/ftp"
 623 machine_arch=`uname -p | sed -e 's/x86/i386/'`
 624 ;;
563SunOS) 625SunOS)
564 if [ -d "/usr/xpg4/bin" ]; then 626 if [ -d "/usr/xpg4/bin" ]; then
565 overpath="/usr/xpg4/bin:$overpath" 627 overpath="/usr/xpg4/bin:$overpath"
566 fi 628 fi
567 root_group=root 629 root_group=root
568 need_bsd_install=yes 630 need_bsd_install=yes
569 need_awk=yes 631 need_awk=yes
570 need_sed=yes 632 need_sed=yes
571 need_ksh=yes 633 need_ksh=yes
572 set_opsys=no 634 set_opsys=no
573 groupsprog="/usr/xpg4/bin/id -gn" 635 groupsprog="/usr/xpg4/bin/id -gn"
574 whoamiprog="/usr/xpg4/bin/id -un" 636 whoamiprog="/usr/xpg4/bin/id -un"
575 machine_arch=`uname -p | sed -e 's/i86pc/i386/'` 637 machine_arch=`uname -p | sed -e 's/i86pc/i386/'`
576 check_compiler=yes 638 check_compiler=yes
577 ;; 639 ;;
578AIX) 
579 root_group=system 
580 need_bsd_install=yes 
581 need_awk=yes 
582 need_sed=yes 
583 need_fixed_strip=yes 
584 set_opsys=no 
585 machine_arch=`get_machine_arch_aix` 
586 ;; 
587Interix) 
588 is_root () { 
589 if id -G | grep -q 131616; then 
590 return 1 
591 fi 
592 return 0 
593 } 
594 mkdir_p () { 
595 mkdir -p "$@" # allows umask to take effect 
596 } 
597 default_install_mode=0775 
598 root_user=`id -u` 
599 root_group=131616 
600 case `uname -r` in 
601 3.* | 5.*) 
602 need_bsd_install=yes 
603 need_awk=yes 
604 need_sed=yes 
605 set_opsys=no 
606 need_xargs=yes 
607 ;; 
608 *) 
609 need_bsd_install=no 
610 need_awk=no 
611 need_sed=no 
612 set_opsys=no 
613 need_xargs=no 
614 ;; 
615 esac 
616 # only used for unprivileged builds 
617 groupsprog="id -gn" 
618 # for bootstrap only; pkgsrc uses CPPFLAGS 
619 CC="gcc -D_ALL_SOURCE"; export CC 
620 ac_cv_header_poll_h=no; export ac_cv_header_poll_h 
621 ac_cv_func_poll=no; export ac_cv_func_poll 
622 ;; 
623UnixWare) 640UnixWare)
624 root_group=sys 641 root_group=sys
625 need_bsd_install=no 642 need_bsd_install=no
626 BSTRAP_ENV="INSTALL=/usr/ucb/install $BSTRAP_ENV" 643 BSTRAP_ENV="INSTALL=/usr/ucb/install $BSTRAP_ENV"
627 need_mkdir=yes 644 need_mkdir=yes
628 need_awk=yes 645 need_awk=yes
629 need_sed=yes 646 need_sed=yes
630 whoamiprog=/usr/ucb/whoami 647 whoamiprog=/usr/ucb/whoami
631 set_opsys=no 648 set_opsys=no
632 CC="gcc -DUNIXWARE"; export CC 649 CC="gcc -DUNIXWARE"; export CC
633 ;; 650 ;;
634OSF1) 
635 root_group=system 
636 need_bsd_install=yes 
637 need_awk=yes 
638 need_sed=yes 
639 need_ksh=yes 
640 set_opsys=no 
641 ;; 
642QNX) 
643 root_group=root 
644 need_bsd_install=yes 
645 set_opsys=no 
646 groupsprog="id -gn" 
647 whoamiprog="id -un" 
648 fetch_cmd="/usr/bin/ftp" 
649 machine_arch=`uname -p | sed -e 's/x86/i386/'` 
650 ;; 
651*) 651*)
652 echo "This platform ($opsys) is untried - good luck, and thanks for using pkgsrc" 652 echo "This platform ($opsys) is untried - good luck, and thanks for using pkgsrc"
653 root_group=wheel 653 root_group=wheel
654 need_bsd_install=yes 654 need_bsd_install=yes
655 need_awk=yes 655 need_awk=yes
656 need_sed=yes 656 need_sed=yes
657 set_opsys=no 657 set_opsys=no
658 ;; 658 ;;
659esac 659esac
660 660
661# If "--full" is specified, then install all of the platform-independent 661# If "--full" is specified, then install all of the platform-independent
662# bootstrap software. 662# bootstrap software.
663# 663#