wok-next view kmod/receipt @ rev 13137
Up shell-fm (0.8)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 08 18:18:26 2012 +0200 (2012-07-08) |
parents | b981e20f2719 |
children | aa09cd98f171 |
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 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 }