wok view kmod/receipt @ rev 13487

up git (1.7.12.3)
author Samuel Trassare <samuel_trassare@yahoo.com>
date Thu Oct 11 23:34:50 2012 +0000 (2012-10-11)
parents aa09cd98f171
children b19a81a9aceb
line source
1 # SliTaz package receipt.
3 PACKAGE="kmod"
4 VERSION="10"
5 CATEGORY="base-system"
6 SHORT_DESC="Linux kernel modules tools."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.xz"
9 WEB_SITE="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/"
10 WGET_URL="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/$TARBALL"
11 PROVIDE="modules-init-tools"
13 DEPENDS="zlib liblzma"
14 BUILD_DEPENDS="zlib-dev liblzma-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --bindir=/sbin \
22 --libdir=/lib \
23 --sysconfdir=/etc \
24 --with-zlib \
25 --with-xz \
26 $CONFIGURE_ARGS &&
27 make && make pkgconfigdir=/usr/lib/pkgconfig install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/lib $fs/bin
34 cp -a $install/lib/*.so* $fs/lib
35 cp -a $install/sbin $fs
36 cd $fs/sbin
37 # The kmod tools symlinks
38 for tool in rmmod insmod modinfo modprobe depmod
39 do
40 ln -s kmod $tool
41 done
42 cd ../bin && ln -s ../sbin/kmod lsmod
43 }