wok-6.x view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="kmod"
4 VERSION="23"
5 CATEGORY="base-system"
6 SHORT_DESC="Linux kernel modules tools."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="https://www.kernel.org/pub/linux/utils/kernel/kmod/"
11 WGET_URL="$WEB_SITE$TARBALL"
12 PROVIDE="modules-init-tools"
13 HOST_ARCH="i486 arm"
15 DEPENDS="zlib liblzma"
16 BUILD_DEPENDS="wget zlib-dev liblzma-dev tar"
18 # Handle cross compilation. ARM use build host: tar
19 case "$ARCH" in
20 arm) BUILD_DEPENDS="wget zlib-dev liblzma-dev" ;;
21 esac
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # Add lzma support
27 sed -i -e 's/stream_decoder/auto_decoder/' \
28 -e 's/.*c_xz\[.*/&\nstatic const char magic_lz[] = {0x5d, 0};/' \
29 -e 's/.*c_xz,.*/&\n\t{sizeof(magic_lz), magic_lz, {load_xz, unload_xz}},/' \
30 libkmod/libkmod-file.c
31 ./configure \
32 --bindir=/sbin \
33 --with-rootlibdir=/lib \
34 --sysconfdir=/etc \
35 --with-zlib \
36 --with-xz \
37 --disable-manpages \
38 $CONFIGURE_ARGS &&
39 make && make pkgconfigdir=/usr/lib/pkgconfig install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/lib $fs/bin $fs/usr/lib $install/usr/share/man
46 cp -a $install/sbin $fs
47 cp -a $install/lib/*.so* $fs/lib
48 cp -a $install/usr/lib/*.so* $fs/usr/lib
50 cd $fs/sbin
51 # The kmod tools symlinks
52 for tool in rmmod insmod modinfo modprobe depmod
53 do
54 ln -s kmod $tool
55 done
56 cd ../bin && ln -s ../sbin/kmod lsmod
57 cp $src/man/*.? $install/usr/share/man
58 }