wok-next annotate kmod/receipt @ rev 18104
Up zsh (5.0.7)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 01 11:13:52 2015 +0200 (2015-06-01) |
parents | 9be2dfe2fe72 |
children | 01b295f47e95 |
rev | line source |
---|---|
pankso@12484 | 1 # SliTaz package receipt. |
pankso@12484 | 2 |
pankso@12484 | 3 PACKAGE="kmod" |
erjo@15800 | 4 VERSION="16" |
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" |
pascal@17923 | 10 WEB_SITE="https://www.kernel.org/pub/linux/utils/kernel/kmod/" |
pascal@17923 | 11 WGET_URL="$WEB_SITE$TARBALL" |
pascal@13024 | 12 PROVIDE="modules-init-tools" |
pankso@16067 | 13 HOST_ARCH="i486 arm" |
pankso@12484 | 14 |
pankso@12531 | 15 DEPENDS="zlib liblzma" |
pascal@17923 | 16 BUILD_DEPENDS="wget zlib-dev liblzma-dev tar" |
pankso@12484 | 17 |
pankso@16067 | 18 # Handle cross compilation. ARM use build host: tar |
pankso@16067 | 19 case "$ARCH" in |
pascal@17923 | 20 arm) BUILD_DEPENDS="wget zlib-dev liblzma-dev" ;; |
pankso@16067 | 21 esac |
pankso@16067 | 22 |
pankso@12484 | 23 # Rules to configure and make the package. |
pankso@12484 | 24 compile_rules() |
pankso@12484 | 25 { |
pankso@12484 | 26 ./configure \ |
pankso@12531 | 27 --bindir=/sbin \ |
erjo@15800 | 28 --with-rootlibdir=/lib \ |
pankso@12484 | 29 --sysconfdir=/etc \ |
pankso@12484 | 30 --with-zlib \ |
pankso@12531 | 31 --with-xz \ |
pankso@13605 | 32 --disable-manpages \ |
pankso@12531 | 33 $CONFIGURE_ARGS && |
pankso@12531 | 34 make && make pkgconfigdir=/usr/lib/pkgconfig install |
pankso@12484 | 35 } |
pankso@12484 | 36 |
pankso@12484 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12484 | 38 genpkg_rules() |
pankso@12484 | 39 { |
pankso@16067 | 40 mkdir -p $fs/lib $fs/bin $fs/usr/lib |
pankso@16067 | 41 cp -a $install/sbin $fs |
pankso@12531 | 42 cp -a $install/lib/*.so* $fs/lib |
pankso@16067 | 43 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@16067 | 44 |
pankso@12531 | 45 cd $fs/sbin |
pankso@12531 | 46 # The kmod tools symlinks |
pankso@12531 | 47 for tool in rmmod insmod modinfo modprobe depmod |
pankso@12531 | 48 do |
pankso@12531 | 49 ln -s kmod $tool |
pankso@12531 | 50 done |
pascal@12703 | 51 cd ../bin && ln -s ../sbin/kmod lsmod |
pankso@12484 | 52 } |