[arch-commits] Commit in crda/repos (10 files)

Thomas Bächler thomas at archlinux.org
Thu Aug 23 18:09:20 UTC 2012


    Date: Thursday, August 23, 2012 @ 14:09:19
  Author: thomas
Revision: 165554

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

Added:
  crda/repos/testing-i686/
  crda/repos/testing-i686/PKGBUILD
    (from rev 165553, crda/trunk/PKGBUILD)
  crda/repos/testing-i686/crda.install
    (from rev 165553, crda/trunk/crda.install)
  crda/repos/testing-i686/libnl32.patch
    (from rev 165553, crda/trunk/libnl32.patch)
  crda/repos/testing-i686/set-wireless-regdom
    (from rev 165553, crda/trunk/set-wireless-regdom)
  crda/repos/testing-x86_64/
  crda/repos/testing-x86_64/PKGBUILD
    (from rev 165553, crda/trunk/PKGBUILD)
  crda/repos/testing-x86_64/crda.install
    (from rev 165553, crda/trunk/crda.install)
  crda/repos/testing-x86_64/libnl32.patch
    (from rev 165553, crda/trunk/libnl32.patch)
  crda/repos/testing-x86_64/set-wireless-regdom
    (from rev 165553, crda/trunk/set-wireless-regdom)

------------------------------------+
 testing-i686/PKGBUILD              |   40 +++++++++++++++++++++++++++++++++++
 testing-i686/crda.install          |    5 ++++
 testing-i686/libnl32.patch         |   12 ++++++++++
 testing-i686/set-wireless-regdom   |    5 ++++
 testing-x86_64/PKGBUILD            |   40 +++++++++++++++++++++++++++++++++++
 testing-x86_64/crda.install        |    5 ++++
 testing-x86_64/libnl32.patch       |   12 ++++++++++
 testing-x86_64/set-wireless-regdom |    5 ++++
 8 files changed, 124 insertions(+)

Copied: crda/repos/testing-i686/PKGBUILD (from rev 165553, crda/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2012-08-23 18:09:19 UTC (rev 165554)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=crda
+pkgver=1.1.2
+pkgrel=4
+pkgdesc="Central Regulatory Domain Agent for wireless networks"
+arch=(i686 x86_64)
+url="http://wireless.kernel.org/en/developers/Regulatory/CRDA"
+license=('custom')
+depends=('wireless-regdb' 'libnl' 'libgcrypt' 'systemd-tools' 'iw')
+makedepends=('python-m2crypto')
+install=crda.install
+source=(http://wireless.kernel.org/download/crda/${pkgname}-${pkgver}.tar.bz2
+        set-wireless-regdom
+        libnl32.patch)
+md5sums=('5226f65aebacf94baaf820f8b4e06df4'
+         '65c93f2ff2eb1b29d9e9fa102ae2dd45'
+         'c1f7aff29f15a0364ae6f7905a1d4ae6')
+                  
+build() {
+  cd "${srcdir}"/${pkgname}-${pkgver}
+  patch -Np1 -i "$srcdir/libnl32.patch"
+  sed 's|^#!/usr/bin/env python|#!/usr/bin/python2|' -i utils/key2pub.py
+  make crda regdbdump
+}
+
+package() {
+  # Install crda, regdbdump and udev rules
+  cd "${srcdir}"/${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" UDEV_RULE_DIR=/usr/lib/udev/rules.d/ SBINDIR=/usr/bin/ install
+  # Adjust paths in udev rule file
+  sed 's|/sbin/crda|/usr/bin/crda|' -i "${pkgdir}"/usr/lib/udev/rules.d/85-regulatory.rules
+  # This rule automatically sets the regulatory domain when cfg80211 is loaded
+  echo 'ACTION=="add" SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/usr/bin/set-wireless-regdom"' >> "${pkgdir}"/usr/lib/udev/rules.d/85-regulatory.rules
+
+  install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/LICENSE "${pkgdir}"/usr/share/licenses/crda/LICENSE
+  
+  install -D -m755 "${srcdir}"/set-wireless-regdom "${pkgdir}"/usr/bin/set-wireless-regdom
+}

Copied: crda/repos/testing-i686/crda.install (from rev 165553, crda/trunk/crda.install)
===================================================================
--- testing-i686/crda.install	                        (rev 0)
+++ testing-i686/crda.install	2012-08-23 18:09:19 UTC (rev 165554)
@@ -0,0 +1,5 @@
+## arg 1:  the new package version
+post_install() {
+  echo "Uncomment the right regulatory domain in /etc/conf.d/wireless-regdom."
+  echo "It will automatically be set on boot."
+}

Copied: crda/repos/testing-i686/libnl32.patch (from rev 165553, crda/trunk/libnl32.patch)
===================================================================
--- testing-i686/libnl32.patch	                        (rev 0)
+++ testing-i686/libnl32.patch	2012-08-23 18:09:19 UTC (rev 165554)
@@ -0,0 +1,12 @@
+diff -u -r crda-1.1.2/Makefile crda-1.1.2-libnl32/Makefile
+--- crda-1.1.2/Makefile	2011-08-10 01:36:19.000000000 +0200
++++ crda-1.1.2-libnl32/Makefile	2012-02-09 18:53:33.376430180 +0100
+@@ -51,7 +51,7 @@
+ 
+ ifeq ($(NL3FOUND),Y)
+ CFLAGS += -DCONFIG_LIBNL30
+-NLLIBS += -lnl-genl
++NLLIBS += $(shell pkg-config --libs libnl-genl-3.0)
+ NLLIBNAME = libnl-3.0
+ else
+ 	ifeq ($(NL2FOUND),Y)

Copied: crda/repos/testing-i686/set-wireless-regdom (from rev 165553, crda/trunk/set-wireless-regdom)
===================================================================
--- testing-i686/set-wireless-regdom	                        (rev 0)
+++ testing-i686/set-wireless-regdom	2012-08-23 18:09:19 UTC (rev 165554)
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+unset WIRELESS_REGDOM
+. /etc/conf.d/wireless-regdom
+[ -n "${WIRELESS_REGDOM}" ] && iw reg set ${WIRELESS_REGDOM}

Copied: crda/repos/testing-x86_64/PKGBUILD (from rev 165553, crda/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2012-08-23 18:09:19 UTC (rev 165554)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=crda
+pkgver=1.1.2
+pkgrel=4
+pkgdesc="Central Regulatory Domain Agent for wireless networks"
+arch=(i686 x86_64)
+url="http://wireless.kernel.org/en/developers/Regulatory/CRDA"
+license=('custom')
+depends=('wireless-regdb' 'libnl' 'libgcrypt' 'systemd-tools' 'iw')
+makedepends=('python-m2crypto')
+install=crda.install
+source=(http://wireless.kernel.org/download/crda/${pkgname}-${pkgver}.tar.bz2
+        set-wireless-regdom
+        libnl32.patch)
+md5sums=('5226f65aebacf94baaf820f8b4e06df4'
+         '65c93f2ff2eb1b29d9e9fa102ae2dd45'
+         'c1f7aff29f15a0364ae6f7905a1d4ae6')
+                  
+build() {
+  cd "${srcdir}"/${pkgname}-${pkgver}
+  patch -Np1 -i "$srcdir/libnl32.patch"
+  sed 's|^#!/usr/bin/env python|#!/usr/bin/python2|' -i utils/key2pub.py
+  make crda regdbdump
+}
+
+package() {
+  # Install crda, regdbdump and udev rules
+  cd "${srcdir}"/${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" UDEV_RULE_DIR=/usr/lib/udev/rules.d/ SBINDIR=/usr/bin/ install
+  # Adjust paths in udev rule file
+  sed 's|/sbin/crda|/usr/bin/crda|' -i "${pkgdir}"/usr/lib/udev/rules.d/85-regulatory.rules
+  # This rule automatically sets the regulatory domain when cfg80211 is loaded
+  echo 'ACTION=="add" SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/usr/bin/set-wireless-regdom"' >> "${pkgdir}"/usr/lib/udev/rules.d/85-regulatory.rules
+
+  install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/LICENSE "${pkgdir}"/usr/share/licenses/crda/LICENSE
+  
+  install -D -m755 "${srcdir}"/set-wireless-regdom "${pkgdir}"/usr/bin/set-wireless-regdom
+}

Copied: crda/repos/testing-x86_64/crda.install (from rev 165553, crda/trunk/crda.install)
===================================================================
--- testing-x86_64/crda.install	                        (rev 0)
+++ testing-x86_64/crda.install	2012-08-23 18:09:19 UTC (rev 165554)
@@ -0,0 +1,5 @@
+## arg 1:  the new package version
+post_install() {
+  echo "Uncomment the right regulatory domain in /etc/conf.d/wireless-regdom."
+  echo "It will automatically be set on boot."
+}

Copied: crda/repos/testing-x86_64/libnl32.patch (from rev 165553, crda/trunk/libnl32.patch)
===================================================================
--- testing-x86_64/libnl32.patch	                        (rev 0)
+++ testing-x86_64/libnl32.patch	2012-08-23 18:09:19 UTC (rev 165554)
@@ -0,0 +1,12 @@
+diff -u -r crda-1.1.2/Makefile crda-1.1.2-libnl32/Makefile
+--- crda-1.1.2/Makefile	2011-08-10 01:36:19.000000000 +0200
++++ crda-1.1.2-libnl32/Makefile	2012-02-09 18:53:33.376430180 +0100
+@@ -51,7 +51,7 @@
+ 
+ ifeq ($(NL3FOUND),Y)
+ CFLAGS += -DCONFIG_LIBNL30
+-NLLIBS += -lnl-genl
++NLLIBS += $(shell pkg-config --libs libnl-genl-3.0)
+ NLLIBNAME = libnl-3.0
+ else
+ 	ifeq ($(NL2FOUND),Y)

Copied: crda/repos/testing-x86_64/set-wireless-regdom (from rev 165553, crda/trunk/set-wireless-regdom)
===================================================================
--- testing-x86_64/set-wireless-regdom	                        (rev 0)
+++ testing-x86_64/set-wireless-regdom	2012-08-23 18:09:19 UTC (rev 165554)
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+unset WIRELESS_REGDOM
+. /etc/conf.d/wireless-regdom
+[ -n "${WIRELESS_REGDOM}" ] && iw reg set ${WIRELESS_REGDOM}




More information about the arch-commits mailing list