From 27c55f28a040820331cf96a208d21c20020873bf Mon Sep 17 00:00:00 2001 From: Liam Waldron Date: Mon, 16 Oct 2023 12:26:45 -0400 Subject: [PATCH] working on fixing system packages ahead of 1.0 release --- system/bash | 66 +++++++++++++++++++++++++++++++++++++++++++++ system/busybox | 5 ++-- system/musl.old | 70 ++++++++++++++++++++++++++++++++++++++++++++++++ system/toolchain | 70 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 209 insertions(+), 2 deletions(-) create mode 100644 system/bash create mode 100644 system/musl.old create mode 100644 system/toolchain diff --git a/system/bash b/system/bash new file mode 100644 index 0000000..a53dc42 --- /dev/null +++ b/system/bash @@ -0,0 +1,66 @@ +# +# bash +# + +# Package metadata +PACKAGE_NAME="bash" +PACKAGE_VER="5.2.015" +PACKAGE_DESC="GNU Bourne Again Shell" +MAINTAINER="liamwaldron@everestlinux.org" +LICENSE="GPL v3" +ARCH="x86" +INCLUDED_FILES=("/bin/bash") + +# Integrity checking +SHA256SUMS="8b1079684f9aaf84de293771c78b83ff4b69588eeb34138ff331f26926dd1ae6" + +# Dependency information +DEPENDS=("") +CONFLICTS=("") + +# Source information +PACKAGE_SRC="https://github.com/robxu9/bash-static/releases/download/5.2.015-1.2.3-2/bash-linux-x86_64" +SOURCES="bash-linux-x86_64" + +# Installation +getsource() { + wget $PACKAGE_SRC +} + +buildpkg() { + chmod +x ${SOURCES} +} + +installpkg() { + mkdir ${BLDR_OUT_DIR}/pkgs/bash + mv ${SOURCES} ${BLDR_OUT_DIR}/pkgs/bash/bash + touch ${BLDR_OUT_DIR}/pkgs/bash/.ispkg +} + +installpkg_system() { + printf "Not supported for this package.\n" + exit 1 +} + +removepkg() { + rm -rf ${BLDR_OUT_DIR}/pkgs/bash +} + +removepkg_system() { + printf "Not supported for this package.\n" + exit 1 +} + +updatepkg() { + buildpkg "$@" + installpkg "$@" +} + +updatepkg_system() { + printf "Not supported for this package.\n" + exit 1 +} + +# +# end bash +# diff --git a/system/busybox b/system/busybox index 4cf3fab..a8ba4b5 100644 --- a/system/busybox +++ b/system/busybox @@ -31,7 +31,7 @@ getsource() { buildpkg() { curl https://git.everestlinux.org/EverestLinux/sys-pkg-configs/raw/branch/main/config.busybox-1.36.0 -o .config - make ${MAKEFLAGS} ${CFLAGS} ${CXXFLAGS} ARCH="x86_64" CROSS_COMPILE="x86_64-linux-musl-" # these MUST be set + make ARCH="x86_64" CROSS_COMPILE="x86_64-linux-musl-" # these MUST be set } installpkg() { @@ -39,6 +39,7 @@ installpkg() { CONFIG_PREFIX="${BLDR_OUT_DIR}/pkgs/busybox" install cp -v examples/depmod.pl ${TOOLCHAIN_PATH}/bin chmod -v 755 ${TOOLCHAIN_PATH}/bin/depmod.pl + touch ${BLDR_OUT_DIR}/pkgs/busybox/.ispkg # Never install files to /bin, they will get # overwritten when the user pulls a new update } @@ -68,5 +69,5 @@ updatepkg_system() { } # -# end nano +# end busybox # diff --git a/system/musl.old b/system/musl.old new file mode 100644 index 0000000..1e210bc --- /dev/null +++ b/system/musl.old @@ -0,0 +1,70 @@ +# +# musl +# + +# Package metadata +PACKAGE_NAME="musl" +PACKAGE_VER="1.2.3" +PACKAGE_DESC="musl C library" +MAINTAINER="liamwaldron@everestlinux.org" +LICENSE="MIT" +ARCH="x86" +INCLUDED_FILES=("/include/*" "/lib/crt1.o" "/lib/crt1.o" "/lib/crtn.o" "/lib/libc.a" "/lib/libcrypt.a" "/lib/libc.so" "/lib/libdl.a" "/lib/libm.a" "/lib/libpthread.a" "/lib/libresolv.a" "/lib/librt.a" "/lib/libutil.a" "/lib/libxnet.a" "/lib/rcrt1.o" "/lib/Scrt1.o") + +# Integrity checking +SHA256SUMS="" + +# Dependency information +DEPENDS=("") +CONFLICTS=("") + +# Source information +PACKAGE_SRC="https://musl.libc.org/releases/musl-1.2.3.tar.gz" +SOURCES=("musl-1.2.3.tar.gz" "musl-1.2.3") + +# Installation +getsource() { + wget $PACKAGE_SRC + tar xf ${SOURCES[0]} + cd ${SOURCES[1]} +} + +buildpkg() { + ./configure \ + --prefix=${BLDR_OUT_DIR}/pkgs/musl \ + --target="x86_64-linux-musl" \ + CFLAGS="${CFLAGS}" + make ${MAKEFLAGS} +} + +installpkg() { + make install ${MAKEFLAGS} +} + +installpkg_system() { + printf "Not supported for this package.\n" + exit 1 +} + +removepkg() { + rm -rf ${BLDR_OUT_DIR}/pkgs/musl +} + +removepkg_system() { + printf "Not supported for this package.\n" + exit 1 +} + +updatepkg() { + buildpkg "$@" + installpkg "$@" +} + +updatepkg_system() { + printf "Not supported for this package.\n" + exit 1 +} + +# +# end nano +# diff --git a/system/toolchain b/system/toolchain new file mode 100644 index 0000000..a64a6fd --- /dev/null +++ b/system/toolchain @@ -0,0 +1,70 @@ +# +# toolchain +# + +# Package metadata +PACKAGE_NAME="toolchain" +PACKAGE_VER="1.0.0" +PACKAGE_DESC="Everest Linux system toolchain" +MAINTAINER="liamwaldron@everestlinux.org" +LICENSE="N/A" +ARCH="x86" +INCLUDED_FILES=("/bin/*" "/lib/*" "/include/*" "/libexec/*" "/share/*") + +# Integrity checking +SHA256SUMS="a996907fc87e8c0d4603acd788c6009d1adeb3c99be99d07fc3df3256b52adfe" + +# Dependency information +DEPENDS=("") +CONFLICTS=("") + +# Source information +PACKAGE_SRC="https://musl.cc/x86_64-linux-musl-native.tgz" +SOURCES=("x86_64-linux-musl-native.tgz" "x86_64-linux-musl-native") + +# Installation +getsource() { + wget $PACKAGE_SRC + tar xf ${SOURCES[0]} +} + +buildpkg() { + printf "Installing toolchain...\n" + sleep 1 +} + +installpkg() { + mv -v ${SOURCES[1]} toolchain + mv -v toolchain ${BLDR_OUT_DIR}/pkgs + touch ${BLDR_OUT_DIR}/pkgs/toolchain/.ispkg + # Never install files to /bin, they will get + # overwritten when the user pulls a new update +} + +installpkg_system() { + printf "Not supported for this package.\n" + exit 1 +} + +removepkg() { + rm -rf ${BLDR_OUT_DIR}/pkgs/toolchain +} + +removepkg_system() { + printf "Not supported for this package.\n" + exit 1 +} + +updatepkg() { + buildpkg "$@" + installpkg "$@" +} + +updatepkg_system() { + printf "Not supported for this package.\n" + exit 1 +} + +# +# end nano +#