wok-6.x annotate kmod/receipt @ rev 12703

slitaz-base-files: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 04 09:08:34 2012 +0200 (2012-05-04)
parents 3c3ae2ea75d6
children 36a438c097dc
rev   line source
pankso@12484 1 # SliTaz package receipt.
pankso@12484 2
pankso@12484 3 PACKAGE="kmod"
pankso@12484 4 VERSION="8"
pankso@12484 5 CATEGORY="base-system"
pankso@12484 6 SHORT_DESC="GNU traditional Unix macro processor."
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"
pankso@12484 11 PROVIDES="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 }