3.46. kmod-30
#!/bin/sh # Copyright © 1999-2022 Gerard Beekmans # Copyright © 2017-2022 Random Crew # Distributed under the terms of MIT License.
Configuration
src_config() { ./configure \ --prefix=${PREFIX} \ --sysconfdir=/etc \ --with-openssl \ --with-xz \ --with-zstd \ --with-zlib }
Compilation
src_compile() { make ${MAKEOPTS} }
Installation
src_install() { make install ${MAKEOPTS} DESTDIR=${D} mkdir -p ${D}${PREFIX}/sbin for target in depmod insmod modinfo modprobe rmmod; do ln -sf ../bin/kmod ${D}${PREFIX}/sbin/$target done ln -sf kmod ${D}${PREFIX}/bin/lsmod }
Build code
Other files
Links