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