2012-03-20 11:48:21 +01:00
|
|
|
# Description: Kernel module utilities and library
|
|
|
|
# URL: http://git.kernel.org/?p=utils/kernel/kmod/kmod.git
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
|
|
|
|
name=kmod
|
2018-01-11 11:49:59 +01:00
|
|
|
version=25
|
2013-12-23 10:59:31 +01:00
|
|
|
release=1
|
2013-04-13 15:45:07 +02:00
|
|
|
source=(https://www.kernel.org/pub/linux/utils/kernel/$name/$name-$version.tar.xz)
|
2012-03-20 11:48:21 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--bindir=/sbin \
|
|
|
|
--sysconfdir=/etc \
|
2013-08-23 09:59:48 +02:00
|
|
|
--disable-manpages \
|
2012-03-20 11:48:21 +01:00
|
|
|
--with-rootlibdir=/lib
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
install -d $PKG/etc/{modprobe,depmod}.d
|
|
|
|
install -d $PKG/bin
|
2015-07-25 23:12:34 +02:00
|
|
|
install -d $PKG/usr/share/man/{man5,man8}
|
2013-08-23 09:59:48 +02:00
|
|
|
|
2015-07-25 23:12:34 +02:00
|
|
|
install -m 0644 man/*.5 $PKG/usr/share/man/man5
|
|
|
|
install -m 0644 man/*.8 $PKG/usr/share/man/man8
|
2012-03-20 11:48:21 +01:00
|
|
|
|
|
|
|
ln -s kmod $PKG/sbin/modinfo
|
|
|
|
ln -s kmod $PKG/sbin/depmod
|
|
|
|
ln -s kmod $PKG/sbin/insmod
|
|
|
|
ln -s kmod $PKG/sbin/lsmod
|
|
|
|
ln -s kmod $PKG/sbin/rmmod
|
|
|
|
ln -s kmod $PKG/sbin/modprobe
|
|
|
|
ln -s ../sbin/kmod $PKG/bin/lsmod
|
2013-08-23 09:25:48 +02:00
|
|
|
|
|
|
|
# remove bash-completion stuff
|
2015-07-25 23:12:34 +02:00
|
|
|
rm -r $PKG/usr/share/bash-completion
|
2012-03-20 11:48:21 +01:00
|
|
|
}
|