wok-6.x view kmod/receipt @ rev 12861
Up: sqlite to 3.7.12.1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu May 24 20:50:37 2012 +0000 (2012-05-24) |
parents | 3c3ae2ea75d6 |
children | 36a438c097dc |
line source
1 # SliTaz package receipt.
3 PACKAGE="kmod"
4 VERSION="8"
5 CATEGORY="base-system"
6 SHORT_DESC="GNU traditional Unix macro processor."
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 PROVIDES="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 }