wok-current view module-init-tools/receipt @ rev 3337
Fix: mplayer-svn compile with gcc44, smplayer, gnome-mplayer work (but still no skin)
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Jun 10 16:38:49 2009 +0000 (2009-06-10) |
parents | 8785eea6ab59 |
children | 8316f5a7c11d |
line source
1 # SliTaz package receipt.
3 PACKAGE="module-init-tools"
4 VERSION="3.9"
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 }