wok view kmod/receipt @ rev 21075

jabberd2: modification of log.c removed
author Hans-G?nter Theisgen
date Thu Mar 14 17:35:32 2019 +0100 (2019-03-14)
parents 1e3142ca9abf
children ef1efd2c8811
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 depmod"
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 # link dynamically with libkmod
27 sed -i 's|\(.libkmod/libkmod\)-internal\.la|\1.la|' Makefile*
29 # Add lzma support
30 sed -i -e 's/stream_decoder/auto_decoder/' \
31 -e 's/.*c_xz\[.*/&\nstatic const char magic_lz[] = {0x5d, 0};/' \
32 -e 's/.*c_xz,.*/&\n\t{sizeof(magic_lz), magic_lz, {load_xz, unload_xz}},/' \
33 libkmod/libkmod-file.c
34 ./configure \
35 --bindir=/sbin \
36 --with-rootlibdir=/lib \
37 --sysconfdir=/etc \
38 --with-zlib \
39 --with-xz \
40 --disable-manpages \
41 $CONFIGURE_ARGS &&
42 make && make pkgconfigdir=/usr/lib/pkgconfig install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/lib $fs/bin $fs/usr/lib $install/usr/share/man
49 cp -a $install/sbin $fs
50 cp -a $install/lib/*.so* $fs/lib
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
53 cd $fs/sbin
54 # The kmod tools symlinks
55 for tool in rmmod insmod modinfo modprobe depmod
56 do
57 ln -s kmod $tool
58 done
59 cd ../bin && ln -s ../sbin/kmod lsmod
60 cp $src/man/*.? $install/usr/share/man
61 }