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

Fix bash patch
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jan 04 23:17:57 2008 +0100 (2008-01-04)
parents
children cdac43c3f44f
line source
1 # SliTaz package receipt.
3 PACKAGE="module-init-tools"
4 VERSION="3.2"
5 CATEGORY="base-apps"
6 SHORT_DESC="Kernel modules manipulation tools."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="zlib"
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"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 ./configure --enable-zlib --prefix=/usr \
18 --sbindir=/sbin --bindir=/bin --sysconfdir=/etc \
19 --infodir=/usr/share/info --mandir=/usr/share/man \
20 $CONFIGURE_ARGS
21 make
22 make DESTDIR=$PWD/_pkg install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/sbin $fs/etc
29 cp $_pkg/sbin/depmod $fs/sbin
30 cp $_pkg/sbin/insmod $fs/sbin
31 cp $_pkg/sbin/modinfo $fs/sbin
32 cp $_pkg/sbin/modprobe $fs/sbin
33 cp $_pkg/sbin/rmmod $fs/sbin
34 # lsmod goes in /bin.
35 cp -a $_pkg/bin $fs
36 strip -s $fs/sbin/*
37 strip -s $fs/bin/*
38 # Empty modprobe.conf
39 echo "# /etc/modprobe.conf: Modprobe config file." > $fs/etc/modprobe.conf
40 echo "#" >> $fs/etc/modprobe.conf
41 }