wok-next view kmod/receipt @ rev 17934
syslinux/taziso: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 13 17:56:30 2015 +0200 (2015-04-13) |
parents | 9be2dfe2fe72 |
children | 01b295f47e95 |
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 }