wok-next view kmod/receipt @ rev 21103
emacs: depends on emacs-common
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jan 03 11:21:15 2019 +0200 (2019-01-03) |
parents | d224c2b13c81 |
children | 29128929e4f9 |
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"
15 BUILD_DEPENDS="zlib-dev xz-dev tar"
16 SPLIT="$PACKAGE-dev"
18 compile_rules() {
19 ./configure \
20 --bindir=/bin \
21 --with-rootlibdir=/lib \
22 --with-zlib \
23 --with-xz \
24 $CONFIGURE_ARGS &&
25 fix libtool &&
26 make &&
27 make install || return 1
29 # compatibility with module-init-tools
30 # (the package that previously handled Linux kernel modules)
31 mkdir $install/sbin
32 for tool in depmod insmod lsmod modinfo modprobe rmmod; do
33 ln -s ../bin/kmod $install/sbin/$tool
34 done
35 ln -s kmod $install/bin/lsmod
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 kmod)
41 copy @std
42 PROVIDE="modules-init-tools depmod"
43 # please keep glibc-base here because kmod used in the post-install
44 # of linux-* packages and will not work instead
45 DEPENDS="glibc-base zlib liblzma"
46 TAGS="LFS"
47 ;;
48 *-dev)
49 copy @dev
50 DEPENDS="kmod xz-dev"
51 ;;
52 esac
53 }