Mon Mar 15 16:22:06 2021 UTC ()
bootstrap: Add MidnightBSD support to bootstrap shell script


(ryoon)
diff -r0 -r1.1 pkgsrc/bootstrap/README.MidnightBSD
diff -r1.297 -r1.298 pkgsrc/bootstrap/bootstrap

File Added: pkgsrc/bootstrap/README.MidnightBSD
$NetBSD: README.MidnightBSD,v 1.1 2021/03/15 16:22:06 ryoon Exp $

Please read the general README file and README.FreeBSD as well.

cvs diff -r1.297 -r1.298 pkgsrc/bootstrap/bootstrap (expand / switch to unified diff)

--- pkgsrc/bootstrap/bootstrap 2021/02/15 12:56:53 1.297
+++ pkgsrc/bootstrap/bootstrap 2021/03/15 16:22:06 1.298
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1#! /bin/sh 1#! /bin/sh
2 2
3# $NetBSD: bootstrap,v 1.297 2021/02/15 12:56:53 cjep Exp $ 3# $NetBSD: bootstrap,v 1.298 2021/03/15 16:22:06 ryoon Exp $
4# 4#
5# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> 5# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
6# All rights reserved. 6# 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# 16#
@@ -722,26 +722,31 @@ Linux) @@ -722,26 +722,31 @@ Linux)
722 need_awk=yes 722 need_awk=yes
723 need_pax=yes 723 need_pax=yes
724 elif grep -sq '^CHROMEOS_RELEASE_NAME' /etc/lsb-release; then 724 elif grep -sq '^CHROMEOS_RELEASE_NAME' /etc/lsb-release; then
725 need_awk=yes 725 need_awk=yes
726 need_sed=yes 726 need_sed=yes
727 fi 727 fi
728 machine_arch=`uname -m` 728 machine_arch=`uname -m`
729 # Override machine_arch where required. 729 # Override machine_arch where required.
730 case "$machine_arch" in 730 case "$machine_arch" in
731 i?86) machine_arch=i386 ;; 731 i?86) machine_arch=i386 ;;
732 ppc64le) machine_arch=powerpc64le ;; 732 ppc64le) machine_arch=powerpc64le ;;
733 esac 733 esac
734 ;; 734 ;;
 735MidnightBSD)
 736 root_group=wheel
 737 machine_arch=`uname -p`
 738 check_compiler=yes
 739 ;;
735Minix) 740Minix)
736 root_group=wheel 741 root_group=wheel
737 machine_arch=`uname -p` 742 machine_arch=`uname -p`
738 check_compiler=yes 743 check_compiler=yes
739 ;;  744 ;;
740MirBSD) 745MirBSD)
741 root_group=wheel 746 root_group=wheel
742 need_pax=yes 747 need_pax=yes
743 machine_arch=`arch -s` 748 machine_arch=`arch -s`
744 # there is no /usr/bin/cc, so use mgcc if unset 749 # there is no /usr/bin/cc, so use mgcc if unset
745 test -n "$CC" || { CC=mgcc; export CC; } 750 test -n "$CC" || { CC=mgcc; export CC; }
746 # get some variables from the native make if unset 751 # get some variables from the native make if unset
747 for var in CFLAGS CPPFLAGS LDFLAGS; do 752 for var in CFLAGS CPPFLAGS LDFLAGS; do