2023-04-28 14:06:30 -04:00
|
|
|
#
|
|
|
|
# busybox
|
|
|
|
#
|
|
|
|
|
|
|
|
# Package metadata
|
|
|
|
PACKAGE_NAME="busybox"
|
|
|
|
PACKAGE_VER="1.36.0"
|
|
|
|
PACKAGE_DESC="Busybox embedded UNIX utilities"
|
|
|
|
MAINTAINER="liamwaldron@everestlinux.org"
|
|
|
|
LICENSE="GPL v2"
|
|
|
|
ARCH="x86"
|
|
|
|
INCLUDED_FILES=("/bin/busybox" "/linuxrc")
|
|
|
|
|
|
|
|
# Integrity checking
|
|
|
|
SHA256SUMS="2d60a4df73d14da518c3e8a7d51830c35918b54572029624ea4b86e8298fb528"
|
|
|
|
|
|
|
|
# Dependency information
|
|
|
|
DEPENDS=("")
|
|
|
|
CONFLICTS=("")
|
|
|
|
|
|
|
|
# Source information
|
|
|
|
PACKAGE_SRC="https://busybox.net/downloads/busybox-1.36.0.tar.bz2"
|
|
|
|
SOURCES=("busybox-1.36.0.tar.bz2" "busybox-1.36.0")
|
|
|
|
|
|
|
|
# Installation
|
|
|
|
getsource() {
|
|
|
|
wget $PACKAGE_SRC
|
|
|
|
tar xf ${SOURCES[0]}
|
|
|
|
cd ${SOURCES[1]}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildpkg() {
|
|
|
|
curl https://git.everestlinux.org/EverestLinux/sys-pkg-configs/raw/branch/main/config.busybox-1.36.0 -o .config
|
2023-10-16 12:26:45 -04:00
|
|
|
make ARCH="x86_64" CROSS_COMPILE="x86_64-linux-musl-" # these MUST be set
|
2023-04-28 14:06:30 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
installpkg() {
|
|
|
|
make ARCH="x86_64" CROSS_COMPILE="x86_64-linux-musl-" \
|
|
|
|
CONFIG_PREFIX="${BLDR_OUT_DIR}/pkgs/busybox" install
|
|
|
|
cp -v examples/depmod.pl ${TOOLCHAIN_PATH}/bin
|
|
|
|
chmod -v 755 ${TOOLCHAIN_PATH}/bin/depmod.pl
|
2023-10-16 12:26:45 -04:00
|
|
|
touch ${BLDR_OUT_DIR}/pkgs/busybox/.ispkg
|
2023-04-28 14:06:30 -04:00
|
|
|
# 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/busybox
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
2023-10-16 12:26:45 -04:00
|
|
|
# end busybox
|
2023-04-28 14:06:30 -04:00
|
|
|
#
|