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