summaryrefslogtreecommitdiffstats
path: root/abs/extra/crda/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2014-02-17 00:03:35 (GMT)
committerJames Meyer <james.meyer@operamail.com>2014-02-19 19:03:05 (GMT)
commit8757317b405200fa7d06fafbf1c3e9993e4015d3 (patch)
tree42d8dae2be10a9c5d9e969a1c4056c1333fe3762 /abs/extra/crda/PKGBUILD
parenta9abd6237a047a63b9bcf75b90055cb4321dd0f6 (diff)
downloadlinhes_pkgbuild-8757317b405200fa7d06fafbf1c3e9993e4015d3.zip
linhes_pkgbuild-8757317b405200fa7d06fafbf1c3e9993e4015d3.tar.gz
linhes_pkgbuild-8757317b405200fa7d06fafbf1c3e9993e4015d3.tar.bz2
crda: 1.1.3
update binary path to /usr/bin refs #961
Diffstat (limited to 'abs/extra/crda/PKGBUILD')
-rw-r--r--abs/extra/crda/PKGBUILD26
1 files changed, 13 insertions, 13 deletions
diff --git a/abs/extra/crda/PKGBUILD b/abs/extra/crda/PKGBUILD
index 88ad6cc..2f4f1c2 100644
--- a/abs/extra/crda/PKGBUILD
+++ b/abs/extra/crda/PKGBUILD
@@ -1,25 +1,21 @@
-# $Id: PKGBUILD 158615 2012-05-05 03:17:06Z allan $
+# $Id: PKGBUILD 186207 2013-05-22 04:47:50Z foutrelis $
# Maintainer: Thomas Bächler <thomas@archlinux.org>
pkgname=crda
-pkgver=1.1.2
-pkgrel=3
+pkgver=1.1.3
+pkgrel=2
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' 'udev' 'iw')
+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
- crda.rc libnl32.patch)
-md5sums=('5226f65aebacf94baaf820f8b4e06df4'
- '014eef3f8655e9a130064ec6891317fc'
- 'c1f7aff29f15a0364ae6f7905a1d4ae6')
-
+ set-wireless-regdom)
+
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
}
@@ -27,11 +23,15 @@ build() {
package() {
# Install crda, regdbdump and udev rules
cd "${srcdir}"/${pkgname}-${pkgver}
- make DESTDIR="${pkgdir}" UDEV_RULE_DIR=/usr/lib/udev/rules.d/ install
+ 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+="/etc/rc.d/wireless-regdom start >/dev/null"' >> "${pkgdir}"/usr/lib/udev/rules.d/85-regulatory.rules
+ 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}"/crda.rc "${pkgdir}"/etc/rc.d/wireless-regdom
+ install -D -m755 "${srcdir}"/set-wireless-regdom "${pkgdir}"/usr/bin/set-wireless-regdom
}
+md5sums=('29579185e06a75675507527243d28e5c'
+ '65c93f2ff2eb1b29d9e9fa102ae2dd45')