wok-next view kmod/receipt @ rev 21725

busybox: add overrides
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 11:18:16 2020 +0000 (2020-09-01)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="kmod"
4 VERSION="25"
5 CATEGORY="base-system"
6 SHORT_DESC="Linux kernel modules tools"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://mirrors.edge.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"
14 TARBALL_SHA1="761ee76bc31f5db10d470dad607a5f9d68acef68"
16 BUILD_DEPENDS="zlib-dev xz-dev tar"
17 SPLIT="$PACKAGE-dev $PACKAGE"
19 COPY_dev="@dev *.so"
21 # please keep glibc-base here because kmod used in the post-install
22 # of linux-* packages and will not work instead
23 DEPENDS_std="glibc-base zlib liblzma"
24 DEPENDS_dev="$PACKAGE xz-dev"
26 TAGS_std="LFS"
28 compile_rules() {
29 ./configure \
30 --bindir=/bin \
31 --with-rootlibdir=/lib \
32 --with-zlib \
33 --with-xz \
34 $CONFIGURE_ARGS &&
35 fix libtool &&
36 make &&
37 make install || return 1
39 # compatibility with module-init-tools
40 # (the package that previously handled Linux kernel modules)
41 mkdir $install/sbin
42 for tool in depmod insmod lsmod modinfo modprobe rmmod; do
43 ln -s ../bin/kmod $install/sbin/$tool
44 done
45 ln -s kmod $install/bin/lsmod
46 }
48 PROVIDE_std="modules-init-tools depmod"