diff options
author | root <root@rshg047.dnsready.net> | 2011-04-13 04:53:33 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-04-13 04:53:33 +0000 |
commit | 6dab5c46b00f624c7900ff6d11b75bcafbe251d0 (patch) | |
tree | 3f4cd3c5e20b03bbad9955444c32083ddd92b422 /core/crda | |
parent | 28b5bbf3fee0627993658e096eadab71c2779912 (diff) |
Wed Apr 13 04:53:33 UTC 2011
Diffstat (limited to 'core/crda')
-rw-r--r-- | core/crda/PKGBUILD | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/core/crda/PKGBUILD b/core/crda/PKGBUILD index 4fbb20111..18a85717c 100644 --- a/core/crda/PKGBUILD +++ b/core/crda/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 79865 2010-05-08 15:22:52Z thomas $ +# $Id: PKGBUILD 117670 2011-04-04 15:42:36Z stephane $ # Maintainer: Thomas Bächler <thomas@archlinux.org> pkgname=crda pkgver=1.1.1 -pkgrel=1 -pkgdesc="Central Regulatory Domain Agent" +pkgrel=3 +pkgdesc="Central Regulatory Domain Agent for wireless networks" arch=(i686 x86_64) url="http://wireless.kernel.org/en/developers/Regulatory/CRDA" license=('custom') @@ -17,17 +17,23 @@ md5sums=('5fc77af68b3e21736b8ef2f8b061c810' '014eef3f8655e9a130064ec6891317fc') build() { + msg "Compiling crda ..." + cd "${srcdir}"/${pkgname}-${pkgver} + sed 's|^#!/usr/bin/env python|#!/usr/bin/python2|' -i utils/key2pub.py + make crda regdbdump +} + +package() { # Install crda, regdbdump and udev rules - msg "Compiling and installing crda ..." - cd ${srcdir}/${pkgname}-${pkgver} - make crda regdbdump || return 1 - make DESTDIR=${pkgdir} install || return 1 + msg "Installing crda ..." + cd "${srcdir}"/${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install # 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}/lib/udev/rules.d/85-regulatory.rules || return 1 + echo 'ACTION=="add" SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/etc/rc.d/wireless-regdom start >/dev/null"' >> "${pkgdir}"/lib/udev/rules.d/85-regulatory.rules msg "Installing license ..." - install -D -m644 ${srcdir}/${pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/crda/LICENSE || return 1 + install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/LICENSE "${pkgdir}"/usr/share/licenses/crda/LICENSE msg "Installing boot script ..." - install -D -m755 ${srcdir}/crda.rc ${pkgdir}/etc/rc.d/wireless-regdom || return 1 + install -D -m755 "${srcdir}"/crda.rc "${pkgdir}"/etc/rc.d/wireless-regdom } |