[arch-commits] Commit in rfkill/repos (14 files)

Gaetan Bisson bisson at archlinux.org
Sun Nov 11 21:57:56 UTC 2012


    Date: Sunday, November 11, 2012 @ 16:57:56
  Author: bisson
Revision: 170800

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  rfkill/repos/testing-i686/
  rfkill/repos/testing-i686/PKGBUILD
    (from rev 170799, rfkill/trunk/PKGBUILD)
  rfkill/repos/testing-i686/conf.d
    (from rev 170799, rfkill/trunk/conf.d)
  rfkill/repos/testing-i686/rc.d
    (from rev 170799, rfkill/trunk/rc.d)
  rfkill/repos/testing-i686/rules.d
    (from rev 170799, rfkill/trunk/rules.d)
  rfkill/repos/testing-i686/service.block
    (from rev 170799, rfkill/trunk/service.block)
  rfkill/repos/testing-i686/service.unblock
    (from rev 170799, rfkill/trunk/service.unblock)
  rfkill/repos/testing-x86_64/
  rfkill/repos/testing-x86_64/PKGBUILD
    (from rev 170799, rfkill/trunk/PKGBUILD)
  rfkill/repos/testing-x86_64/conf.d
    (from rev 170799, rfkill/trunk/conf.d)
  rfkill/repos/testing-x86_64/rc.d
    (from rev 170799, rfkill/trunk/rc.d)
  rfkill/repos/testing-x86_64/rules.d
    (from rev 170799, rfkill/trunk/rules.d)
  rfkill/repos/testing-x86_64/service.block
    (from rev 170799, rfkill/trunk/service.block)
  rfkill/repos/testing-x86_64/service.unblock
    (from rev 170799, rfkill/trunk/service.unblock)

--------------------------------+
 testing-i686/PKGBUILD          |   42 +++++++++++++++++++++++++++++++++++++++
 testing-i686/conf.d            |   20 ++++++++++++++++++
 testing-i686/rc.d              |   38 +++++++++++++++++++++++++++++++++++
 testing-i686/rules.d           |    1 
 testing-i686/service.block     |   11 ++++++++++
 testing-i686/service.unblock   |   11 ++++++++++
 testing-x86_64/PKGBUILD        |   42 +++++++++++++++++++++++++++++++++++++++
 testing-x86_64/conf.d          |   20 ++++++++++++++++++
 testing-x86_64/rc.d            |   38 +++++++++++++++++++++++++++++++++++
 testing-x86_64/rules.d         |    1 
 testing-x86_64/service.block   |   11 ++++++++++
 testing-x86_64/service.unblock |   11 ++++++++++
 12 files changed, 246 insertions(+)

Copied: rfkill/repos/testing-i686/PKGBUILD (from rev 170799, rfkill/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2012-11-11 21:57:56 UTC (rev 170800)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Thomas Bächler <thomas at archlinux.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+
+pkgname=rfkill
+pkgver=0.4
+pkgrel=6
+pkgdesc='Tool for enabling and disabling wireless devices'
+url='http://linuxwireless.org/en/users/Documentation/rfkill'
+license=('custom')
+arch=('i686' 'x86_64')
+source=("http://wireless.kernel.org/download/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
+        'service.unblock'
+        'service.block'
+        'rules.d'
+        'conf.d'
+        'rc.d')
+sha1sums=('fccabf5a272ac2891f24dc35449dc6f4c45ff44b'
+          '8b4f0effcad564e929cf65c50773881d1209e54b'
+          '10febfa26656bc395aeca477d4d44a1e0482375c'
+          '6390eaa793b473098aaa11b13c5254d611a4c13a'
+          'd969fe927a9fb2926af43a311a7c1fa126fe59a9'
+          '380af0b002f51543557306ed68a27f0059fd5a6f')
+
+backup=('etc/conf.d/rfkill')
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make DESTDIR="${pkgdir}" install
+	install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+	install -Dm644 ../rules.d "${pkgdir}/usr/lib/udev/rules.d/60-rfkill.rules"
+	install -Dm644 ../service.block "${pkgdir}/usr/lib/systemd/system/rfkill-block at .service"
+	install -Dm644 ../service.unblock "${pkgdir}/usr/lib/systemd/system/rfkill-unblock at .service"
+	install -Dm644 ../conf.d "${pkgdir}/etc/conf.d/rfkill"
+	install -Dm755 ../rc.d "${pkgdir}/etc/rc.d/rfkill"
+}

Copied: rfkill/repos/testing-i686/conf.d (from rev 170799, rfkill/trunk/conf.d)
===================================================================
--- testing-i686/conf.d	                        (rev 0)
+++ testing-i686/conf.d	2012-11-11 21:57:56 UTC (rev 170800)
@@ -0,0 +1,20 @@
+#
+# /etc/conf.d/rfkill
+# Configuration for the rfkill startup script
+#
+
+# List of devices to block on startup (space-separated)
+RFKILL_BLOCK=""
+
+# List of devices to unblock on startup (space-separated)
+RFKILL_UNBLOCK="all"
+
+# Supported device names are: all, wifi, bluetooth, umb, wimax, wwan, gps and specific device names like phy0, hci0, ...
+# See "rfkill list" for available devices
+# Examples:
+#
+# Block all bluetooth devices:
+# RFKILL_BLOCK="bluetooth"
+#
+# Unblock the phy0 wifi device and all wwan devices:
+# RFKILL_UNBLOCK="phy0 wwan"

Copied: rfkill/repos/testing-i686/rc.d (from rev 170799, rfkill/trunk/rc.d)
===================================================================
--- testing-i686/rc.d	                        (rev 0)
+++ testing-i686/rc.d	2012-11-11 21:57:56 UTC (rev 170800)
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/conf.d/rfkill
+
+case "$1" in
+  start)
+    for device in ${RFKILL_BLOCK}; do
+      stat_busy "Blocking rfkill device: ${device}"
+      /usr/sbin/rfkill block ${device}
+      if [ $? -eq 0 ]; then
+        stat_done
+      else
+        stat_fail
+      fi
+    done
+    for device in ${RFKILL_UNBLOCK}; do
+      stat_busy "Unblocking rfkill device: ${device}"
+      /usr/sbin/rfkill unblock ${device}
+      if [ $? -eq 0 ]; then
+        stat_done
+      else
+        stat_fail
+      fi
+    done
+    ;;
+  stop)
+    ;;
+  restart)
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start}"
+    exit 1
+    ;;
+esac
+exit 0

Copied: rfkill/repos/testing-i686/rules.d (from rev 170799, rfkill/trunk/rules.d)
===================================================================
--- testing-i686/rules.d	                        (rev 0)
+++ testing-i686/rules.d	2012-11-11 21:57:56 UTC (rev 170800)
@@ -0,0 +1 @@
+KERNEL=="rfkill", GROUP="rfkill", MODE="0664"

Copied: rfkill/repos/testing-i686/service.block (from rev 170799, rfkill/trunk/service.block)
===================================================================
--- testing-i686/service.block	                        (rev 0)
+++ testing-i686/service.block	2012-11-11 21:57:56 UTC (rev 170800)
@@ -0,0 +1,11 @@
+[Unit]
+Description=RFKill-Block %I
+After=rfkill-unblock at all.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/sbin/rfkill block %I
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target

Copied: rfkill/repos/testing-i686/service.unblock (from rev 170799, rfkill/trunk/service.unblock)
===================================================================
--- testing-i686/service.unblock	                        (rev 0)
+++ testing-i686/service.unblock	2012-11-11 21:57:56 UTC (rev 170800)
@@ -0,0 +1,11 @@
+[Unit]
+Description=RFKill-Unblock %I
+After=rfkill-block at all.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/sbin/rfkill unblock %I
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target

Copied: rfkill/repos/testing-x86_64/PKGBUILD (from rev 170799, rfkill/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2012-11-11 21:57:56 UTC (rev 170800)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Thomas Bächler <thomas at archlinux.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+
+pkgname=rfkill
+pkgver=0.4
+pkgrel=6
+pkgdesc='Tool for enabling and disabling wireless devices'
+url='http://linuxwireless.org/en/users/Documentation/rfkill'
+license=('custom')
+arch=('i686' 'x86_64')
+source=("http://wireless.kernel.org/download/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
+        'service.unblock'
+        'service.block'
+        'rules.d'
+        'conf.d'
+        'rc.d')
+sha1sums=('fccabf5a272ac2891f24dc35449dc6f4c45ff44b'
+          '8b4f0effcad564e929cf65c50773881d1209e54b'
+          '10febfa26656bc395aeca477d4d44a1e0482375c'
+          '6390eaa793b473098aaa11b13c5254d611a4c13a'
+          'd969fe927a9fb2926af43a311a7c1fa126fe59a9'
+          '380af0b002f51543557306ed68a27f0059fd5a6f')
+
+backup=('etc/conf.d/rfkill')
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make DESTDIR="${pkgdir}" install
+	install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+	install -Dm644 ../rules.d "${pkgdir}/usr/lib/udev/rules.d/60-rfkill.rules"
+	install -Dm644 ../service.block "${pkgdir}/usr/lib/systemd/system/rfkill-block at .service"
+	install -Dm644 ../service.unblock "${pkgdir}/usr/lib/systemd/system/rfkill-unblock at .service"
+	install -Dm644 ../conf.d "${pkgdir}/etc/conf.d/rfkill"
+	install -Dm755 ../rc.d "${pkgdir}/etc/rc.d/rfkill"
+}

Copied: rfkill/repos/testing-x86_64/conf.d (from rev 170799, rfkill/trunk/conf.d)
===================================================================
--- testing-x86_64/conf.d	                        (rev 0)
+++ testing-x86_64/conf.d	2012-11-11 21:57:56 UTC (rev 170800)
@@ -0,0 +1,20 @@
+#
+# /etc/conf.d/rfkill
+# Configuration for the rfkill startup script
+#
+
+# List of devices to block on startup (space-separated)
+RFKILL_BLOCK=""
+
+# List of devices to unblock on startup (space-separated)
+RFKILL_UNBLOCK="all"
+
+# Supported device names are: all, wifi, bluetooth, umb, wimax, wwan, gps and specific device names like phy0, hci0, ...
+# See "rfkill list" for available devices
+# Examples:
+#
+# Block all bluetooth devices:
+# RFKILL_BLOCK="bluetooth"
+#
+# Unblock the phy0 wifi device and all wwan devices:
+# RFKILL_UNBLOCK="phy0 wwan"

Copied: rfkill/repos/testing-x86_64/rc.d (from rev 170799, rfkill/trunk/rc.d)
===================================================================
--- testing-x86_64/rc.d	                        (rev 0)
+++ testing-x86_64/rc.d	2012-11-11 21:57:56 UTC (rev 170800)
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/conf.d/rfkill
+
+case "$1" in
+  start)
+    for device in ${RFKILL_BLOCK}; do
+      stat_busy "Blocking rfkill device: ${device}"
+      /usr/sbin/rfkill block ${device}
+      if [ $? -eq 0 ]; then
+        stat_done
+      else
+        stat_fail
+      fi
+    done
+    for device in ${RFKILL_UNBLOCK}; do
+      stat_busy "Unblocking rfkill device: ${device}"
+      /usr/sbin/rfkill unblock ${device}
+      if [ $? -eq 0 ]; then
+        stat_done
+      else
+        stat_fail
+      fi
+    done
+    ;;
+  stop)
+    ;;
+  restart)
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start}"
+    exit 1
+    ;;
+esac
+exit 0

Copied: rfkill/repos/testing-x86_64/rules.d (from rev 170799, rfkill/trunk/rules.d)
===================================================================
--- testing-x86_64/rules.d	                        (rev 0)
+++ testing-x86_64/rules.d	2012-11-11 21:57:56 UTC (rev 170800)
@@ -0,0 +1 @@
+KERNEL=="rfkill", GROUP="rfkill", MODE="0664"

Copied: rfkill/repos/testing-x86_64/service.block (from rev 170799, rfkill/trunk/service.block)
===================================================================
--- testing-x86_64/service.block	                        (rev 0)
+++ testing-x86_64/service.block	2012-11-11 21:57:56 UTC (rev 170800)
@@ -0,0 +1,11 @@
+[Unit]
+Description=RFKill-Block %I
+After=rfkill-unblock at all.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/sbin/rfkill block %I
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target

Copied: rfkill/repos/testing-x86_64/service.unblock (from rev 170799, rfkill/trunk/service.unblock)
===================================================================
--- testing-x86_64/service.unblock	                        (rev 0)
+++ testing-x86_64/service.unblock	2012-11-11 21:57:56 UTC (rev 170800)
@@ -0,0 +1,11 @@
+[Unit]
+Description=RFKill-Unblock %I
+After=rfkill-block at all.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/sbin/rfkill unblock %I
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target




More information about the arch-commits mailing list