You are not logged in.

#1 2020-09-29 00:29:49

loqs
Member
Registered: 2014-03-06
Posts: 17,197

PKGBUILD review request: wireless-regdb

PKGBUILD

# Maintainer: Thomas Bächler <thomas@archlinux.org>

pkgname=wireless-regdb
pkgver=2020.04.29
pkgrel=1
pkgdesc="Central Regulatory Domain Database"
arch=('any')
url="https://wireless.kernel.org/en/developers/Regulatory"
license=('custom')
depends=('bash' 'iw')
provides=('crda')
conflicts=('crda<=4.14-3')
replaces=('crda<=4.14-3')
backup=(etc/conf.d/wireless-regdom)
source=(https://www.kernel.org/pub/software/network/wireless-regdb/${pkgname}-${pkgver}.tar.{xz,sign}
        wireless-regdom
        set-wireless-regdom
        85-regulatory.rules)
sha256sums=('89fd031aed5977c219a71501e144375a10e7c90d1005d5d086ea7972886a2c7a'
            'SKIP'
            '192428fd959806705356107bffc97b8b379854e79bd013c4ee140e5202326e2b'
            '603ce97da5cce3f5337e99007ce04e2f295bb33a36b308794884011f7bcabaf3'
            'f5055dfe7584757a11b419836320bcdcd1d3d1e5caf26e20c63a0c64779f3376')
validpgpkeys=('2ABCA7498D83E1D32D51D3B5AB4800A62DB9F73A') #Seth Forshee <seth.forshee@canonical.com>

package() {
  echo "Installing /etc/conf.d/wireless-regdom ..."
  install -Dm644 wireless-regdom -t "${pkgdir}"/etc/conf.d
  install -Dm644 85-regulatory.rules -t "${pkgdir}"/usr/lib/udev/rules.d
  install -Dm755 set-wireless-regdom -t "${pkgdir}"/usr/bin

  cd ${pkgname}-${pkgver}
  make install DESTDIR="${pkgdir}" MANDIR=usr/share/man FIRMWARE_PATH=usr/lib/firmware

  for dom in $(grep ^country db.txt | cut -d' ' -f2 | sed 's|:||g'); do
    echo "#WIRELESS_REGDOM=\"${dom}\"" >> "${pkgdir}"/etc/conf.d/wireless-regdom.tmp
  done
  sort -u "${pkgdir}"/etc/conf.d/wireless-regdom.tmp >> "${pkgdir}"/etc/conf.d/wireless-regdom
  rm "${pkgdir}"/etc/conf.d/wireless-regdom.tmp

  install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

git diff

diff --git a/trunk/85-regulatory.rules b/trunk/85-regulatory.rules
new file mode 100644
index 0000000..7093bc2
--- /dev/null
+++ b/trunk/85-regulatory.rules
@@ -0,0 +1,3 @@
+# Set wireless regulatory domain at device creation
+
+ACTION=="add", SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/usr/bin/set-wireless-regdom"
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index 06a3841..f39b65d 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -6,39 +6,33 @@ pkgrel=1
 pkgdesc="Central Regulatory Domain Database"
 arch=('any')
 url="https://wireless.kernel.org/en/developers/Regulatory"
-backup=(etc/conf.d/wireless-regdom)
 license=('custom')
-depends=('sh')
-makedepends=('crda')
+depends=('bash' 'iw')
+provides=('crda')
+conflicts=('crda<=4.14-3')
+replaces=('crda<=4.14-3')
+backup=(etc/conf.d/wireless-regdom)
 source=(https://www.kernel.org/pub/software/network/wireless-regdb/${pkgname}-${pkgver}.tar.{xz,sign}
-        crda.conf.d)
+        wireless-regdom
+        set-wireless-regdom
+        85-regulatory.rules)
 sha256sums=('89fd031aed5977c219a71501e144375a10e7c90d1005d5d086ea7972886a2c7a'
             'SKIP'
-            '192428fd959806705356107bffc97b8b379854e79bd013c4ee140e5202326e2b')
+            '192428fd959806705356107bffc97b8b379854e79bd013c4ee140e5202326e2b'
+            '603ce97da5cce3f5337e99007ce04e2f295bb33a36b308794884011f7bcabaf3'
+            'f5055dfe7584757a11b419836320bcdcd1d3d1e5caf26e20c63a0c64779f3376')
 validpgpkeys=('2ABCA7498D83E1D32D51D3B5AB4800A62DB9F73A') #Seth Forshee <seth.forshee@canonical.com>
 
 package() {
-  # Install and verify regulatory.bin file
-  msg "Installing and verifying the regulatory.bin file ..."
-  install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/regulatory.bin "${pkgdir}"/usr/lib/crda/regulatory.bin
-  # This creates a depend/makedepend loop:
-  # crda depends on wireless-regdb (but strictly doesn't makedepend on it)
-  # wireless-regdb makedepends on crda
-  if /usr/bin/regdbdump "${pkgdir}"/usr/lib/crda/regulatory.bin > /dev/null; then
-    msg "Regulatory database verification was succesful."
-  else
-    error "Regulatory database verification failed."
-    return 1
-  fi
-  install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/sforshee.key.pub.pem "${pkgdir}"/usr/lib/crda/pubkeys/sforshee.key.pub.pem
-  install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/LICENSE "${pkgdir}"/usr/share/licenses/wireless-regdb/LICENSE
-  install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/regulatory.bin.5 "${pkgdir}"/usr/share/man/man5/regulatory.bin.5
- install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/regulatory.db "${pkgdir}"/usr/lib/firmware/regulatory.db
- install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/regulatory.db.p7s "${pkgdir}"/usr/lib/firmware/regulatory.db.p7s
- install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/regulatory.db.5 "${pkgdir}"/usr/share/man/man5/regulatory.db.5
-  msg "Installing /etc/conf.d/wireless-regdom ..."
-  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
+  echo "Installing /etc/conf.d/wireless-regdom ..."
+  install -Dm644 wireless-regdom -t "${pkgdir}"/etc/conf.d
+  install -Dm644 85-regulatory.rules -t "${pkgdir}"/usr/lib/udev/rules.d
+  install -Dm755 set-wireless-regdom -t "${pkgdir}"/usr/bin
+
+  cd ${pkgname}-${pkgver}
+  make install DESTDIR="${pkgdir}" MANDIR=usr/share/man FIRMWARE_PATH=usr/lib/firmware
+
+  for dom in $(grep ^country db.txt | cut -d' ' -f2 | sed 's|:||g'); do
     echo "#WIRELESS_REGDOM=\"${dom}\"" >> "${pkgdir}"/etc/conf.d/wireless-regdom.tmp
   done
   sort -u "${pkgdir}"/etc/conf.d/wireless-regdom.tmp >> "${pkgdir}"/etc/conf.d/wireless-regdom
diff --git a/trunk/set-wireless-regdom b/trunk/set-wireless-regdom
new file mode 100644
index 0000000..3905ae9
--- /dev/null
+++ b/trunk/set-wireless-regdom
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+unset WIRELESS_REGDOM
+. /etc/conf.d/wireless-regdom
+[ -n "${WIRELESS_REGDOM}" ] && iw reg set ${WIRELESS_REGDOM}
diff --git a/trunk/crda.conf.d b/trunk/wireless-regdom
similarity index 100%
rename from trunk/crda.conf.d
rename to trunk/wireless-regdom

Is the usage of provides,  conflicts and replaces correct?

The package replaces some of the functionality of crda.  Current kernel packages can load the CRDA database without the use of the crda binary.
The format the kernel can read is not the same as that used by crda.  The update drops the format used by crda.
The udev rule and helper shell script are moved from the the crda package to the wireless-regdb package.  The udev rule now only informs the kernel of the regulatory domain,  dropping calling crda.
The shell script is unchanged.

If crda remained it would contain the binaries crda already detailed and regdbdump used to verify and extract the regulatory database in the format used by crda.

Edit:
Related bug report https://bugs.archlinux.org/task/59643

Last edited by loqs (2020-09-29 00:39:01)

Offline

#2 2020-09-29 09:54:21

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: PKGBUILD review request: wireless-regdb

provides : lgtm

conflicts :

Personally I'd remove the version check from conflicts .

Suspose user has wireless-regdb installed, then crda 4.14-4 is in repos. user sees some online comment and installs it .
pacman will not detect a conflict and try to install crda 4.14.-4 . This will lead to error messages about files already exisiting etc.
removing the version requirement will prevent that issue.

replaces :

Do we want pacman to replace crda with wireless-regdb automatically after answering a yes/no prompt ?
Or do we want users to remove crda themselves before they install wireless-regdb ?

If the former is desired behaviour, keep replaces including the version requirement .
If the latter, remove replaces .

Last edited by Lone_Wolf (2020-09-29 09:54:44)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2020-09-29 10:00:18

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: PKGBUILD review request: wireless-regdb

Lone_Wolf wrote:

Personally I'd remove the version check from conflicts .

Suspose user has wireless-regdb installed, then crda 4.14-4 is in repos. user sees some online comment and installs it .
pacman will not detect a conflict and try to install crda 4.14.-4 . This will lead to error messages about files already exisiting etc.
removing the version requirement will prevent that issue.

crda 4.14-4 could be modified to remove all conflicting file, but I am unsure if that is useful when the file format changes. Do regdbdump and libreg still work with the new regdb?

Last edited by progandy (2020-09-29 10:03:26)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2020-09-29 14:38:20

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: PKGBUILD review request: wireless-regdb

Missed removing the old format database files.

  rm -rf "${pkgdir}"/usr/lib/crda/
  rm "${pkgdir}"/usr/share/man/man5/regulatory.bin.5.gz
/usr/lib/crda/pubkeys/sforshee.key.pub.pem   #old format public key
/usr/lib/crda/regulatory.bin                 #old format database
/usr/share/man/man5/regulatory.bin.5.gz      #old format man page

/usr/lib/firmware/regulatory.db              #new format database
/usr/lib/firmware/regulatory.db.p7s          #new format database detached signature
/usr/share/man/man5/regulatory.db.5.gz       #new format man page

/usr/bin/regdbdump and /usr/lib/libreg.so can noly operate on the old format database.

Last edited by loqs (2020-09-29 14:38:45)

Offline

#5 2020-10-02 03:15:52

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: PKGBUILD review request: wireless-regdb

loqs wrote:

Is the usage of provides,  conflicts and replaces correct?

The package replaces some of the functionality of crda.  Current kernel packages can load the CRDA database without the use of the crda binary.
The format the kernel can read is not the same as that used by crda.  The update drops the format used by crda.
The udev rule and helper shell script are moved from the the crda package to the wireless-regdb package.  The udev rule now only informs the kernel of the regulatory domain,  dropping calling crda.
The shell script is unchanged.

If crda remained it would contain the binaries crda already detailed and regdbdump used to verify and extract the regulatory database in the format used by crda.

Edit:
Related bug report https://bugs.archlinux.org/task/59643

If it doesn't provide /usr/bin/crda and /usr/bin/regdbdump I don't see how it's valid to tell people this "provides" crda and can satisfy other packages that depend on crda.

Conflicts and replaces can be freely used in this context, though (but conflicts is likely enough on its own).

...

Why does this depend on bash in base? Why does the script even use #!/bin/bash, though, given it is pure POSIX sh and could easily use #!/bin/sh -- I guess ask the person who originally wrote it for the crda package...

Last edited by eschwartz (2020-10-02 03:16:48)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#6 2020-10-02 21:21:30

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: PKGBUILD review request: wireless-regdb

The provides line was for the kernel packages and archboot depending on crda.
PKGBUILD for crda

# Maintainer: Thomas Bächler <thomas@archlinux.org>

pkgname=crda
pkgver=4.14
pkgrel=4
pkgdesc="Central Regulatory Domain Agent for wireless networks"
arch=(x86_64)
url="https://wireless.wiki.kernel.org/en/developers/Regulatory/CRDA"
license=('custom')
depends=('libnl' 'libgcrypt')
makedepends=('python-m2crypto' 'wireless-regdb')
source=("https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/snapshot/crda-$pkgver.tar.gz"
        0001-Makefile-Link-libreg.so-against-the-crypto-library.patch
        0001-Makefile-Don-t-run-ldconfig.patch
        crda-4.14-python-3.patch)
sha256sums=('5a8f35bb8b27474f466b0e75d451ba917433d8aab1889678a64d9c4e72a8b8c2'
            'af56c98c81bac8640681d502b44fde37cd454e55db3057083f5f622e4b5d4980'
            'ff52990cf9295e5cebcf07ebbf2a96e225d97088573edcc898b29ce33a0fb663'
            '9a830e335dcf544e1b89d64b128f766b596594e7f944c375f6a55f5f9c763100')
validpgpkeys=('E4053F8D0E7C4B9A0A20AB27DC553250F8FE7407') #Luis R. Rodriguez
prepare() {
  cd "${srcdir}"/${pkgname}-${pkgver}
  patch -p1 -i "${srcdir}"/0001-Makefile-Link-libreg.so-against-the-crypto-library.patch
  patch -p1 -i "${srcdir}"/0001-Makefile-Don-t-run-ldconfig.patch
  patch -p1 -i "${srcdir}"/crda-4.14-python-3.patch
}

build() {
  cd "${srcdir}"/${pkgname}-${pkgver}
  make
}

package() {
  # Install crda and regdbdump
  cd "${srcdir}"/${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" UDEV_RULE_DIR=/usr/lib/udev/rules.d/ SBINDIR=/usr/bin/ install
  rm -rf "${pkgdir}"/usr/lib/udev

  install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/LICENSE "${pkgdir}"/usr/share/licenses/crda/LICENSE
}

git diff

diff --git a/trunk/0001-Makefile-Link-libreg.so-against-the-crypto-library.patch b/trunk/0001-Makefile-Link-libreg.so-against-the-crypto-library.patch
index 10dae58..5fd5e2d 100644
--- a/trunk/0001-Makefile-Link-libreg.so-against-the-crypto-library.patch
+++ b/trunk/0001-Makefile-Link-libreg.so-against-the-crypto-library.patch
@@ -46,7 +46,7 @@ index 1f25509..80f4946 100644
  $(LIBREG): regdb.h reglib.h reglib.c
  	$(NQ) '  CC  ' $@
 -	$(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^
-+	$(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ $(LIBREG_LDFLAGS)
++	$(Q)$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ $(LIBREG_LDFLAGS)
  
  install-libreg-headers:
  	$(NQ) '  INSTALL  libreg-headers'
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index 12a3bfd..6749d33 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -2,28 +2,27 @@
 
 pkgname=crda
 pkgver=4.14
-pkgrel=3
+pkgrel=4
 pkgdesc="Central Regulatory Domain Agent for wireless networks"
 arch=(x86_64)
 url="https://wireless.wiki.kernel.org/en/developers/Regulatory/CRDA"
 license=('custom')
-depends=('wireless-regdb' 'libnl' 'libgcrypt' 'systemd' 'iw')
-makedepends=('python2-m2crypto')
-install=crda.install
+depends=('libnl' 'libgcrypt')
+makedepends=('python-m2crypto' 'wireless-regdb')
 source=("https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/snapshot/crda-$pkgver.tar.gz"
-        set-wireless-regdom
         0001-Makefile-Link-libreg.so-against-the-crypto-library.patch
-        0001-Makefile-Don-t-run-ldconfig.patch)
+        0001-Makefile-Don-t-run-ldconfig.patch
+        crda-4.14-python-3.patch)
 sha256sums=('5a8f35bb8b27474f466b0e75d451ba917433d8aab1889678a64d9c4e72a8b8c2'
-            '603ce97da5cce3f5337e99007ce04e2f295bb33a36b308794884011f7bcabaf3'
-            '96b2068b27202f8bc78009869520e396cb3f3ac7a826efef06d0fc41047f2520'
-            'ff52990cf9295e5cebcf07ebbf2a96e225d97088573edcc898b29ce33a0fb663')
+            'af56c98c81bac8640681d502b44fde37cd454e55db3057083f5f622e4b5d4980'
+            'ff52990cf9295e5cebcf07ebbf2a96e225d97088573edcc898b29ce33a0fb663'
+            '9a830e335dcf544e1b89d64b128f766b596594e7f944c375f6a55f5f9c763100')
 validpgpkeys=('E4053F8D0E7C4B9A0A20AB27DC553250F8FE7407') #Luis R. Rodriguez
 prepare() {
   cd "${srcdir}"/${pkgname}-${pkgver}
-  sed 's|^#!/usr/bin/env python|#!/usr/bin/python2|' -i utils/key2pub.py
   patch -p1 -i "${srcdir}"/0001-Makefile-Link-libreg.so-against-the-crypto-library.patch
   patch -p1 -i "${srcdir}"/0001-Makefile-Don-t-run-ldconfig.patch
+  patch -p1 -i "${srcdir}"/crda-4.14-python-3.patch
 }
 
 build() {
@@ -32,15 +31,10 @@ build() {
 }
 
 package() {
-  # Install crda, regdbdump and udev rules
+  # Install crda and regdbdump
   cd "${srcdir}"/${pkgname}-${pkgver}
   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+="/usr/bin/set-wireless-regdom"' >> "${pkgdir}"/usr/lib/udev/rules.d/85-regulatory.rules
+  rm -rf "${pkgdir}"/usr/lib/udev
 
   install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/LICENSE "${pkgdir}"/usr/share/licenses/crda/LICENSE
-  
-  install -D -m755 "${srcdir}"/set-wireless-regdom "${pkgdir}"/usr/bin/set-wireless-regdom
 }
diff --git a/trunk/crda-4.14-python-3.patch b/trunk/crda-4.14-python-3.patch
new file mode 100644
index 0000000..df22a6a
--- /dev/null
+++ b/trunk/crda-4.14-python-3.patch
@@ -0,0 +1,95 @@
+diff --git a/utils/key2pub.py b/utils/key2pub.py
+index 9bb04cd..632e6a6 100755
+--- a/utils/key2pub.py
++++ b/utils/key2pub.py
+@@ -3,20 +3,20 @@
+ import sys
+ try:
+        from M2Crypto import RSA
+-except ImportError, e:
++except ImportError as e:
+        sys.stderr.write('ERROR: Failed to import the "M2Crypto" module: %s\n' % e.message)
+        sys.stderr.write('Please install the "M2Crypto" Python module.\n')
+        sys.stderr.write('On Debian GNU/Linux the package is called "python-m2crypto".\n')
+        sys.exit(1)
+ 
+ def print_ssl_64(output, name, val):
+-    while val[0] == '\0':
++    while val[0:1] == b'\0':
+         val = val[1:]
+     while len(val) % 8:
+-        val = '\0' + val
++        val = b'\0' + val
+     vnew = []
+     while len(val):
+-        vnew.append((val[0], val[1], val[2], val[3], val[4], val[5], val[6], val[7]))
++        vnew.append((val[0:1], val[1:2], val[2:3], val[3:4], val[4:5], val[5:6], val[6:7], val[7:8]))
+         val = val[8:]
+     vnew.reverse()
+     output.write('static BN_ULONG %s[%d] = {\n' % (name, len(vnew)))
+@@ -34,13 +34,13 @@ def print_ssl_64(output, name, val):
+     output.write('};\n\n')
+ 
+ def print_ssl_32(output, name, val):
+-    while val[0] == '\0':
++    while val[0:1] == b'\0':
+         val = val[1:]
+     while len(val) % 4:
+-        val = '\0' + val
++        val = b'\0' + val
+     vnew = []
+     while len(val):
+-        vnew.append((val[0], val[1], val[2], val[3], ))
++        vnew.append((val[0:1], val[1:2], val[2:3], val[3:4]))
+         val = val[4:]
+     vnew.reverse()
+     output.write('static BN_ULONG %s[%d] = {\n' % (name, len(vnew)))
+@@ -80,21 +80,21 @@ struct pubkey {
+ 
+ static struct pubkey keys[] = {
+ ''')
+-    for n in xrange(n + 1):
++    for n in range(n + 1):
+         output.write('	KEYS(e_%d, n_%d),\n' % (n, n))
+     output.write('};\n')
+     pass
+ 
+ def print_gcrypt(output, name, val):
+     output.write('#include <stdint.h>\n')
+-    while val[0] == '\0':
++    while val[0:1] == b'\0':
+         val = val[1:]
+     output.write('static const uint8_t %s[%d] = {\n' % (name, len(val)))
+     idx = 0
+     for v in val:
+         if not idx:
+             output.write('\t')
+-        output.write('0x%.2x, ' % ord(v))
++        output.write('0x%.2x, ' % (v if sys.version_info[0] >=3 else ord(v)))
+         idx += 1
+         if idx == 8:
+             idx = 0
+@@ -117,7 +117,7 @@ struct key_params {
+ 
+ static const struct key_params __attribute__ ((unused)) keys[] = {
+ ''')
+-    for n in xrange(n + 1):
++    for n in range(n + 1):
+         output.write('	KEYS(e_%d, n_%d),\n' % (n, n))
+     output.write('};\n')
+     
+@@ -135,7 +135,7 @@ except IndexError:
+     mode = None
+ 
+ if not mode in modes:
+-    print 'Usage: %s [%s] input-file... output-file' % (sys.argv[0], '|'.join(modes.keys()))
++    print('Usage: %s [%s] input-file... output-file' % (sys.argv[0], '|'.join(modes.keys())))
+     sys.exit(2)
+ 
+ output = open(outfile, 'w')
+@@ -153,3 +153,5 @@ for f in files:
+     idx += 1
+ 
+ modes[mode][1](output, idx - 1)
++
++output.close()
diff --git a/trunk/crda.install b/trunk/crda.install
deleted file mode 100644
index 9618a74..0000000
--- a/trunk/crda.install
+++ /dev/null
@@ -1,5 +0,0 @@
-## arg 1:  the new package version
-post_install() {
-  echo "Uncomment the right regulatory domain in /etc/conf.d/wireless-regdom."
-  echo "It will automatically be set on boot."
-}
}

No longer depends on iw that moved to wireless-regdom.
No longer need the install file.  Should that be added to wireless-regdom?
wireless-regdom becomes a make depends needed for regulatory.bin ,  so that can not be deleted from wireless-regom.  Debian has a patch that would avoid this [1].
Patch for python3 courtesy of gentoo [2].  Switching to openssl would avoid using python.
Add ldflags for FULL RELRO.

[1] https://sources.debian.org/patches/crda … eys.patch/
[2] https://gitweb.gentoo.org/repo/gentoo.g … on-3.patch

Offline

Board footer

Powered by FluxBB