Some tweaks to build scripts, added a couple packages to the database. GCC 9.3.0 is working within freon

master
Pentium44 2021-02-21 21:01:15 -08:00
parent 9d76fdc937
commit 6bb1d1837c
22 changed files with 184 additions and 32 deletions

View File

@ -6,6 +6,8 @@
corecount="25"
#### Variables ###
mainmirror="http://mirror.freonlinux.com/source/packages"
# mirrors
mpfrmirror="https://ftp.gnu.org/gnu/mpfr"
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"
harfbuzz="harfbuzz_2.3.1.orig.tar.bz2"
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
tmpdir="`pwd`/pkgsrc"
@ -168,6 +175,11 @@ notifysrcdir=${notify//.tar.xz}
fribidisrcdir=${fribidi//.tar.bz2}
harfbuzzsrcdir=${harfbuzz//.tar.bz2}
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
echo "Warning: package source directory not found, creating."
@ -175,10 +187,6 @@ if [ ! -d "$tmpdir" ]; then
fi
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..."
. $pkgbuilddir/$1.build;;
esac

View File

@ -7,6 +7,9 @@ workdir=`pwd`
freondir="/freon"
corecount=25
# Common mirror (now self hosted)
mainmirror="https://mirror.freonlinux.com/source"
# Download mirrors
syslinuxmirror="https://www.kernel.org/pub/linux/utils/boot/syslinux"
kernelmirror="https://cdn.kernel.org/pub/linux/kernel/v5.x"
@ -117,37 +120,37 @@ get_files()
echo -e "[$YELLOW Working $NORMAL] Downloading needed files..."
if [ ! -f $kernel ]; then
echo -n "$kernel..."
wget $kernelmirror/$kernel > /dev/null 2>&1
wget $mainmirror/$kernel > /dev/null 2>&1
status
fi
if [ ! -f $busybox ]; then
echo -n "$busybox..."
wget $busyboxmirror/$busybox > /dev/null 2>&1
wget $mainmirror/$busybox > /dev/null 2>&1
status
fi
if [ ! -f $syslinux ]; then
echo -n "$syslinux..."
wget $syslinuxmirror/$syslinux > /dev/null 2>&1
wget $mainmirror/$syslinux > /dev/null 2>&1
status
fi
if [ ! -f $xz ]; then
echo -n "$xz..."
wget $xzmirror/$xz > /dev/null 2>&1
wget $mainmirror/$xz > /dev/null 2>&1
status
fi
if [ ! -f $libc ]; then
echo -n "$libc..."
wget $libcmirror/$libc > /dev/null 2>&1
wget $mainmirror/$libc > /dev/null 2>&1
status
fi
if [ ! -f $grub ]; then
echo -n "$grub..."
wget $grubmirror/$grub > /dev/null 2>&1
wget $mainmirror/$grub > /dev/null 2>&1
status
fi
@ -313,7 +316,7 @@ do_libc()
--build=$MACHTYPE \
--host=x86_64-linux \
--target=x86_64-linux
#--with-headers=../$kerneldir/_hdr/include
--with-headers=_hdr/include
status
else
`pwd`/../$libcdir/configure \
@ -321,7 +324,7 @@ do_libc()
--build=$MACHTYPE \
--host=x86_64-linux \
--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
fi

View File

@ -40,16 +40,15 @@ case $1 in
cp deps/$1.exec $tmpdir/execute.sh
fi
cp -av $freondir $tmpdir/.
cp -a $freondir $tmpdir/.
cd $tmpdir
tar -czf $1.tgz *
cp $1.tgz $pkgdir/$1.tgz
rm -rf $tmpdir
tar -czf $1.tgz *
cp $1.tgz $pkgdir/$1.tgz
cd ..
rm -rf $tmpdir
echo "Done!"
;;
esac

2
deps/gcc.deps vendored
View File

@ -3,3 +3,5 @@ mpfr
mpc
gmp
isl
libgcc
glibc-dev

3
deps/nmap.deps vendored Normal file
View File

@ -0,0 +1,3 @@
pcre
openssl
libgcc

1
deps/readline.deps vendored Normal file
View File

@ -0,0 +1 @@
ncurses

3
deps/socat.deps vendored Normal file
View File

@ -0,0 +1,3 @@
ncurses
readline
openssl

22
pkgbuild/0verkill.build Executable file
View 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 ..

View File

@ -26,15 +26,4 @@ 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

40
pkgbuild/libgcc.build Executable file
View 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
View 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
View 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
View 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
View 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
View File

@ -0,0 +1 @@
is a CLI multiplayer console game that's too good to leave out!

1
pkginfo/glibc-dev.txt Normal file
View File

@ -0,0 +1 @@
GNU C library headers and static libraries for development

1
pkginfo/libgcc.txt Normal file
View File

@ -0,0 +1 @@
GCC libraries

1
pkginfo/netcat.txt Normal file
View File

@ -0,0 +1 @@
is a CLI tool used as an universal networking client / server.

1
pkginfo/nmap.txt Normal file
View File

@ -0,0 +1 @@
is a powerful CLI tool used to monitor, scan, and explore networks.

1
pkginfo/readline.txt Normal file
View 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
View 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
View 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.