Started shifting to a GNU userspace

This commit is contained in:
Alexander Hill
2026-01-04 23:20:23 -05:00
parent 389fdcc5ec
commit c496159c26
16 changed files with 190 additions and 35 deletions

View File

@@ -0,0 +1,21 @@
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
SRC_HASH="19bcb6ca867183c57d77155eae946c5eced88183143b45ca51ad7d26c628ca75"
SRC_NAME="coreutils"
SRC_URL="https://ftp.gnu.org/gnu/coreutils/coreutils-9.9.tar.xz"
SRC_VERSION="9.9"
build() {
tar xf ../$SRC_FILENAME
cd coreutils-*/
./configure $TT_AUTOCONF_COMMON --disable-year2038
make -j $TT_PROCS
}
clean() {
rm -rf coreutils-*/
}
package() {
cd coreutils-*/
make -j $TT_PROCS install DESTDIR=$TT_INSTALLDIR
}

23
sources/dash/dash.spec Normal file
View File

@@ -0,0 +1,23 @@
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
SRC_FILENAME="dash-0.5.12-12.tar.gz"
SRC_HASH="845fd61702ae5e53e09664faa450da82805958924b109b8c5b4777bd8551af00"
SRC_NAME="dash"
SRC_URL="https://salsa.debian.org/debian/dash/-/archive/debian/0.5.12-12/dash-debian-0.5.12-12.tar.gz"
SRC_VERSION="0.5.12-12"
build() {
tar xf ../$SRC_FILENAME
cd dash-*/
./configure $TT_AUTOCONF_COMMON
make -j $TT_PROCS
}
clean() {
rm -rf dash-*/
}
package() {
cd dash-*/
make -j $TT_PROCS install DESTDIR=$TT_INSTALLDIR
ln -s dash $TT_INSTALLDIR/bin/sh
}

View File

@@ -0,0 +1,21 @@
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
SRC_HASH="1387e0b67ff247d2abde998f90dfbf70c1491391a59ddfecb8ae698789f0a4f5"
SRC_NAME="findutils"
SRC_URL="https://ftp.gnu.org/gnu/findutils/findutils-4.10.0.tar.xz"
SRC_VERSION="4.10.0"
build() {
tar xf ../$SRC_FILENAME
cd findutils-*/
./configure $TT_AUTOCONF_COMMON
make -j $TT_PROCS
}
clean() {
rm -rf findutils-*/
}
package() {
cd findutils-*/
make -j $TT_PROCS install DESTDIR=$TT_INSTALLDIR
}

17
sources/grep/grep.spec Normal file
View File

@@ -0,0 +1,17 @@
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
SRC_HASH="2649b27c0e90e632eadcd757be06c6e9a4f48d941de51e7c0f83ff76408a07b9"
SRC_NAME="grep"
SRC_URL="https://ftp.gnu.org/gnu/grep/grep-3.12.tar.xz"
SRC_VERSION="3.12"
build() {
tar xf ../$SRC_FILENAME
cd grep-$SRC_VERSION/
./configure $TT_AUTOCONF_COMMON
make -j $TT_PROCS
}
package() {
cd grep-$SRC_VERSION/
make -j $TT_PROCS install DESTDIR=$TT_INSTALLDIR
}

17
sources/gzip/gzip.spec Normal file
View File

@@ -0,0 +1,17 @@
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
SRC_HASH="01a7b881bd220bfdf615f97b8718f80bdfd3f6add385b993dcf6efd14e8c0ac6"
SRC_NAME="gzip"
SRC_URL="https://ftp.gnu.org/gnu/gzip/gzip-1.14.tar.xz"
SRC_VERSION="1.14"
build() {
tar xf ../$SRC_FILENAME
cd gzip-$SRC_VERSION/
./configure $TT_AUTOCONF_COMMON
make -j $TT_PROCS
}
package() {
cd gzip-$SRC_VERSION/
make -j $TT_PROCS install DESTDIR=$TT_INSTALLDIR
}

View File

@@ -7,8 +7,6 @@ SRC_VERSION="3.8.4"
build() {
tar xf ../$SRC_FILENAME
cd libarchive-*/
# NOTE: bsdtar is disabled here because Busybox's implementation is complete
# enough to be useful and bootstrapping libarchive is a pain. ~ahill
./configure $TT_AUTOCONF_COMMON --disable-static --enable-year2038
make -j $TT_PROCS
}

View File

@@ -1,8 +1,8 @@
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
SRC_HASH="558c6bbab749492b34f99827fe807b0039a744693c21d3a7e03b3a48edaab96a"
SRC_HASH="7a8879167b89c4bae077d6f39c4f2130769f05dbdad2aad914adab9afb7d7f9a"
SRC_NAME="linux"
SRC_URL="https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.18.2.tar.xz"
SRC_VERSION="6.18.2"
SRC_URL="https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.18.3.tar.xz"
SRC_VERSION="6.18.3"
build() {
tar xf ../$SRC_FILENAME

17
sources/mawk/mawk.spec Normal file
View File

@@ -0,0 +1,17 @@
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
SRC_HASH="51bcb82d577b141d896d9d9c3077d7aaa209490132e9f2b9573ba8511b3835be"
SRC_NAME="mawk"
SRC_URL="https://invisible-island.net/archives/mawk/mawk-1.3.4-20250131.tgz"
SRC_VERSION="1.3.4-20250131"
build() {
tar xf ../$SRC_FILENAME
cd mawk-$SRC_VERSION/
./configure $TT_AUTOCONF_COMMON
make -O -j $TT_PROCS
}
package() {
cd mawk-$SRC_VERSION/
make -O -j $TT_PROCS install DESTDIR=$TT_INSTALLDIR
}

17
sources/sed/sed.spec Normal file
View File

@@ -0,0 +1,17 @@
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
SRC_HASH="6e226b732e1cd739464ad6862bd1a1aba42d7982922da7a53519631d24975181"
SRC_NAME="sed"
SRC_URL="https://ftp.gnu.org/gnu/sed/sed-4.9.tar.xz"
SRC_VERSION="4.9"
build() {
tar xf ../$SRC_FILENAME
cd sed-$SRC_VERSION/
./configure $TT_AUTOCONF_COMMON
make -j $TT_PROCS
}
package() {
cd sed-$SRC_VERSION/
make -j $TT_PROCS install DESTDIR=$TT_INSTALLDIR
}

17
sources/tar/tar.spec Normal file
View File

@@ -0,0 +1,17 @@
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
SRC_HASH="4d62ff37342ec7aed748535323930c7cf94acf71c3591882b26a7ea50f3edc16"
SRC_NAME="tar"
SRC_URL="https://ftp.gnu.org/gnu/tar/tar-1.35.tar.xz"
SRC_VERSION="1.35"
build() {
tar xf ../$SRC_FILENAME
cd tar-$SRC_VERSION/
./configure $TT_AUTOCONF_COMMON
make -j $TT_PROCS
}
package() {
cd tar-$SRC_VERSION/
make -j $TT_PROCS install DESTDIR=$TT_INSTALLDIR
}

View File

@@ -1,9 +1,13 @@
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
SRC_HASH="0b54f79df85912504de0b14aec7971e3f964491af1812d83447005807513cd9e"
SRC_HASH="ce09c50a5962786b83e5da389c90dd2c15ecd0980a258dd01f70f9e7ce58a8f1"
SRC_NAME="xz"
SRC_URL="https://github.com/tukaani-project/xz/releases/download/v5.8.2/xz-5.8.2.tar.xz"
SRC_URL="https://github.com/tukaani-project/xz/releases/download/v5.8.2/xz-5.8.2.tar.gz"
SRC_VERSION="5.8.2"
# NOTE: It is important that the source tarball should remain gzip-compressed
# rather than xz-compressed, because we are unable to extract
# xz-compressed archives until this software is built. ~ahill
build() {
tar xf ../$SRC_FILENAME
cd xz-*/