CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
kmod: updated to 25
[crossrootfs.git] / kmod / Pkgfile
CommitLineData
4c940097
VM
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
5
6name=kmod
cbd2cfa6 7version=25
5f48d9c3
VM
8release=1
9source=(https://www.kernel.org/pub/linux/utils/kernel/$name/$name-$version.tar.xz)
4c940097
VM
10
11build() {
12 cd $name-$version
13
14 ./configure --build=$CHOST \
15 --host=$CTARGET \
16 --bindir=/sbin \
17 --sysconfdir=/etc \
7d249709 18 --disable-manpages \
4c940097
VM
19 --with-rootlibdir=/lib
20
21 make
22 make DESTDIR=$PKG install
23
24 install -d $PKG/etc/{modprobe,depmod}.d
25 install -d $PKG/bin
546890e2 26 install -d $PKG/usr/share/man/{man5,man8}
7d249709 27
546890e2
VM
28 install -m 0644 man/*.5 $PKG/usr/share/man/man5
29 install -m 0644 man/*.8 $PKG/usr/share/man/man8
4c940097
VM
30
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
f67f5ede
VM
38
39 # remove bash-completion stuff
546890e2 40 rm -r $PKG/usr/share/bash-completion
4c940097 41}