wok-6.x annotate kmod/receipt @ rev 16722
postgis-gui: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 02 16:50:20 2014 +0000 (2014-06-02) |
parents | 6282f5a01acb |
children | 36278632a653 |
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" |
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@16067 | 13 HOST_ARCH="i486 arm" |
pankso@12484 | 14 |
pankso@12531 | 15 DEPENDS="zlib liblzma" |
pascal@15048 | 16 BUILD_DEPENDS="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 |
pankso@16067 | 20 arm) BUILD_DEPENDS="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 } |