CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
procps: updated to 3.3.3 and aligned with upstream. Cleaned cross patches.
[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=10
8 release=1
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 --mandir=/usr/man \
19 --with-rootprefix= \
20 --with-rootlibdir=/lib
21
22 make
23 make DESTDIR=$PKG install
24
25 install -d $PKG/etc/{modprobe,depmod}.d
26 install -d $PKG/bin
27
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
35 }