wok-6.x annotate kmod/receipt @ rev 14016
Up gstreamer-dev (0.10.36)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Feb 17 19:53:59 2013 +0100 (2013-02-17) |
parents | 1380cfc94a2f |
children | 408c87fa22ca |
rev | line source |
---|---|
pankso@12484 | 1 # SliTaz package receipt. |
pankso@12484 | 2 |
pankso@12484 | 3 PACKAGE="kmod" |
pankso@13605 | 4 VERSION="11" |
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@13605 | 26 --disable-manpages \ |
pankso@12531 | 27 $CONFIGURE_ARGS && |
pankso@12531 | 28 make && make pkgconfigdir=/usr/lib/pkgconfig install |
pankso@12484 | 29 } |
pankso@12484 | 30 |
pankso@12484 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12484 | 32 genpkg_rules() |
pankso@12484 | 33 { |
pankso@12531 | 34 mkdir -p $fs/lib $fs/bin |
pankso@12531 | 35 cp -a $install/lib/*.so* $fs/lib |
pankso@12531 | 36 cp -a $install/sbin $fs |
pankso@12531 | 37 cd $fs/sbin |
pankso@12531 | 38 # The kmod tools symlinks |
pankso@12531 | 39 for tool in rmmod insmod modinfo modprobe depmod |
pankso@12531 | 40 do |
pankso@12531 | 41 ln -s kmod $tool |
pankso@12531 | 42 done |
pascal@12703 | 43 cd ../bin && ln -s ../sbin/kmod lsmod |
pankso@12484 | 44 } |