# HG changeset patch # User Hans-G?nter Theisgen # Date 1658153010 -3600 # Node ID e8c82c47df0148994a7b4eeb769ee28a10d78644 # Parent 65021c2417fe3da9a6c8cf2b9927b91ed34d633b updated rfkill (0.5 -> 1.0) diff -r 65021c2417fe -r e8c82c47df01 rfkill/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rfkill/description.txt Mon Jul 18 15:03:30 2022 +0100 @@ -0,0 +1,10 @@ +Rfkill is a small userspace tool to query the state of the rfkill switches, +buttons and subsystem interfaces. +Some devices come with a hard switch that lets you kill different types of +RF radios: 802.11, Bluetooth, NFC, UWB, WAN, WIMAX, FM. +Some times these buttons may kill more than one RF type. +The Linux kernel rfkill subsystem exposes these hardware buttons and lets +userspace query its status and set its status through a /dev/rfkill. +Given that at times some RF devices do not have hardware rfkill buttons +rfkill the Linux kernel also exposes software rfkill capabilities that +allows userspace to mimic a hardware rfkill event and turn on or off RF. diff -r 65021c2417fe -r e8c82c47df01 rfkill/receipt --- a/rfkill/receipt Mon Jul 18 14:55:21 2022 +0100 +++ b/rfkill/receipt Mon Jul 18 15:03:30 2022 +0100 @@ -1,19 +1,21 @@ # SliTaz package receipt. PACKAGE="rfkill" -VERSION="0.5" +VERSION="1.0" CATEGORY="system-tools" -SHORT_DESC="Utility to query the state of the rfkill switches" +TAGS="kernel" +SHORT_DESC="Utility to query the state of the rfkill switches." MAINTAINER="slaxemulator@gmail.com" LICENSE="MIT" +WEB_SITE="https://wireless.wiki.kernel.org/en/users/Documentation/rfkill" + TARBALL="$PACKAGE-$VERSION.tar.xz" -WEB_SITE="https://wireless.wiki.kernel.org/en/users/Documentation/rfkill" WGET_URL="https://www.kernel.org/pub/software/network/rfkill/$TARBALL" -TAGS="kernel" + +BUILD_DEPENDS="" + HOST_ARCH="i486 arm" -BUILD_DEPENDS="wget" - # What is the latest version available today? current_version() { @@ -24,16 +26,16 @@ # Rules to configure and make the package. compile_rules() { - sed -i 's/BINDIR) rfkill/BINDIR)/' Makefile - sed -i 's/-m 755 -t/-m 755 rfkill/' Makefile - sed -i 's/man8\/ rfkill\.8\.gz/man8\//' Makefile - sed -i 's/-m 644 -t/-m 644 rfkill.8.gz/' Makefile - make && make DESTDIR=$DESTDIR install + sed -i -e 's/BINDIR) rfkill/BINDIR)/' \ + -e 's|-m 755 -t|-m 755 rfkill|' \ + -e 's|man8/ rfkill\.8\.gz|man8/|' \ + -e 's|-m 644 -t|-m 644 rfkill.8.gz|' Makefile + make && + make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr - cp -a $install/usr/sbin $fs/usr + cook_copy_folders sbin }