wok rev 25279

updated rfkill (0.5 -> 1.0)
author Hans-G?nter Theisgen
date Mon Jul 18 15:03:30 2022 +0100 (23 months ago)
parents 65021c2417fe
children 2151e1e3c336
files rfkill/description.txt rfkill/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rfkill/description.txt	Mon Jul 18 15:03:30 2022 +0100
     1.3 @@ -0,0 +1,10 @@
     1.4 +Rfkill is a small userspace tool to query the state of the rfkill switches,
     1.5 +buttons and subsystem interfaces.
     1.6 +Some devices come with a hard switch that lets you kill different types of
     1.7 +RF radios: 802.11, Bluetooth, NFC, UWB, WAN, WIMAX, FM.
     1.8 +Some times these buttons may kill more than one RF type.
     1.9 +The Linux kernel rfkill subsystem exposes these hardware buttons and lets
    1.10 +userspace query its status and set its status through a /dev/rfkill.
    1.11 +Given that at times some RF devices do not have hardware rfkill buttons
    1.12 +rfkill the Linux kernel also exposes software rfkill capabilities that
    1.13 +allows userspace to mimic a hardware rfkill event and turn on or off RF.
     2.1 --- a/rfkill/receipt	Mon Jul 18 14:55:21 2022 +0100
     2.2 +++ b/rfkill/receipt	Mon Jul 18 15:03:30 2022 +0100
     2.3 @@ -1,19 +1,21 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="rfkill"
     2.7 -VERSION="0.5"
     2.8 +VERSION="1.0"
     2.9  CATEGORY="system-tools"
    2.10 -SHORT_DESC="Utility to query the state of the rfkill switches"
    2.11 +TAGS="kernel"
    2.12 +SHORT_DESC="Utility to query the state of the rfkill switches."
    2.13  MAINTAINER="slaxemulator@gmail.com"
    2.14  LICENSE="MIT"
    2.15 +WEB_SITE="https://wireless.wiki.kernel.org/en/users/Documentation/rfkill"
    2.16 +
    2.17  TARBALL="$PACKAGE-$VERSION.tar.xz"
    2.18 -WEB_SITE="https://wireless.wiki.kernel.org/en/users/Documentation/rfkill"
    2.19  WGET_URL="https://www.kernel.org/pub/software/network/rfkill/$TARBALL"
    2.20 -TAGS="kernel"
    2.21 +
    2.22 +BUILD_DEPENDS=""
    2.23 +
    2.24  HOST_ARCH="i486 arm"
    2.25  
    2.26 -BUILD_DEPENDS="wget"
    2.27 -
    2.28  # What is the latest version available today?
    2.29  current_version()
    2.30  {
    2.31 @@ -24,16 +26,16 @@
    2.32  # Rules to configure and make the package.
    2.33  compile_rules()
    2.34  {
    2.35 -	sed -i 's/BINDIR) rfkill/BINDIR)/' Makefile
    2.36 -	sed -i 's/-m 755 -t/-m 755 rfkill/' Makefile
    2.37 -	sed -i 's/man8\/ rfkill\.8\.gz/man8\//' Makefile
    2.38 -	sed -i 's/-m 644 -t/-m 644 rfkill.8.gz/' Makefile
    2.39 -	make && make DESTDIR=$DESTDIR install
    2.40 +	sed -i	-e 's/BINDIR) rfkill/BINDIR)/' \
    2.41 +		-e 's|-m 755 -t|-m 755 rfkill|' \
    2.42 +		-e 's|man8/ rfkill\.8\.gz|man8/|' \
    2.43 +		-e 's|-m 644 -t|-m 644 rfkill.8.gz|'	Makefile
    2.44 +	make &&
    2.45 +	make install DESTDIR=$DESTDIR
    2.46  }
    2.47  
    2.48  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.49  genpkg_rules()
    2.50  {
    2.51 -	mkdir -p $fs/usr
    2.52 -	cp -a $install/usr/sbin $fs/usr
    2.53 +	cook_copy_folders	sbin
    2.54  }