diff --git a/STATUS.md b/STATUS.md index 9db8b3c..c545509 100644 --- a/STATUS.md +++ b/STATUS.md @@ -27,7 +27,7 @@ Definitions: | `initramfs-tools` | Yes | Yes | | `iproute2` | | `kbd` | -| `kmod` | +| `kmod` | Yes | Yes | | `less` | | `libarchive` | Yes | Yes | | `libcap2` | diff --git a/bootstrap.sh b/bootstrap.sh index 1f52ec9..6cf6345 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -255,6 +255,7 @@ SOURCES=( grep groff gzip + kmod libarchive libelf libressl diff --git a/rootbuild.sh b/rootbuild.sh index 68494e5..a10cffa 100755 --- a/rootbuild.sh +++ b/rootbuild.sh @@ -37,7 +37,7 @@ echo "Done!" # NOTE: libelf requires zlib to build. ~ahill # NOTE: fortune-mod requires cmake to build. ~ahill cd /maple -LAYER0="bc byacc bzip2 coreutils diffutils findutils grep gzip libressl m4 make mawk muon musl patch perl pkgconf sed tar xz zlib" +LAYER0="bc byacc bzip2 coreutils diffutils findutils grep gzip kmod libressl m4 make mawk muon musl patch perl pkgconf sed tar xz zlib" LAYER1="autoconf automake flex groff libarchive libelf libtool linux" LAYER2="dash nasm cmake fortune-mod" PACKAGES="$LAYER0 $LAYER1 $LAYER2" diff --git a/sources/kmod/kmod.spec b/sources/kmod/kmod.spec new file mode 100644 index 0000000..ebbd947 --- /dev/null +++ b/sources/kmod/kmod.spec @@ -0,0 +1,22 @@ +# Maintainer: Alexander Hill +SRC_FILENAME="kmod-34.tar.gz" +SRC_HASH="cb47be49366b596e4554eeeb7595b128feb261619c7675603e004b07c5ebbd5b" +SRC_NAME="kmod" +SRC_URL="https://github.com/kmod-project/kmod/archive/refs/tags/v34.tar.gz" +SRC_VERSION="34" + +build() { + tar xf ../$SRC_FILENAME + cd kmod-$SRC_VERSION/ + ./autogen.sh + # NOTE: Building man pages requires scdoc. In an attempt to reduce the total + # number of dependencies, documentation is temporarily disabled. + # ~ahill + ./configure $TT_AUTOCONF_COMMON --disable-manpages --enable-year2038 + make -j $TT_PROCS +} + +package() { + cd kmod-$SRC_VERSION/ + make -j $TT_PROCS install DESTDIR=$TT_INSTALLDIR +}