wok view kmod/receipt @ rev 17667
Up firefox-official (35.0.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 16 09:31:04 2015 +0100 (2015-02-16) |
parents | 6282f5a01acb |
children | 36278632a653 |
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="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/"
11 WGET_URL="ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/$TARBALL"
12 PROVIDE="modules-init-tools"
13 HOST_ARCH="i486 arm"
15 DEPENDS="zlib liblzma"
16 BUILD_DEPENDS="zlib-dev liblzma-dev tar"
18 # Handle cross compilation. ARM use build host: tar
19 case "$ARCH" in
20 arm) BUILD_DEPENDS="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 }