41 lines
960 B
Plaintext
41 lines
960 B
Plaintext
# Description: Kernel module utilities and library
|
|
# URL: https://git.kernel.org/?p=utils/kernel/kmod/kmod.git
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
name=kmod
|
|
version=31
|
|
release=1
|
|
source=(https://www.kernel.org/pub/linux/utils/kernel/$name/$name-$version.tar.xz)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--bindir=/sbin \
|
|
--sysconfdir=/etc \
|
|
--disable-manpages \
|
|
--with-rootlibdir=/lib
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
install -d $PKG/etc/{modprobe,depmod}.d
|
|
install -d $PKG/bin
|
|
install -d $PKG/usr/share/man/{man5,man8}
|
|
|
|
install -m 0644 man/*.5 $PKG/usr/share/man/man5
|
|
install -m 0644 man/*.8 $PKG/usr/share/man/man8
|
|
|
|
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
|
|
|
|
# remove bash-completion stuff
|
|
rm -r $PKG/usr/share/bash-completion
|
|
}
|