wok-current annotate kmod/receipt @ rev 13336

Up kmod (9)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 04 20:54:29 2012 +0200 (2012-09-04)
parents 36a438c097dc
children 1380cfc94a2f
rev   line source
pankso@12484 1 # SliTaz package receipt.
pankso@12484 2
pankso@12484 3 PACKAGE="kmod"
pascal@13336 4 VERSION="9"
pankso@12484 5 CATEGORY="base-system"
pascal@13336 6 SHORT_DESC="Linux kernel modules tools."
pankso@12484 7 MAINTAINER="pankso@slitaz.org"
pankso@12484 8 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@12484 9 WEB_SITE="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/"
pankso@12484 10 WGET_URL="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/$TARBALL"
pascal@13024 11 PROVIDE="modules-init-tools"
pankso@12484 12
pankso@12531 13 DEPENDS="zlib liblzma"
pankso@12531 14 BUILD_DEPENDS="zlib-dev liblzma-dev"
pankso@12484 15
pankso@12484 16 # Rules to configure and make the package.
pankso@12484 17 compile_rules()
pankso@12484 18 {
pankso@12484 19 cd $src
pankso@12484 20 ./configure \
pankso@12531 21 --bindir=/sbin \
pankso@12531 22 --libdir=/lib \
pankso@12484 23 --sysconfdir=/etc \
pankso@12484 24 --with-zlib \
pankso@12531 25 --with-xz \
pankso@12531 26 $CONFIGURE_ARGS &&
pankso@12531 27 make && make pkgconfigdir=/usr/lib/pkgconfig install
pankso@12484 28 }
pankso@12484 29
pankso@12484 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@12484 31 genpkg_rules()
pankso@12484 32 {
pankso@12531 33 mkdir -p $fs/lib $fs/bin
pankso@12531 34 cp -a $install/lib/*.so* $fs/lib
pankso@12531 35 cp -a $install/sbin $fs
pankso@12531 36 cd $fs/sbin
pankso@12531 37 # The kmod tools symlinks
pankso@12531 38 for tool in rmmod insmod modinfo modprobe depmod
pankso@12531 39 do
pankso@12531 40 ln -s kmod $tool
pankso@12531 41 done
pascal@12703 42 cd ../bin && ln -s ../sbin/kmod lsmod
pankso@12484 43 }