bump wireless-regdb (ill forget, sync in the morning);

This commit is contained in:
Drake 2011-01-28 02:29:43 +00:00
parent c6c1b12160
commit 341c64afc2

View File

@ -1,26 +1,26 @@
# $Id: PKGBUILD 60013 2009-11-30 13:47:29Z thomas $ # $Id$
# Maintainer: Thomas Bächler <thomas@archlinux.org> # Maintainer: Thomas Bächler <thomas@archlinux.org>
pkgname=wireless-regdb pkgname=wireless-regdb
pkgver=2009.11.25 pkgver=2010.11.24
pkgrel=1 pkgrel=1
pkgdesc="Central Regulatory Domain Database" pkgdesc="Central Regulatory Domain Database"
arch=(any) arch=('any')
url="http://wireless.kernel.org/en/developers/Regulatory/CRDA" url="http://wireless.kernel.org/en/developers/Regulatory/CRDA"
backup=(etc/conf.d/wireless-regdom)
license=('custom') license=('custom')
depends=() depends=('sh')
install=wireless-regdb.install install=wireless-regdb.install
source=(http://wireless.kernel.org/download/${pkgname}/${pkgname}-${pkgver}.tar.bz2 source=(http://wireless.kernel.org/download/${pkgname}/${pkgname}-${pkgver}.tar.bz2
crda.conf.d) crda.conf.d)
sha256sums=('b9d569a41f66323339b7aa203db6e2d8f39c98192f134b5eef2135cf09cd943f' sha256sums=('77b33ac88baef36839e777d5e235be160f5c90dfcb058f4e7707f1873d9c73d3'
'192428fd959806705356107bffc97b8b379854e79bd013c4ee140e5202326e2b') '192428fd959806705356107bffc97b8b379854e79bd013c4ee140e5202326e2b')
backup=(etc/conf.d/wireless-regdom)
build() { package() {
# Install and verify regulatory.bin file # Install and verify regulatory.bin file
msg "Installing and verifying the regulatory.bin file ..." msg "Installing and verifying the regulatory.bin file ..."
cd ${srcdir}/${pkgname}-${pkgver} cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install || return 1 make DESTDIR=${pkgdir} install
# If crda is installed, the wireless regdb can be verified using regdbdump # If crda is installed, the wireless regdb can be verified using regdbdump
# Keep this step optional so no depend/makedepend loop is created # Keep this step optional so no depend/makedepend loop is created
if [ -x /sbin/regdbdump ]; then if [ -x /sbin/regdbdump ]; then
@ -35,11 +35,12 @@ build() {
fi fi
msg "Installing /etc/conf.d/wireless-regdom ..." msg "Installing /etc/conf.d/wireless-regdom ..."
install -D -m644 ${srcdir}/crda.conf.d ${pkgdir}/etc/conf.d/wireless-regdom || return 1 install -D -m644 ${srcdir}/crda.conf.d ${pkgdir}/etc/conf.d/wireless-regdom
for dom in $(grep ^country ${srcdir}/${pkgname}-${pkgver}/db.txt | cut -d' ' -f2 | sed 's|:||g'); do for dom in $(grep ^country ${srcdir}/${pkgname}-${pkgver}/db.txt | cut -d' ' -f2 | sed 's|:||g'); do
echo "#WIRELESS_REGDOM=\"${dom}\"" >> ${pkgdir}/etc/conf.d/wireless-regdom.tmp || return 1 echo "#WIRELESS_REGDOM=\"${dom}\"" >> ${pkgdir}/etc/conf.d/wireless-regdom.tmp
done done
sort -u ${pkgdir}/etc/conf.d/wireless-regdom.tmp >> ${pkgdir}/etc/conf.d/wireless-regdom || return 1 sort -u ${pkgdir}/etc/conf.d/wireless-regdom.tmp >> ${pkgdir}/etc/conf.d/wireless-regdom
rm -f ${pkgdir}/etc/conf.d/wireless-regdom.tmp || return 1 rm -f ${pkgdir}/etc/conf.d/wireless-regdom.tmp
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
} }