wok-next view kmod/receipt @ rev 20194
Up irrlicht (1.8.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 03 11:27:16 2017 +0100 (2017-11-03) |
parents | 4eab61ea2c5a |
children | 0709fcf9b0d7 |
line source
1 # SliTaz package receipt v2.
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 BUILD_DEPENDS="zlib-dev xz-dev tar"
16 BUILD_DEPENDS_arm="zlib-dev xz-dev"
17 SPLIT="kmod-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ./configure \
23 --bindir=/bin \
24 --with-rootlibdir=/lib \
25 --sysconfdir=/etc \
26 --with-zlib \
27 --with-xz \
28 $CONFIGURE_ARGS &&
29 make && make install
31 # compatibility with module-init-tools
32 # (the package that previously handled Linux kernel modules)
33 mkdir $install/sbin
34 for tool in depmod insmod lsmod modinfo modprobe rmmod; do
35 ln -s ../bin/kmod $install/sbin/$tool
36 done
37 ln -s kmod $install/bin/lsmod
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 case $PACKAGE in
44 kmod)
45 copy @std
46 PROVIDE="modules-init-tools depmod"
47 DEPENDS="zlib liblzma"
48 ;;
49 *-dev)
50 copy @dev
51 DEPENDS="kmod xz-dev pkg-config"
52 ;;
53 esac
54 }