wok-stable diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/module-init-tools/receipt	Fri Jan 04 23:17:57 2008 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="module-init-tools"
     1.7 +VERSION="3.2"
     1.8 +CATEGORY="base-apps"
     1.9 +SHORT_DESC="Kernel modules manipulation tools."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +DEPENDS="zlib"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://ftp.kernel.org/pub/linux/utils/kernel/module-init-tools/"
    1.14 +WGET_URL="${WEB_SITE}$TARBALL"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	cd $src
    1.20 +	./configure --enable-zlib --prefix=/usr \
    1.21 +	--sbindir=/sbin --bindir=/bin --sysconfdir=/etc \
    1.22 +	--infodir=/usr/share/info --mandir=/usr/share/man \
    1.23 +	$CONFIGURE_ARGS
    1.24 +	make
    1.25 +	make DESTDIR=$PWD/_pkg install
    1.26 +}
    1.27 +
    1.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.29 +genpkg_rules()
    1.30 +{
    1.31 +	mkdir -p $fs/sbin $fs/etc
    1.32 +	cp $_pkg/sbin/depmod $fs/sbin
    1.33 +	cp $_pkg/sbin/insmod $fs/sbin
    1.34 +	cp $_pkg/sbin/modinfo $fs/sbin
    1.35 +	cp $_pkg/sbin/modprobe $fs/sbin
    1.36 +	cp $_pkg/sbin/rmmod $fs/sbin
    1.37 +	# lsmod goes in /bin.
    1.38 +	cp -a $_pkg/bin $fs
    1.39 +	strip -s $fs/sbin/*
    1.40 +	strip -s $fs/bin/*
    1.41 +	# Empty modprobe.conf
    1.42 +	echo "# /etc/modprobe.conf: Modprobe config file." > $fs/etc/modprobe.conf
    1.43 +	echo "#" >> $fs/etc/modprobe.conf
    1.44 +}