wok-next view kmod/receipt @ rev 20549
gimp: tiny edits
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Apr 04 17:32:49 2018 +0300 (2018-04-04) |
parents | 90a5eb560fd6 |
children | 0ec6086e21d6 |
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 make && make install
28 # compatibility with module-init-tools
29 # (the package that previously handled Linux kernel modules)
30 mkdir $install/sbin
31 for tool in depmod insmod lsmod modinfo modprobe rmmod; do
32 ln -s ../bin/kmod $install/sbin/$tool
33 done
34 ln -s kmod $install/bin/lsmod
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 kmod)
40 copy @std
41 PROVIDE="modules-init-tools depmod"
42 # please keep glibc-base here because kmod used in the post-install
43 # of linux-* packages and will not work instead
44 DEPENDS="glibc-base zlib liblzma"
45 TAGS="LFS"
46 ;;
47 *-dev)
48 copy @dev
49 DEPENDS="kmod xz-dev"
50 ;;
51 esac
52 }