Some tweaks to build scripts, added a couple packages to the database. GCC 9.3.0 is working within freon
This commit is contained in:
parent
9d76fdc937
commit
6bb1d1837c
@ -6,6 +6,8 @@
|
|||||||
corecount="25"
|
corecount="25"
|
||||||
|
|
||||||
#### Variables ###
|
#### Variables ###
|
||||||
|
mainmirror="http://mirror.freonlinux.com/source/packages"
|
||||||
|
|
||||||
# mirrors
|
# mirrors
|
||||||
mpfrmirror="https://ftp.gnu.org/gnu/mpfr"
|
mpfrmirror="https://ftp.gnu.org/gnu/mpfr"
|
||||||
mpcmirror="https://ftp.gnu.org/gnu/mpc"
|
mpcmirror="https://ftp.gnu.org/gnu/mpc"
|
||||||
@ -108,6 +110,11 @@ notify="libnotify-0.7.6.tar.xz"
|
|||||||
fribidi="fribidi-1.0.1.tar.bz2"
|
fribidi="fribidi-1.0.1.tar.bz2"
|
||||||
harfbuzz="harfbuzz_2.3.1.orig.tar.bz2"
|
harfbuzz="harfbuzz_2.3.1.orig.tar.bz2"
|
||||||
sqlite="sqlite-autoconf-3340000.tar.gz"
|
sqlite="sqlite-autoconf-3340000.tar.gz"
|
||||||
|
netcat="netcat-0.7.1.tar.bz2"
|
||||||
|
socat="socat-1.7.4.1.tar.gz"
|
||||||
|
nmap="nmap-7.91.tar.bz2"
|
||||||
|
overkill="0verkill-0.16.tar.gz"
|
||||||
|
readline="readline-8.1.tar.gz"
|
||||||
|
|
||||||
# work directories
|
# work directories
|
||||||
tmpdir="`pwd`/pkgsrc"
|
tmpdir="`pwd`/pkgsrc"
|
||||||
@ -168,6 +175,11 @@ notifysrcdir=${notify//.tar.xz}
|
|||||||
fribidisrcdir=${fribidi//.tar.bz2}
|
fribidisrcdir=${fribidi//.tar.bz2}
|
||||||
harfbuzzsrcdir=${harfbuzz//.tar.bz2}
|
harfbuzzsrcdir=${harfbuzz//.tar.bz2}
|
||||||
sqlitesrcdir=${sqlite//.tar.gz}
|
sqlitesrcdir=${sqlite//.tar.gz}
|
||||||
|
netcatsrcdir=${netcat//.tar.bz2}
|
||||||
|
socatsrcdir=${socat//.tar.gz}
|
||||||
|
nmapsrcdir=${nmap//.tar.bz2}
|
||||||
|
overkillsrcdir=${overkill//.tar.gz}
|
||||||
|
readlinesrcdir=${readline//.tar.gz}
|
||||||
|
|
||||||
if [ ! -d "$tmpdir" ]; then
|
if [ ! -d "$tmpdir" ]; then
|
||||||
echo "Warning: package source directory not found, creating."
|
echo "Warning: package source directory not found, creating."
|
||||||
@ -175,10 +187,6 @@ if [ ! -d "$tmpdir" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
all ) echo "Building all!"
|
|
||||||
ncurses; nano; chttpd; gmp; mpfr; binutils; mpc; gcc; bash; isl; termcap; ircii; openssl; dvtm;;
|
|
||||||
packages ) echo "Building useful essentials..."
|
|
||||||
ncurses; nano; bash; termcap;;
|
|
||||||
* ) echo "Building $1..."
|
* ) echo "Building $1..."
|
||||||
. $pkgbuilddir/$1.build;;
|
. $pkgbuilddir/$1.build;;
|
||||||
esac
|
esac
|
||||||
|
19
build-freon
19
build-freon
@ -7,6 +7,9 @@ workdir=`pwd`
|
|||||||
freondir="/freon"
|
freondir="/freon"
|
||||||
corecount=25
|
corecount=25
|
||||||
|
|
||||||
|
# Common mirror (now self hosted)
|
||||||
|
mainmirror="https://mirror.freonlinux.com/source"
|
||||||
|
|
||||||
# Download mirrors
|
# Download mirrors
|
||||||
syslinuxmirror="https://www.kernel.org/pub/linux/utils/boot/syslinux"
|
syslinuxmirror="https://www.kernel.org/pub/linux/utils/boot/syslinux"
|
||||||
kernelmirror="https://cdn.kernel.org/pub/linux/kernel/v5.x"
|
kernelmirror="https://cdn.kernel.org/pub/linux/kernel/v5.x"
|
||||||
@ -117,37 +120,37 @@ get_files()
|
|||||||
echo -e "[$YELLOW Working $NORMAL] Downloading needed files..."
|
echo -e "[$YELLOW Working $NORMAL] Downloading needed files..."
|
||||||
if [ ! -f $kernel ]; then
|
if [ ! -f $kernel ]; then
|
||||||
echo -n "$kernel..."
|
echo -n "$kernel..."
|
||||||
wget $kernelmirror/$kernel > /dev/null 2>&1
|
wget $mainmirror/$kernel > /dev/null 2>&1
|
||||||
status
|
status
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f $busybox ]; then
|
if [ ! -f $busybox ]; then
|
||||||
echo -n "$busybox..."
|
echo -n "$busybox..."
|
||||||
wget $busyboxmirror/$busybox > /dev/null 2>&1
|
wget $mainmirror/$busybox > /dev/null 2>&1
|
||||||
status
|
status
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f $syslinux ]; then
|
if [ ! -f $syslinux ]; then
|
||||||
echo -n "$syslinux..."
|
echo -n "$syslinux..."
|
||||||
wget $syslinuxmirror/$syslinux > /dev/null 2>&1
|
wget $mainmirror/$syslinux > /dev/null 2>&1
|
||||||
status
|
status
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f $xz ]; then
|
if [ ! -f $xz ]; then
|
||||||
echo -n "$xz..."
|
echo -n "$xz..."
|
||||||
wget $xzmirror/$xz > /dev/null 2>&1
|
wget $mainmirror/$xz > /dev/null 2>&1
|
||||||
status
|
status
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f $libc ]; then
|
if [ ! -f $libc ]; then
|
||||||
echo -n "$libc..."
|
echo -n "$libc..."
|
||||||
wget $libcmirror/$libc > /dev/null 2>&1
|
wget $mainmirror/$libc > /dev/null 2>&1
|
||||||
status
|
status
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f $grub ]; then
|
if [ ! -f $grub ]; then
|
||||||
echo -n "$grub..."
|
echo -n "$grub..."
|
||||||
wget $grubmirror/$grub > /dev/null 2>&1
|
wget $mainmirror/$grub > /dev/null 2>&1
|
||||||
status
|
status
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -313,7 +316,7 @@ do_libc()
|
|||||||
--build=$MACHTYPE \
|
--build=$MACHTYPE \
|
||||||
--host=x86_64-linux \
|
--host=x86_64-linux \
|
||||||
--target=x86_64-linux
|
--target=x86_64-linux
|
||||||
#--with-headers=../$kerneldir/_hdr/include
|
--with-headers=_hdr/include
|
||||||
status
|
status
|
||||||
else
|
else
|
||||||
`pwd`/../$libcdir/configure \
|
`pwd`/../$libcdir/configure \
|
||||||
@ -321,7 +324,7 @@ do_libc()
|
|||||||
--build=$MACHTYPE \
|
--build=$MACHTYPE \
|
||||||
--host=x86_64-linux \
|
--host=x86_64-linux \
|
||||||
--target=x86_64-linux > /dev/null 2>&1
|
--target=x86_64-linux > /dev/null 2>&1
|
||||||
#--with-headers=../$kerneldir/_hdr/include > /dev/null 2>&1
|
--with-headers=_hdr/include > /dev/null 2>&1
|
||||||
status
|
status
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -40,13 +40,12 @@ case $1 in
|
|||||||
cp deps/$1.exec $tmpdir/execute.sh
|
cp deps/$1.exec $tmpdir/execute.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp -av $freondir $tmpdir/.
|
cp -a $freondir $tmpdir/.
|
||||||
|
|
||||||
cd $tmpdir
|
cd $tmpdir
|
||||||
|
|
||||||
tar -czf $1.tgz *
|
tar -czf $1.tgz *
|
||||||
|
|
||||||
cp $1.tgz $pkgdir/$1.tgz
|
cp $1.tgz $pkgdir/$1.tgz
|
||||||
|
cd ..
|
||||||
|
|
||||||
rm -rf $tmpdir
|
rm -rf $tmpdir
|
||||||
|
|
||||||
|
2
deps/gcc.deps
vendored
2
deps/gcc.deps
vendored
@ -3,3 +3,5 @@ mpfr
|
|||||||
mpc
|
mpc
|
||||||
gmp
|
gmp
|
||||||
isl
|
isl
|
||||||
|
libgcc
|
||||||
|
glibc-dev
|
||||||
|
3
deps/nmap.deps
vendored
Normal file
3
deps/nmap.deps
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
pcre
|
||||||
|
openssl
|
||||||
|
libgcc
|
1
deps/readline.deps
vendored
Normal file
1
deps/readline.deps
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
ncurses
|
3
deps/socat.deps
vendored
Normal file
3
deps/socat.deps
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
ncurses
|
||||||
|
readline
|
||||||
|
openssl
|
22
pkgbuild/0verkill.build
Executable file
22
pkgbuild/0verkill.build
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
cd $tmpdir
|
||||||
|
|
||||||
|
# Downloading 0verkill source
|
||||||
|
if [ ! -f "$overkill" ]; then
|
||||||
|
echo "Downloading 0verkill sources..."
|
||||||
|
wget $mainmirror/$overkill
|
||||||
|
tar -xf $overkill
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd $overkillsrcdir
|
||||||
|
|
||||||
|
./configure
|
||||||
|
|
||||||
|
make -j$corecount
|
||||||
|
|
||||||
|
mkdir -p $freondir/bin
|
||||||
|
mkdir -p $freondir/sbin
|
||||||
|
|
||||||
|
cp 0verkill $freondir/bin/.
|
||||||
|
cp server $freondir/sbin/0verkill-server
|
||||||
|
|
||||||
|
cd ..
|
@ -26,15 +26,4 @@ make install
|
|||||||
|
|
||||||
cd $softwaredir
|
cd $softwaredir
|
||||||
|
|
||||||
if [ ! -d "freon-ext" ]; then
|
|
||||||
mkdir freon-ext
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd freon-ext
|
|
||||||
|
|
||||||
cp -a $freondir/. .
|
|
||||||
|
|
||||||
rm lib/*.a
|
|
||||||
rm lib64/*.a
|
|
||||||
|
|
||||||
cd $tmpdir
|
cd $tmpdir
|
||||||
|
40
pkgbuild/libgcc.build
Executable file
40
pkgbuild/libgcc.build
Executable file
@ -0,0 +1,40 @@
|
|||||||
|
cd $tmpdir
|
||||||
|
|
||||||
|
# Downloading GCC source
|
||||||
|
if [ ! -f "$gcc" ]; then
|
||||||
|
echo "Downloading GCC sources..."
|
||||||
|
wget $gccmirror/$gcc
|
||||||
|
tar -xf $gcc
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd $gccsrcdir
|
||||||
|
|
||||||
|
mkdir -v build
|
||||||
|
cd build
|
||||||
|
|
||||||
|
SED=sed
|
||||||
|
../configure --prefix=$freondir \
|
||||||
|
--enable-languages=c,c++ \
|
||||||
|
--disable-multilib \
|
||||||
|
--disable-bootstrap \
|
||||||
|
--with-system-zlib
|
||||||
|
|
||||||
|
# Compile
|
||||||
|
make -j$corecount
|
||||||
|
|
||||||
|
make install
|
||||||
|
|
||||||
|
cd $softwaredir
|
||||||
|
|
||||||
|
if [ ! -d "freon-ext" ]; then
|
||||||
|
mkdir freon-ext
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd freon-ext
|
||||||
|
|
||||||
|
cp -a $freondir/. .
|
||||||
|
|
||||||
|
rm lib/*.a
|
||||||
|
rm lib64/*.a
|
||||||
|
|
||||||
|
cd $tmpdir
|
17
pkgbuild/netcat.build
Executable file
17
pkgbuild/netcat.build
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
cd $tmpdir
|
||||||
|
|
||||||
|
# Downloading nc source
|
||||||
|
if [ ! -f "$netcat" ]; then
|
||||||
|
echo "Downloading netcat sources..."
|
||||||
|
wget $mainmirror/$netcat
|
||||||
|
tar -xf $netcat
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd $netcatsrcdir
|
||||||
|
|
||||||
|
./configure --prefix=$freondir
|
||||||
|
|
||||||
|
make -j$corecount
|
||||||
|
make install
|
||||||
|
|
||||||
|
cd ..
|
17
pkgbuild/nmap.build
Executable file
17
pkgbuild/nmap.build
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
cd $tmpdir
|
||||||
|
|
||||||
|
# Downloading nmap source
|
||||||
|
if [ ! -f "$nmap" ]; then
|
||||||
|
echo "Downloading nmap sources..."
|
||||||
|
wget $mainmirror/$nmap
|
||||||
|
tar -xf $nmap
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd $nmapsrcdir
|
||||||
|
|
||||||
|
./configure --prefix=$freondir
|
||||||
|
|
||||||
|
make -j$corecount
|
||||||
|
make install
|
||||||
|
|
||||||
|
cd ..
|
23
pkgbuild/readline.build
Executable file
23
pkgbuild/readline.build
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
cd $tmpdir
|
||||||
|
|
||||||
|
# Downloading readline source
|
||||||
|
if [ ! -f "$readline" ]; then
|
||||||
|
echo "Downloading readline sources..."
|
||||||
|
wget $mainmirror/$readline
|
||||||
|
tar -xf $readline
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd $readlinesrcdir
|
||||||
|
|
||||||
|
sed -i '/MV.*old/d' Makefile.in
|
||||||
|
sed -i '/{OLDSUFF}/c:' support/shlib-install
|
||||||
|
|
||||||
|
./configure --prefix=$freondir --disable-static --docdir=$freondir/share/doc/readline-8.1
|
||||||
|
|
||||||
|
make SHLIB_LIBS="-L/tools/lib -lncursesw" -j$corecount
|
||||||
|
|
||||||
|
make SHLIB_LIBS="-L/tools/lib -lncursesw" install
|
||||||
|
|
||||||
|
chmod -v u+w /freon/lib/lib{readline,history}.so.*
|
||||||
|
|
||||||
|
cd ..
|
17
pkgbuild/socat.build
Executable file
17
pkgbuild/socat.build
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
cd $tmpdir
|
||||||
|
|
||||||
|
# Downloading socat source
|
||||||
|
if [ ! -f "$socat" ]; then
|
||||||
|
echo "Downloading socat sources..."
|
||||||
|
wget $mainmirror/$socat
|
||||||
|
tar -xf $socat
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd $socatsrcdir
|
||||||
|
|
||||||
|
./configure --prefix=$freondir
|
||||||
|
|
||||||
|
make -j$corecount
|
||||||
|
make install
|
||||||
|
|
||||||
|
cd ..
|
1
pkginfo/0verkill.txt
Normal file
1
pkginfo/0verkill.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
is a CLI multiplayer console game that's too good to leave out!
|
1
pkginfo/glibc-dev.txt
Normal file
1
pkginfo/glibc-dev.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
GNU C library headers and static libraries for development
|
1
pkginfo/libgcc.txt
Normal file
1
pkginfo/libgcc.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
GCC libraries
|
1
pkginfo/netcat.txt
Normal file
1
pkginfo/netcat.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
is a CLI tool used as an universal networking client / server.
|
1
pkginfo/nmap.txt
Normal file
1
pkginfo/nmap.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
is a powerful CLI tool used to monitor, scan, and explore networks.
|
1
pkginfo/readline.txt
Normal file
1
pkginfo/readline.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
is a GNU library that provides a set of functions for use by applications that allow users to edit command lines as they are typed.
|
1
pkginfo/socat.txt
Normal file
1
pkginfo/socat.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
is a CLI tool used as an universal networking client / server, which has much more functionality over netcat.
|
1
pkginfo/tcc.txt
Normal file
1
pkginfo/tcc.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
, also known as the Tiny C Compiler, is an extremely simple C compiler which has a similar argument platform as GCC without the bloat.
|
Loading…
x
Reference in New Issue
Block a user