1 # Description: Kernel module utilities and library
2 # URL: http://git.kernel.org/?p=utils/kernel/kmod/kmod.git
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
9 source=(http://www.kernel.org/pub/linux/utils/kernel/$name/$name-$version.tar.xz)
14 ./configure --build=$CHOST \
19 --with-rootlibdir=/lib
22 make DESTDIR=$PKG install
24 install -d $PKG/etc/{modprobe,depmod}.d
26 install -d $PKG/usr/man/{man5,man8}
28 install -m 0644 man/*.5 $PKG/usr/man/man5
29 install -m 0644 man/*.8 $PKG/usr/man/man8
31 ln -s kmod $PKG/sbin/modinfo
32 ln -s kmod $PKG/sbin/depmod
33 ln -s kmod $PKG/sbin/insmod
34 ln -s kmod $PKG/sbin/lsmod
35 ln -s kmod $PKG/sbin/rmmod
36 ln -s kmod $PKG/sbin/modprobe
37 ln -s ../sbin/kmod $PKG/bin/lsmod
39 # remove bash-completion stuff