wok-stable view module-init-tools/receipt @ rev 2675

Up: ffmpeg and add compile options for small size
author Rohit Joshi <jozee@slitaz.org>
date Tue Apr 21 12:40:38 2009 +0000 (2009-04-21)
parents cf7f6d5ad5ca
children 8785eea6ab59
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"
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/depmod $fs/sbin
33 cp $_pkg/sbin/insmod $fs/sbin
34 cp $_pkg/sbin/modinfo $fs/sbin
35 cp $_pkg/sbin/modprobe $fs/sbin
36 cp $_pkg/sbin/rmmod $fs/sbin
37 # lsmod goes in /bin.
38 cp -a $_pkg/bin $fs
39 strip -s $fs/sbin/*
40 strip -s $fs/bin/*
41 # Empty modprobe.conf
42 echo "# /etc/modprobe.conf: Modprobe config file." > $fs/etc/modprobe.conf
43 echo "#" >> $fs/etc/modprobe.conf
44 }