wok view module-init-tools/receipt @ rev 3059

Up: ndiswrapper (1.54)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed May 13 17:16:51 2009 +0200 (2009-05-13)
parents 65d3dfc87776
children f0a84dc0a7c2
line source
1 # SliTaz package receipt.
3 PACKAGE="module-init-tools"
4 VERSION="3.2"
5 CATEGORY="base-system"
6 SHORT_DESC="Kernel modules manipulation tools."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS="zlib lzlib depmod"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://ftp.kernel.org/pub/linux/utils/kernel/module-init-tools/"
11 WGET_URL="${WEB_SITE}$TARBALL"
12 BUILD_DEPENDS="zlib-dev lzlib-dev lzlib"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 [ -f done.lzlib.u ] || patch -p1 < ../stuff/lzlib.u
19 touch done.lzlib.u
20 ./configure --enable-zlib --prefix=/usr \
21 --sbindir=/sbin --bindir=/bin --sysconfdir=/etc \
22 --infodir=/usr/share/info --mandir=/usr/share/man \
23 $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/sbin $fs/etc
32 cp $_pkg/sbin/insmod $fs/sbin
33 cp $_pkg/sbin/modinfo $fs/sbin
34 cp $_pkg/sbin/modprobe $fs/sbin
35 cp $_pkg/sbin/rmmod $fs/sbin
36 # lsmod goes in /bin.
37 cp -a $_pkg/bin $fs
38 strip -s $fs/sbin/*
39 strip -s $fs/bin/*
40 # Empty modprobe.conf
41 echo "# /etc/modprobe.conf: Modprobe config file." > $fs/etc/modprobe.conf
42 echo "#" >> $fs/etc/modprobe.conf
43 }