wok view kmod/receipt @ rev 15557
Up: thunderbird-langpack-fr (17.0.11esr)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Nov 24 17:37:38 2013 +0100 (2013-11-24) |
parents | e953efa0ff33 |
children | 6282f5a01acb |
line source
1 # SliTaz package receipt.
3 PACKAGE="kmod"
4 VERSION="14"
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 --libdir=/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 }