mirror of
https://github.com/nobodino/slackware-from-scratch
synced 2024-09-28 03:20:42 +02:00
updated scripts
This commit is contained in:
parent
56de590192
commit
0a3462b15e
8 changed files with 83 additions and 28 deletions
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
####################### export_variables #################################
|
||||
#
|
||||
# Copyright 2018,2022 J. E. Garrott Sr, Puyallup, WA, USA
|
||||
# Copyright 2018,2022 "nobodino", Bordeaux, FRANCE
|
||||
# Copyright 2018 to 2022 J. E. Garrott Sr, Puyallup, WA, USA
|
||||
# Copyright 2018 to 2022 "nobodino", Bordeaux, FRANCE
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -55,8 +55,7 @@ export DLDIR13=https://github.com/nobodino/slackware-from-scratch/trunk
|
|||
# jdk and ada versions
|
||||
#*******************************************************************
|
||||
# export JDK="8u202"
|
||||
# export GNAT_x86="gnat-gpl-2014-x86-linux-bin.tar.gz"
|
||||
export DLDIR14=https://slackware.uk/cumulative/slackware-current/slackware/d
|
||||
export GNAT_x86="gnat-gpl-2014-x86-linux-bin.tar.gz"
|
||||
export GNAT_x86_64="gnat-gpl-2017-x86_64-linux-bin.tar.gz"
|
||||
export GREEN="\\033[1;32m"
|
||||
export NORMAL="\\033[0;39m"
|
||||
|
|
62
export_variables_perso
Executable file
62
export_variables_perso
Executable file
|
@ -0,0 +1,62 @@
|
|||
#!/bin/bash
|
||||
####################### export_variables ################################
|
||||
#
|
||||
# Copyright 2018 to 2022 J. E. Garrott Sr, Puyallup, WA, USA
|
||||
# Copyright 2018 to 2022 "nobodino", Bordeaux, FRANCE
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
#--------------------------------------------------------------------------
|
||||
#
|
||||
# Above july 2018, revisions made through github project:
|
||||
# https://github.com/nobodino/slackware-from-scratch
|
||||
#
|
||||
##########################################################################
|
||||
# set -x
|
||||
#*******************************************************************
|
||||
# VARIABLES to be set by the user
|
||||
#*******************************************************************
|
||||
# SFS is the directory where will be built slackware from scratch
|
||||
#*******************************************************************
|
||||
export SFS=/mnt/sfs
|
||||
#******************************************************************
|
||||
# PATDIR is the directory where you store eveything about sfs (tools, others...)
|
||||
#*******************************************************************
|
||||
export PATDIR=/mnt/ext4/sda4/sfs
|
||||
#*******************************************************************
|
||||
# the directory where are stored everything else slackware (gnat..)
|
||||
#*******************************************************************
|
||||
export DNDIR1=/mnt/ext4/sda4/sfs/others
|
||||
#*******************************************************************
|
||||
# the directory where is stored the resynced slackware sources
|
||||
#*******************************************************************
|
||||
export RDIR1=/mnt/ext4/sda4/home/ftp/pub/Linux/Slackware/slackware-current
|
||||
export RDIR3=/mnt/ext4/sda4/home/ftp/pub/Linux/Slackware/slackware64-current
|
||||
export RDIR5=/mnt/dvd
|
||||
#*******************************************************************
|
||||
# the directory where will be copied the slackware sources from RDIR
|
||||
#*******************************************************************
|
||||
export SRCDIR=$SFS/source
|
||||
#*******************************************************************
|
||||
# Command for retrieve the native flags:
|
||||
# gcc -march=native -v -E - < /dev/null 2>&1 | grep cc1 | perl -pe 's/ -mno-\S+//g; s/^.* - //g;'
|
||||
#******************************************************************
|
||||
# CFLAGS="-O3 -fPIC -march=skylake -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mfma -mbmi -msgx -mbmi2 -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrtm -mhle -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mclflushopt -mxsavec -mxsaves --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=skylake"
|
||||
# export CFLAGS
|
||||
#******************************************************************
|
|
@ -107,10 +107,6 @@ echo "following command, it will build the entire system till the end:"
|
|||
echo
|
||||
echo -e "$GREEN" "time source full-sfs" "$NORMAL"
|
||||
echo
|
||||
echo "Either, you can also build a small slackware system with no X11 system, "
|
||||
echo "by executing the following command:"
|
||||
echo
|
||||
echo -e "$RED" "time source sfsbuild list0" "$NORMAL"
|
||||
echo
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
####################### list_generator #################################
|
||||
#
|
||||
# Copyright 2018,2022 J. E. Garrott Sr, Puyallup, WA, USA
|
||||
# Copyright 2018,2022 "nobodino", Bordeaux, FRANCE
|
||||
# Copyright 2018 to 2022 J. E. Garrott Sr, Puyallup, WA, USA
|
||||
# Copyright 2018 to 2022 "nobodino", Bordeaux, FRANCE
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -40,7 +40,6 @@ lists_generator () {
|
|||
generate_slackware_list3
|
||||
generate_slackware_list4
|
||||
generate_slackware_list5
|
||||
generate_slackware_list0
|
||||
}
|
||||
|
||||
generate_slackware_link_build_list () {
|
||||
|
@ -122,6 +121,7 @@ d python3
|
|||
d python-setuptools
|
||||
d meson
|
||||
n curl
|
||||
a coreutils
|
||||
l libarchive
|
||||
l python-alabaster
|
||||
l python-babel
|
||||
|
@ -144,7 +144,7 @@ l python-idna
|
|||
l python-sphinx
|
||||
d cmake
|
||||
n dhcpcd
|
||||
a dhcpcd_up
|
||||
# a dhcpcd_up
|
||||
n cyrus-sasl
|
||||
l db48
|
||||
l rpcsvc-proto
|
||||
|
@ -172,6 +172,11 @@ n libgpg-error
|
|||
n libgcrypt
|
||||
a file
|
||||
l popt
|
||||
d python-setuptools
|
||||
l icu4c
|
||||
ap sqlite
|
||||
d gyp
|
||||
l mozilla-nss
|
||||
ap rpm
|
||||
a cpio
|
||||
a rpm2tgz
|
||||
|
@ -1450,13 +1455,6 @@ a end4
|
|||
EOF
|
||||
}
|
||||
|
||||
generate_slackware_list0 () {
|
||||
#******************************************
|
||||
rm "$SFS"/scripts/list0
|
||||
cat "$SFS"/scripts/list1 > "$SFS"/scripts/list0
|
||||
sed -i -e "199,204d" "$SFS"/scripts/list0
|
||||
}
|
||||
|
||||
generate_slackware_list5 () {
|
||||
#******************************************
|
||||
rm "$SFS"/scripts/list5
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
####################### prep-sfs-tools ##################################
|
||||
#
|
||||
# Copyright 2018, 2022 J. E. Garrott Sr, Puyallup, WA, USA
|
||||
# Copyright 2018, 2022 "nobodino", Bordeaux, FRANCE
|
||||
# Copyright 2018 to 2022 J. E. Garrott Sr, Puyallup, WA, USA
|
||||
# Copyright 2018 to 2022 "nobodino", Bordeaux, FRANCE
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
####################### sfs-bootstrap ####################################
|
||||
#
|
||||
# Copyright 2018, 2022 J. E. Garrott Sr, Puyallup, WA, USA
|
||||
# Copyright 2018, 2022 "nobodino", Bordeaux, FRANCE
|
||||
# Copyright 2018 to 2022 J. E. Garrott Sr, Puyallup, WA, USA
|
||||
# Copyright 2018 to 2022 "nobodino", Bordeaux, FRANCE
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
########################## sfs-tools #####################################
|
||||
#
|
||||
# Copyright 2018,2019,2020,2021 J. E. Garrott Sr, Puyallup, WA, USA
|
||||
# Copyright 2018,2019,2020,2021 "nobodino", Bordeaux, FRANCE
|
||||
# Copyright 2018 to 2022 J. E. Garrott Sr, Puyallup, WA, USA
|
||||
# Copyright 2018 to 2022 "nobodino", Bordeaux, FRANCE
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
|
6
sfsbuild
6
sfsbuild
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
################################ sfsbuild #################################
|
||||
#
|
||||
# Copyright 2018,2019,2020,2021 J. E. Garrott Sr, Puyallup, WA, USA
|
||||
# Copyright 2018,2019,2020,2021 "nobodino", Bordeaux, FRANCE
|
||||
# Copyright 2018 to 2022 J. E. Garrott Sr, Puyallup, WA, USA
|
||||
# Copyright 2018 to 2022 "nobodino", Bordeaux, FRANCE
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -67,7 +67,7 @@ define_path_lib () {
|
|||
#****************************************
|
||||
case $ARCH in
|
||||
x86_64 )
|
||||
export LD_LIBRARY_PATH="/lib64:/usr/lib64" ;;
|
||||
export LD_LIBRARY_PATH="/lib64:/usr/lib64:/usr/lib:/lib" ;;
|
||||
* )
|
||||
echo ;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue