blob: 68eeb8e25bc2451b79f10e24c12bb1bc22665892 (
plain)
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
5 name=kmod
6 version=23
7 release=1
8 source=(https://www.kernel.org/pub/linux/utils/kernel/$name/$name-$version.tar.xz)
9
10 build() {
11 cd $name-$version
12
13 ./configure --prefix=/usr \
14 --bindir=/sbin \
15 --sysconfdir=/etc \
16 --disable-manpages \
17 --with-rootlibdir=/lib
18
19 make
20 make DESTDIR=$PKG install
21
22 install -d $PKG/etc/{modprobe,depmod}.d
23 install -d $PKG/bin
24 install -d $PKG/usr/share/man/{man5,man8}
25
26 install -m 0644 man/*.5 $PKG/usr/share/man/man5
27 install -m 0644 man/*.8 $PKG/usr/share/man/man8
28
29 ln -s kmod $PKG/sbin/modinfo
30 ln -s kmod $PKG/sbin/depmod
31 ln -s kmod $PKG/sbin/insmod
32 ln -s kmod $PKG/sbin/lsmod
33 ln -s kmod $PKG/sbin/rmmod
34 ln -s kmod $PKG/sbin/modprobe
35 ln -s ../sbin/kmod $PKG/bin/lsmod
36
37 # remove bash-completion stuff
38 rm -r $PKG/usr/share/bash-completion
39 }
|