wok-current view kmod/receipt @ rev 16024
spk: add to cross arch's
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Mar 06 23:00:20 2014 +0100 (2014-03-06) |
parents | 8d73417cf2d4 |
children | 9be2dfe2fe72 |
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"
14 DEPENDS="zlib liblzma"
15 BUILD_DEPENDS="zlib-dev liblzma-dev tar"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --bindir=/sbin \
23 --with-rootlibdir=/lib \
24 --sysconfdir=/etc \
25 --with-zlib \
26 --with-xz \
27 --disable-manpages \
28 $CONFIGURE_ARGS &&
29 make && make pkgconfigdir=/usr/lib/pkgconfig install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/lib $fs/bin
36 cp -a $install/lib/*.so* $fs/lib
37 cp -a $install/sbin $fs
38 cd $fs/sbin
39 # The kmod tools symlinks
40 for tool in rmmod insmod modinfo modprobe depmod
41 do
42 ln -s kmod $tool
43 done
44 cd ../bin && ln -s ../sbin/kmod lsmod
45 }