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 \
20 --with-rootlibdir=/lib
23 make DESTDIR=$PKG install
25 install -d $PKG/etc/{modprobe,depmod}.d
28 ln -s kmod $PKG/sbin/modinfo
29 ln -s kmod $PKG/sbin/depmod
30 ln -s kmod $PKG/sbin/insmod
31 ln -s kmod $PKG/sbin/lsmod
32 ln -s kmod $PKG/sbin/rmmod
33 ln -s kmod $PKG/sbin/modprobe
34 ln -s ../sbin/kmod $PKG/bin/lsmod