wok-current view kmod/receipt @ rev 18590
busybox: do not start apache httpd (thanks llev)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 13 10:54:50 2015 +0100 (2015-11-13) |
parents | 9be2dfe2fe72 |
children | d5ea8d61ec6e |
line source
1 # SliTaz package receipt.
3 PACKAGE="kmod"
4 VERSION="16"
5 CATEGORY="base-system"
6 SHORT_DESC="Linux kernel modules tools."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="https://www.kernel.org/pub/linux/utils/kernel/kmod/"
11 WGET_URL="$WEB_SITE$TARBALL"
12 PROVIDE="modules-init-tools"
13 HOST_ARCH="i486 arm"
15 DEPENDS="zlib liblzma"
16 BUILD_DEPENDS="wget zlib-dev liblzma-dev tar"
18 # Handle cross compilation. ARM use build host: tar
19 case "$ARCH" in
20 arm) BUILD_DEPENDS="wget zlib-dev liblzma-dev" ;;
21 esac
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --bindir=/sbin \
28 --with-rootlibdir=/lib \
29 --sysconfdir=/etc \
30 --with-zlib \
31 --with-xz \
32 --disable-manpages \
33 $CONFIGURE_ARGS &&
34 make && make pkgconfigdir=/usr/lib/pkgconfig install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/lib $fs/bin $fs/usr/lib
41 cp -a $install/sbin $fs
42 cp -a $install/lib/*.so* $fs/lib
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
45 cd $fs/sbin
46 # The kmod tools symlinks
47 for tool in rmmod insmod modinfo modprobe depmod
48 do
49 ln -s kmod $tool
50 done
51 cd ../bin && ln -s ../sbin/kmod lsmod
52 }