talimat 682 B

12345678910111213141516171819202122232425262728293031
  1. # Description: The Kmod package contains libraries and utilities for loading kernel modules.
  2. # URL: http://www.kernel.org/pub/linux/kernel/people/rusty/modules
  3. # Packager: pierre at nutyx dot org
  4. PKGMK_GROUPS=(devel doc man)
  5. name=kmod
  6. version=22
  7. release=1
  8. source=(http://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-$version.tar.xz )
  9. build()
  10. {
  11. cd $name-$version
  12. ./configure --prefix=/usr \
  13. --bindir=/bin \
  14. --sysconfdir=/etc \
  15. --with-rootlibdir=/lib \
  16. --disable-manpages \
  17. --with-xz \
  18. --with-zlib
  19. make
  20. make DESTDIR=$PKG install
  21. mkdir $PKG/sbin
  22. for target in depmod insmod modinfo modprobe rmmod; do
  23. ln -sv ../bin/kmod $PKG/sbin/$target
  24. done
  25. ln -sv kmod $PKG/bin/lsmod
  26. }