From 6bb1d1837ccd5b4565d282dedb4d2f3e8a895f26 Mon Sep 17 00:00:00 2001 From: Pentium44 Date: Sun, 21 Feb 2021 21:01:15 -0800 Subject: [PATCH] Some tweaks to build scripts, added a couple packages to the database. GCC 9.3.0 is working within freon --- build-extensions | 16 ++++++++++++---- build-freon | 19 +++++++++++-------- build-tgz | 17 ++++++++--------- deps/gcc.deps | 2 ++ deps/nmap.deps | 3 +++ deps/readline.deps | 1 + deps/socat.deps | 3 +++ pkgbuild/0verkill.build | 22 ++++++++++++++++++++++ pkgbuild/gcc.build | 11 ----------- pkgbuild/libgcc.build | 40 ++++++++++++++++++++++++++++++++++++++++ pkgbuild/netcat.build | 17 +++++++++++++++++ pkgbuild/nmap.build | 17 +++++++++++++++++ pkgbuild/readline.build | 23 +++++++++++++++++++++++ pkgbuild/socat.build | 17 +++++++++++++++++ pkginfo/0verkill.txt | 1 + pkginfo/glibc-dev.txt | 1 + pkginfo/libgcc.txt | 1 + pkginfo/netcat.txt | 1 + pkginfo/nmap.txt | 1 + pkginfo/readline.txt | 1 + pkginfo/socat.txt | 1 + pkginfo/tcc.txt | 1 + 22 files changed, 184 insertions(+), 32 deletions(-) create mode 100644 deps/nmap.deps create mode 100644 deps/readline.deps create mode 100644 deps/socat.deps create mode 100755 pkgbuild/0verkill.build create mode 100755 pkgbuild/libgcc.build create mode 100755 pkgbuild/netcat.build create mode 100755 pkgbuild/nmap.build create mode 100755 pkgbuild/readline.build create mode 100755 pkgbuild/socat.build create mode 100644 pkginfo/0verkill.txt create mode 100644 pkginfo/glibc-dev.txt create mode 100644 pkginfo/libgcc.txt create mode 100644 pkginfo/netcat.txt create mode 100644 pkginfo/nmap.txt create mode 100644 pkginfo/readline.txt create mode 100644 pkginfo/socat.txt create mode 100644 pkginfo/tcc.txt diff --git a/build-extensions b/build-extensions index 036a9a0..77a1a0f 100755 --- a/build-extensions +++ b/build-extensions @@ -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 diff --git a/build-freon b/build-freon index 3c28fd4..9a03775 100755 --- a/build-freon +++ b/build-freon @@ -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 diff --git a/build-tgz b/build-tgz index f8fbec0..5b80474 100755 --- a/build-tgz +++ b/build-tgz @@ -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 diff --git a/deps/gcc.deps b/deps/gcc.deps index 8737ee3..ee8b992 100644 --- a/deps/gcc.deps +++ b/deps/gcc.deps @@ -3,3 +3,5 @@ mpfr mpc gmp isl +libgcc +glibc-dev diff --git a/deps/nmap.deps b/deps/nmap.deps new file mode 100644 index 0000000..d05a33c --- /dev/null +++ b/deps/nmap.deps @@ -0,0 +1,3 @@ +pcre +openssl +libgcc diff --git a/deps/readline.deps b/deps/readline.deps new file mode 100644 index 0000000..6a470ff --- /dev/null +++ b/deps/readline.deps @@ -0,0 +1 @@ +ncurses diff --git a/deps/socat.deps b/deps/socat.deps new file mode 100644 index 0000000..1bf7856 --- /dev/null +++ b/deps/socat.deps @@ -0,0 +1,3 @@ +ncurses +readline +openssl diff --git a/pkgbuild/0verkill.build b/pkgbuild/0verkill.build new file mode 100755 index 0000000..355d395 --- /dev/null +++ b/pkgbuild/0verkill.build @@ -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 .. diff --git a/pkgbuild/gcc.build b/pkgbuild/gcc.build index 6ef1aea..3a1e0d0 100755 --- a/pkgbuild/gcc.build +++ b/pkgbuild/gcc.build @@ -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 diff --git a/pkgbuild/libgcc.build b/pkgbuild/libgcc.build new file mode 100755 index 0000000..6ef1aea --- /dev/null +++ b/pkgbuild/libgcc.build @@ -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 diff --git a/pkgbuild/netcat.build b/pkgbuild/netcat.build new file mode 100755 index 0000000..208609c --- /dev/null +++ b/pkgbuild/netcat.build @@ -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 .. diff --git a/pkgbuild/nmap.build b/pkgbuild/nmap.build new file mode 100755 index 0000000..e35142b --- /dev/null +++ b/pkgbuild/nmap.build @@ -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 .. diff --git a/pkgbuild/readline.build b/pkgbuild/readline.build new file mode 100755 index 0000000..47f0e29 --- /dev/null +++ b/pkgbuild/readline.build @@ -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 .. diff --git a/pkgbuild/socat.build b/pkgbuild/socat.build new file mode 100755 index 0000000..623c223 --- /dev/null +++ b/pkgbuild/socat.build @@ -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 .. diff --git a/pkginfo/0verkill.txt b/pkginfo/0verkill.txt new file mode 100644 index 0000000..21c3081 --- /dev/null +++ b/pkginfo/0verkill.txt @@ -0,0 +1 @@ +is a CLI multiplayer console game that's too good to leave out! diff --git a/pkginfo/glibc-dev.txt b/pkginfo/glibc-dev.txt new file mode 100644 index 0000000..d3c600e --- /dev/null +++ b/pkginfo/glibc-dev.txt @@ -0,0 +1 @@ +GNU C library headers and static libraries for development diff --git a/pkginfo/libgcc.txt b/pkginfo/libgcc.txt new file mode 100644 index 0000000..d815804 --- /dev/null +++ b/pkginfo/libgcc.txt @@ -0,0 +1 @@ +GCC libraries diff --git a/pkginfo/netcat.txt b/pkginfo/netcat.txt new file mode 100644 index 0000000..3afd69a --- /dev/null +++ b/pkginfo/netcat.txt @@ -0,0 +1 @@ +is a CLI tool used as an universal networking client / server. diff --git a/pkginfo/nmap.txt b/pkginfo/nmap.txt new file mode 100644 index 0000000..bfc38d7 --- /dev/null +++ b/pkginfo/nmap.txt @@ -0,0 +1 @@ +is a powerful CLI tool used to monitor, scan, and explore networks. diff --git a/pkginfo/readline.txt b/pkginfo/readline.txt new file mode 100644 index 0000000..41c5f7f --- /dev/null +++ b/pkginfo/readline.txt @@ -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. diff --git a/pkginfo/socat.txt b/pkginfo/socat.txt new file mode 100644 index 0000000..b1115cc --- /dev/null +++ b/pkginfo/socat.txt @@ -0,0 +1 @@ +is a CLI tool used as an universal networking client / server, which has much more functionality over netcat. diff --git a/pkginfo/tcc.txt b/pkginfo/tcc.txt new file mode 100644 index 0000000..5cdfb09 --- /dev/null +++ b/pkginfo/tcc.txt @@ -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.