CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
m4: updated mandir
[crossrootfs.git] / kmod / Pkgfile
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
6 name=kmod
7 version=21
8 release=2
9 source=(http://www.kernel.org/pub/linux/utils/kernel/$name/$name-$version.tar.xz)
10
11 build() {
12 cd $name-$version
13
14 ./configure --build=$CHOST \
15 --host=$CTARGET \
16 --bindir=/sbin \
17 --sysconfdir=/etc \
18 --disable-manpages \
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
26 install -d $PKG/usr/share/man/{man5,man8}
27
28 install -m 0644 man/*.5 $PKG/usr/share/man/man5
29 install -m 0644 man/*.8 $PKG/usr/share/man/man8
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
38
39 # remove bash-completion stuff
40 rm -r $PKG/usr/share/bash-completion
41 }