wok-next annotate kmod/receipt @ rev 13379
Up: dbus-helper to 1.6.4.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Sep 19 05:19:31 2012 +0000 (2012-09-19) |
parents | aa09cd98f171 |
children | b19a81a9aceb |
rev | line source |
---|---|
pankso@12484 | 1 # SliTaz package receipt. |
pankso@12484 | 2 |
pankso@12484 | 3 PACKAGE="kmod" |
pankso@13344 | 4 VERSION="10" |
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 } |