wok-6.x annotate kmod/receipt @ rev 19604
kmod: show man pages
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 03 15:19:53 2017 +0100 (2017-01-03) |
parents | d5ea8d61ec6e |
children | 7f633571a56d |
rev | line source |
---|---|
pankso@12484 | 1 # SliTaz package receipt. |
pankso@12484 | 2 |
pankso@12484 | 3 PACKAGE="kmod" |
pascal@19603 | 4 VERSION="23" |
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 { |
pascal@19603 | 26 # Add lzma support |
pascal@19603 | 27 sed -i -e 's/stream_decoder/auto_decoder/' \ |
pascal@19603 | 28 -e 's/.*c_xz\[.*/&\nstatic const char magic_lz[] = {0x5d, 0};/' \ |
pascal@19603 | 29 -e 's/.*c_xz,.*/&\n\t{sizeof(magic_lz), magic_lz, {load_xz, unload_xz}},/' \ |
pascal@19603 | 30 libkmod/libkmod-file.c |
pankso@12484 | 31 ./configure \ |
pankso@12531 | 32 --bindir=/sbin \ |
erjo@15800 | 33 --with-rootlibdir=/lib \ |
pankso@12484 | 34 --sysconfdir=/etc \ |
pankso@12484 | 35 --with-zlib \ |
pankso@12531 | 36 --with-xz \ |
pankso@13605 | 37 --disable-manpages \ |
pankso@12531 | 38 $CONFIGURE_ARGS && |
pankso@12531 | 39 make && make pkgconfigdir=/usr/lib/pkgconfig install |
pankso@12484 | 40 } |
pankso@12484 | 41 |
pankso@12484 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12484 | 43 genpkg_rules() |
pankso@12484 | 44 { |
pascal@19604 | 45 mkdir -p $fs/lib $fs/bin $fs/usr/lib $install/usr/share/man |
pankso@16067 | 46 cp -a $install/sbin $fs |
pankso@12531 | 47 cp -a $install/lib/*.so* $fs/lib |
pankso@16067 | 48 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@16067 | 49 |
pankso@12531 | 50 cd $fs/sbin |
pankso@12531 | 51 # The kmod tools symlinks |
pankso@12531 | 52 for tool in rmmod insmod modinfo modprobe depmod |
pankso@12531 | 53 do |
pankso@12531 | 54 ln -s kmod $tool |
pankso@12531 | 55 done |
pascal@12703 | 56 cd ../bin && ln -s ../sbin/kmod lsmod |
pascal@19604 | 57 cp $src/man/*.? $install/usr/share/man |
pankso@12484 | 58 } |