wok-next view kmod/receipt @ rev 19681

Up cookutils, cups, fontconfig, gtk+, ijs, paper-icon-theme, poppler, qpdf.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 07 17:30:10 2017 +0300 (2017-04-07)
parents 119e586fb823
children 0abbdf485a8d
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 WEB_SITE="https://www.kernel.org/pub/linux/utils/kernel/kmod/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$WEB_SITE$TARBALL"
15 DEPENDS="zlib liblzma"
16 BUILD_DEPENDS="zlib-dev liblzma-dev tar"
17 PROVIDE="modules-init-tools depmod"
19 # Handle cross compilation. ARM use build host: tar
20 case "$ARCH" in
21 arm) BUILD_DEPENDS="wget zlib-dev liblzma-dev" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --bindir=/bin \
29 --with-rootlibdir=/lib \
30 --sysconfdir=/etc \
31 --with-zlib \
32 --with-xz \
33 $CONFIGURE_ARGS &&
34 make && make install
36 # compatibility with module-init-tools
37 # (the package that previously handled Linux kernel modules)
38 mkdir $install/sbin
39 for tool in depmod insmod lsmod modinfo modprobe rmmod; do
40 ln -s ../bin/kmod $install/sbin/$tool
41 done
42 ln -s kmod $install/bin/lsmod
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 cook_copy_folders bin sbin
49 cook_copy_files *.so*
50 }