wok-6.x diff rfkill/receipt @ rev 13575

linux/list_modules.sh: modules.list has moved...
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 05 11:02:15 2012 +0100 (2012-11-05)
parents
children de49f29b101e
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rfkill/receipt	Mon Nov 05 11:02:15 2012 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="rfkill"
     1.7 +VERSION="0.4"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="Utility to query the state of the rfkill switches"
    1.10 +MAINTAINER="slaxemulator@gmail.com"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.12 +WEB_SITE="http://linuxwireless.org/en/users/Documentation/rfkill"
    1.13 +WGET_URL="http://wireless.kernel.org/download/$PACKAGE/$TARBALL"
    1.14 +TAGS="kernel"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	cd $src
    1.20 +	sed -i 's/BINDIR) rfkill/BINDIR)/' Makefile
    1.21 +	sed -i 's/-m 755 -t/-m 755 rfkill/' Makefile
    1.22 +	sed -i 's/man8\/ rfkill\.8\.gz/man8\//' Makefile
    1.23 +	sed -i 's/-m 644 -t/-m 644 rfkill.8.gz/' Makefile
    1.24 +	make && make DESTDIR=$PWD/_pkg install
    1.25 +}
    1.26 +
    1.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.28 +genpkg_rules()
    1.29 +{
    1.30 +	mkdir -p $fs/usr
    1.31 +	cp -a $_pkg/usr/sbin $fs/usr
    1.32 +}