summaryrefslogtreecommitdiff
path: root/kmod/Pkgfile
blob: 4bd5b9e025d82f366791a05fd6cec4ba1f287661 (plain)
    1 # Description: Kernel module utilities and library
    2 # URL: https://git.kernel.org/?p=utils/kernel/kmod/kmod.git
    3 # Maintainer: CRUX System Team, core-ports at crux dot nu
    4 
    5 name=kmod
    6 version=30
    7 release=1
    8 source=(https://www.kernel.org/pub/linux/utils/kernel/$name/$name-$version.tar.xz)
    9 
   10 build() {
   11 	cd $name-$version
   12 
   13 	./configure \
   14 		--prefix=/usr \
   15 		--bindir=/sbin \
   16 		--sysconfdir=/etc \
   17 		--disable-manpages \
   18 		--with-rootlibdir=/lib
   19 
   20 	make
   21 	make DESTDIR=$PKG install
   22 
   23 	install -d $PKG/etc/{modprobe,depmod}.d
   24 	install -d $PKG/bin
   25 	install -d $PKG/usr/share/man/{man5,man8}
   26 
   27 	install -m 0644 man/*.5 $PKG/usr/share/man/man5
   28 	install -m 0644 man/*.8 $PKG/usr/share/man/man8
   29 
   30 	ln -s kmod $PKG/sbin/modinfo
   31 	ln -s kmod $PKG/sbin/depmod
   32 	ln -s kmod $PKG/sbin/insmod
   33 	ln -s kmod $PKG/sbin/lsmod
   34 	ln -s kmod $PKG/sbin/rmmod
   35 	ln -s kmod $PKG/sbin/modprobe
   36 	ln -s ../sbin/kmod $PKG/bin/lsmod
   37 
   38 	# remove bash-completion stuff
   39 	rm -r $PKG/usr/share/bash-completion
   40 }

Generated by cgit