# Description: Kernel module utilities and library # URL: https://git.kernel.org/?p=utils/kernel/kmod/kmod.git # Maintainer: CRUX System Team, core-ports at crux dot nu name=kmod version=32 release=1 source=(https://www.kernel.org/pub/linux/utils/kernel/$name/$name-$version.tar.xz) build() { cd $name-$version ./configure \ --prefix=/usr \ --bindir=/sbin \ --sysconfdir=/etc \ --disable-manpages \ --with-rootlibdir=/lib make make DESTDIR=$PKG install install -d $PKG/etc/{modprobe,depmod}.d install -d $PKG/bin install -d $PKG/usr/share/man/{man5,man8} install -d $PKG/usr/share/pkgconfig install -m 0644 man/*.5 $PKG/usr/share/man/man5 install -m 0644 man/*.8 $PKG/usr/share/man/man8 ln -s ../sbin/kmod $PKG/bin/lsmod mv $PKG/usr/{lib,share}/pkgconfig/kmod.pc rm -r $PKG/usr/share/bash-completion }