working on fixing system packages ahead of 1.0 release

This commit is contained in:
Liam Waldron 2023-10-16 12:26:45 -04:00
parent 9fe249861a
commit 27c55f28a0
4 changed files with 209 additions and 2 deletions

66
system/bash Normal file
View File

@ -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
#

View File

@ -31,7 +31,7 @@ getsource() {
buildpkg() { buildpkg() {
curl https://git.everestlinux.org/EverestLinux/sys-pkg-configs/raw/branch/main/config.busybox-1.36.0 -o .config 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() { installpkg() {
@ -39,6 +39,7 @@ installpkg() {
CONFIG_PREFIX="${BLDR_OUT_DIR}/pkgs/busybox" install CONFIG_PREFIX="${BLDR_OUT_DIR}/pkgs/busybox" install
cp -v examples/depmod.pl ${TOOLCHAIN_PATH}/bin cp -v examples/depmod.pl ${TOOLCHAIN_PATH}/bin
chmod -v 755 ${TOOLCHAIN_PATH}/bin/depmod.pl chmod -v 755 ${TOOLCHAIN_PATH}/bin/depmod.pl
touch ${BLDR_OUT_DIR}/pkgs/busybox/.ispkg
# Never install files to /bin, they will get # Never install files to /bin, they will get
# overwritten when the user pulls a new update # overwritten when the user pulls a new update
} }
@ -68,5 +69,5 @@ updatepkg_system() {
} }
# #
# end nano # end busybox
# #

70
system/musl.old Normal file
View File

@ -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
#

70
system/toolchain Normal file
View File

@ -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
#