crda: proper cleanup
This commit is contained in:
parent
5cce250d72
commit
df32132df4
|
@ -1,6 +1,6 @@
|
|||
https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/crda/trunk/crda-4.14-python-3.patch
|
||||
--- a/utils/key2pub.py
|
||||
+++ b/utils/key2pub.py
|
||||
--- a/crda/utils/key2pub.py
|
||||
+++ b/crda/utils/key2pub.py
|
||||
@@ -1,22 +1,22 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
|
|
|
@ -4,7 +4,8 @@ version=4.14
|
|||
revision=2
|
||||
_dbname=wireless-regdb
|
||||
_dbversion=2020.11.20
|
||||
_dbsrc="${XBPS_BUILDDIR}/${_dbname}-${_dbversion}/"
|
||||
create_wrksrc=yes
|
||||
build_wrksrc="crda"
|
||||
hostmakedepends="openssl python3-M2Crypto pkg-config"
|
||||
makedepends="libnl-devel libgcrypt-devel"
|
||||
depends="iw"
|
||||
|
@ -21,7 +22,9 @@ conf_files="/etc/wireless-regdom.conf"
|
|||
build_options="wardrive"
|
||||
desc_option_wardrive="Disable CRDA checks for wardriving competitions"
|
||||
|
||||
_dbsrc="../${_dbname}-${_dbversion}/"
|
||||
post_extract() {
|
||||
mv crda-$version crda
|
||||
if [ "$build_option_wardrive" ]; then
|
||||
sed -i 's/([0-9][0-9])/(33)/g' ${_dbsrc}/db.txt # Max 2W =~ 33dBm
|
||||
fi
|
||||
|
@ -29,10 +32,8 @@ post_extract() {
|
|||
|
||||
do_build() {
|
||||
CFLAGS+=" -Wno-unused-const-variable"
|
||||
cd ${_dbsrc}
|
||||
cp *.pub.pem ${wrksrc}/pubkeys
|
||||
cp ${_dbsrc}/*.pub.pem pubkeys
|
||||
|
||||
cd ${wrksrc}
|
||||
make CC="$CC" all_noverify
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue