wok-next view kmod/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | d43bf7aae921 |
children | d224c2b13c81 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="kmod"
4 VERSION="24"
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 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/kmod.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$WEB_SITE$TARBALL"
15 BUILD_DEPENDS_arm="zlib-dev xz-dev"
16 BUILD_DEPENDS="zlib-dev xz-dev tar"
17 SPLIT="kmod-dev"
19 compile_rules() {
20 ./configure \
21 --bindir=/bin \
22 --with-rootlibdir=/lib \
23 --with-zlib \
24 --with-xz \
25 $CONFIGURE_ARGS &&
26 fix libtool &&
27 make &&
28 make install || return 1
30 # compatibility with module-init-tools
31 # (the package that previously handled Linux kernel modules)
32 mkdir $install/sbin
33 for tool in depmod insmod lsmod modinfo modprobe rmmod; do
34 ln -s ../bin/kmod $install/sbin/$tool
35 done
36 ln -s kmod $install/bin/lsmod
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 kmod)
42 copy @std
43 PROVIDE="modules-init-tools depmod"
44 # please keep glibc-base here because kmod used in the post-install
45 # of linux-* packages and will not work instead
46 DEPENDS="glibc-base zlib liblzma"
47 TAGS="LFS"
48 ;;
49 *-dev)
50 copy @dev
51 DEPENDS="kmod xz-dev"
52 ;;
53 esac
54 }