diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-06-17 19:45:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-06-17 19:45:55 +0100 |
commit | 59fb6ea4eff116f078307a57217645762b78aba7 (patch) | |
tree | bc4b009c0fb67e5716ad01ba8306a486fe4744ed /net-wireless/crda | |
parent | 197f0639ca0a63b397552e059e2a992d39e09e55 (diff) |
gentoo auto-resync : 17:06:2023 - 19:45:55
Diffstat (limited to 'net-wireless/crda')
-rw-r--r-- | net-wireless/crda/Manifest | 5 | ||||
-rw-r--r-- | net-wireless/crda/crda-4.15.ebuild | 86 | ||||
-rw-r--r-- | net-wireless/crda/files/crda-4.15-ldflags.patch | 14 | ||||
-rw-r--r-- | net-wireless/crda/files/crda-4.15-libreg-link.patch | 21 | ||||
-rw-r--r-- | net-wireless/crda/files/crda-4.15-no-ldconfig.patch | 19 |
5 files changed, 145 insertions, 0 deletions
diff --git a/net-wireless/crda/Manifest b/net-wireless/crda/Manifest index 7d44aafe3cc4..23bcedd0bd74 100644 --- a/net-wireless/crda/Manifest +++ b/net-wireless/crda/Manifest @@ -1,11 +1,16 @@ AUX crda-4.14-do-not-compress-doc.patch 1367 BLAKE2B 021a25a898dc225e52bee293ba94152e5f7e8229c5c0a813a126f239819fd727edfa34c9b85f25e31d7630c13598f797dfcd855d31fd28beec5443866f3841fb SHA512 d3545fff1f6c6ae9ae1ae9c833bb137f84783a32dfb9e2f50075079268f67ee1b001fc904d99c68ff0aad97d674fabd591c1ca2ba378e14551759e56bc3f2e45 AUX crda-4.14-openssl-1.1.0-compatibility.patch 8616 BLAKE2B c6c34a7575e79f67e3efca21c25aad489c1adb3c612d886b68c49c06b7c516bdfcf0f94a0838ca83c4e082ee9b3a4ffc382ff5de4c724febca5b59d21268f415 SHA512 ce8430b03a7315eb339d4d7b845cb28ea970010e47eba9a6a9199c67bb370fa7811ea1dcc2431790b2954d72fafbbb31bdcc691228e6e88b9dd066c51c2f06ef AUX crda-4.14-python-3.patch 3022 BLAKE2B b6d78c1a09ec0f848654139e0ba778f5d65d814b9d7c84df3013aec43baf55f9c23367b15454218e39d3a0959355b4fd030dd4584b7420f6835a8ef421dd72c9 SHA512 b953be9da2ed770d89c905257c2e3f04451ce9ee2a61ee9cc18285b3d8209f8665f5f0a2a4ffb8a5211445cb45fe66dc4e3d302e90c4c0030c293c978dd443c6 +AUX crda-4.15-ldflags.patch 630 BLAKE2B ed0408bb7d5757f9521bacd1fd5cfb63ed0ae9ce4d8b19da51838fcc2bf94768c6aec438957dec5136bf0567c10de9f3ab1638ee1404e04f699d6f6d0951d62d SHA512 325e760ad0d2e09a6588227cb9d0454a90180ff04dde6ec0c41a436dbe8f5bda79188a17e6e50155e25019846b44089a4d611bc62c4d1cf086708c577fa439d0 +AUX crda-4.15-libreg-link.patch 763 BLAKE2B e984c95328cef20b25f6c4347136837976e80beba2a284695588563f6ee4c16bf61422f4fae7bbda2526f82469c0060678113c72a43a10066e129e81158b60c5 SHA512 0ab447f6b5f9b3ca67d93f1f0691ea72678d39f6b5022812ec39d2a52be6e4fc3ba2c45ff1e9b28d4463788433061ec7dc83f04692a894cbc5bf3292baf9bb30 +AUX crda-4.15-no-ldconfig.patch 637 BLAKE2B 0ee9c50b2810fbc42d57f0c8af08192faa64221aa0919996f74fb18c08a562d83e050d98529c2632e7e30a869582de0ce74b619471632fd2bf93fc4a42ba7d0d SHA512 8150290e103fa3724f105adf33559aab35e0625505f9d636158a1928533aa55d7ff03c7581a665f35a5db5d9c79c6488a6004584c096f9d2d7c5121340fa3a73 AUX crda-cflags.patch 895 BLAKE2B 0a8d8acb268ff58656a5b66a77744c14fd9f92fd6a660132f2a86a88a3cd5bde4bf39709c38f2705fe999bca312a991304b673d4d12a540cecffd1fcc4ec5cc1 SHA512 c4914cd0d4b0d3f0d16aaf4ff3cd91f961870bc0376f90998b1ec149f145dd347ff79763e8da12b5865a1c6e507a0ee8d306886ffe96fa80426c3bd914a5889d AUX crda-ldflags.patch 797 BLAKE2B f1a8a47ef981c59c46c5f441812d238b8e3b80f75b93726b1b507bf9e143c094fc0525abe1bbcbe719868ee67843a3b2095c8d1a25e9dcca65ec13464643972e SHA512 f882826e2d8e8ca72e66a2c240953a0a35e83c775428f928a59fe334ba35526a6a89f5eb6868db6ae633b28e169c52da24ad194af0dd6c32eb633d35b9c843d8 AUX crda-libreg-link.patch 908 BLAKE2B 60d9307ba43235cbce089835ae7406313b9f68a90fbe503130e81fb423e04d3f257e1a1d78db9fef605e42a4d9571c54e8ac9cb8a2569d3c3cd3f5c6d542a295 SHA512 41c98f1e4ca0ae3d22b08086eb54aefd4ec95fed5a6e5fafd55fb6a9b9649ec18f5f65003a1424cf59bf99e266fddf110c92d9e46a4b40a18be5931fc7bbbbeb AUX crda-no-ldconfig.patch 748 BLAKE2B 1ef8aff911a5f4af14fb321782cfb40abc8a946dc80af95ec2c2d50e509f318d84be36190c5b899c882b6173617746600b04bf6d0c282a59c568c44e2f255d16 SHA512 faea7d4bfc0b1a4a674cb6c285975805985dc4211c43ca47da38102cb79a1d6d770aa6267e85d811998f9a13799335cfb6116f272ed40c4ecd6b3f813ca93a28 AUX crda-no-werror.patch 916 BLAKE2B 2e7c79e14ae0ab05cbf032f104747eeea0df165197ba1ff8039fb14de43880894b03e59e14fe2d906b7f99c8d910cef701c1abcb68d9558cfd37d4455ce03501 SHA512 ab521bbc47826bb9356c8b96bee24f6e6d7f03a98036398627e840b89e7245329115664fc740d2b3c0d3a497ef638e3be3fa9d1e991a7e03a0753e078c8019e9 DIST crda-4.14.tar.gz 72753 BLAKE2B 79e96bc41103eb221d841c74081c2abf507c46ae7790d5d8201dbc49260bc833630b95f74da5500817e07f1b4108713867071bd82ecc4c46d202d1e0ea865675 SHA512 0d52cf62589ec2debfd66de95b82b03a1c15048d8425cf5ef43c3e1f51ce1311a6d898fd5f69badcceb3181d35c836db197c6f070654dab351b01e96a1dd1053 +DIST crda-4.15.tar.gz 72907 BLAKE2B c5fe2a625e37a92447a52a477214fe8279201cb729fdb4af9f26e4174923179edf53e35484a34f76707e6801b2b636e38fe043c2a54038b7dd7f14ab97532d45 SHA512 5a5a2c6914529383ae84895a70d2455dbc94939f0bd0f8ee3f7158e768ab4a0123053abf5d87b050dc4104397f246ec2f1c1b97e9b6a7043c65b7aef568af539 EBUILD crda-4.14.ebuild 2131 BLAKE2B 43113fb57584f043a86c1711d2e0d5937c5121dea762a749b9a3d227943f64426b1205bed1f415852855134a9b7683ef933e0fd040479cd6fa5f038832048cde SHA512 afe6c01244ce33710166b91970f44ad933ecc8991ef7f8aecfd879cfde0de17a86336cd99bb31793154bf6fc34014f7d1e95fc1817c3637407f435daeb7a7eb1 +EBUILD crda-4.15.ebuild 2174 BLAKE2B 296c93fce0bd9e61ab8bc1a6d5a79976350b65f8d6c1e714de31e8ee7e107dba0cf5c8ae475481a17ddb4c342b652f31d8214c1ee404b837dee6f5d0a56a4692 SHA512 7fb463fcab0eb82d4487606fb9cc35ea8df2d0b37ada0fc3bcf8fd031e10849068bc5f1093d7f4decb8e7ccef03266227bcb64046a759c7b4408ccc320ff6516 MISC metadata.xml 342 BLAKE2B 88aa38f713696271570968796b27533c0a990225592a4b553c4d1ff50528bce6bc5c96ab43998950b1391c42051eac0b7ed32eeb9b01458e4112ddfca56fbab7 SHA512 1775a84638c2ccdd1171d073603c2f0fa2d1248c1b2584ac25c26dd2eba0dc3af2800740253ca2083f10c11ad8763c4614cf73cdb695142dc75be79ea1c03675 diff --git a/net-wireless/crda/crda-4.15.ebuild b/net-wireless/crda/crda-4.15.ebuild new file mode 100644 index 000000000000..5a6481317949 --- /dev/null +++ b/net-wireless/crda/crda-4.15.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) +inherit toolchain-funcs python-any-r1 udev + +DESCRIPTION="Central Regulatory Domain Agent for wireless networks" +HOMEPAGE="https://wireless.wiki.kernel.org/en/developers/regulatory/crda" +SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/snapshot/${P}.tar.gz" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="gcrypt" + +RDEPEND=" + dev-libs/libnl:3 + net-wireless/wireless-regdb + !gcrypt? ( + dev-libs/openssl:= + ) + gcrypt? ( dev-libs/libgcrypt:= ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + ${PYTHON_DEPS} + $(python_gen_any_dep 'dev-python/m2crypto[${PYTHON_USEDEP}]') + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-no-werror.patch + "${FILESDIR}"/${PN}-cflags.patch + "${FILESDIR}"/${PN}-4.14-python-3.patch + "${FILESDIR}"/${PN}-4.14-openssl-1.1.0-compatibility.patch # bug #652428 + "${FILESDIR}"/${PN}-4.14-do-not-compress-doc.patch + "${FILESDIR}"/${PN}-4.15-no-ldconfig.patch + "${FILESDIR}"/${PN}-4.15-libreg-link.patch # bug #542436 + "${FILESDIR}"/${PN}-4.15-ldflags.patch +) + +python_check_deps() { + python_has_version "dev-python/m2crypto[${PYTHON_USEDEP}]" +} + +src_prepare() { + default + sed -i \ + -e "s:\<pkg-config\>:$(tc-getPKG_CONFIG):" \ + Makefile || die +} + +_emake() { + # The source hardcodes /usr/lib/crda/ paths (ignoring all make vars + # that look like it should change it). We want to use /usr/lib/ + # anyways as this file is not ABI specific and we want to share it + # among all ABIs rather than pointlessly duplicate it. + # + # The trailing slash on SBINDIR is required by the source. + emake \ + PREFIX="${EPREFIX}/usr" \ + SBINDIR='$(PREFIX)/sbin/' \ + LIBDIR='$(PREFIX)/'"$(get_libdir)" \ + UDEV_RULE_DIR="$(get_udevdir)/rules.d" \ + REG_BIN="${SYSROOT}"/usr/lib/crda/regulatory.bin \ + USE_OPENSSL=$(usex gcrypt 0 1) \ + CC="$(tc-getCC)" \ + V=1 \ + WERROR= \ + "$@" +} + +src_compile() { + _emake all_noverify +} + +src_test() { + _emake verify +} + +src_install() { + _emake DESTDIR="${D}" install + keepdir /etc/wireless-regdb/pubkeys +} diff --git a/net-wireless/crda/files/crda-4.15-ldflags.patch b/net-wireless/crda/files/crda-4.15-ldflags.patch new file mode 100644 index 000000000000..af5de2d1c0af --- /dev/null +++ b/net-wireless/crda/files/crda-4.15-ldflags.patch @@ -0,0 +1,14 @@ +# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/patch/?id=9856751feaf7b102547cea678a5da6c94252d83d +# https://bugs.gentoo.org/678450 +# https://bugs.gentoo.org/596352 +--- a/Makefile ++++ b/Makefile +@@ -115,7 +115,7 @@ keys.c: utils/key2pub.py $(wildcard $(PUBKEY_DIR)/*.pem) + + $(LIBREG): reglib.c regdb.h reglib.h + $(NQ) ' CC ' $@ +- $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $< $(filter-out -lreg,$(LDLIBS)) ++ $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $< $(filter-out -lreg,$(LDLIBS)) + + install-libreg-headers: + $(NQ) ' INSTALL libreg-headers' diff --git a/net-wireless/crda/files/crda-4.15-libreg-link.patch b/net-wireless/crda/files/crda-4.15-libreg-link.patch new file mode 100644 index 000000000000..b32626edb6cc --- /dev/null +++ b/net-wireless/crda/files/crda-4.15-libreg-link.patch @@ -0,0 +1,21 @@ +https://bugs.gentoo.org/542436 + +From f56ab87b25f2228a67ac592a1c18793c72dd03eb Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Sat, 7 Mar 2015 22:29:33 -0500 +Subject: [PATCH crda] libreg: link against crypto libs + +Since libreg uses funcs from the crypto lib, make sure we link them. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- a/Makefile ++++ b/Makefile +@@ -115,7 +115,7 @@ keys.c: utils/key2pub.py $(wildcard $(PUBKEY_DIR)/*.pem) + + $(LIBREG): reglib.c regdb.h reglib.h + $(NQ) ' CC ' $@ +- $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $< ++ $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $< $(filter-out -lreg,$(LDLIBS)) + + install-libreg-headers: + $(NQ) ' INSTALL libreg-headers' diff --git a/net-wireless/crda/files/crda-4.15-no-ldconfig.patch b/net-wireless/crda/files/crda-4.15-no-ldconfig.patch new file mode 100644 index 000000000000..a7e744fe8d70 --- /dev/null +++ b/net-wireless/crda/files/crda-4.15-no-ldconfig.patch @@ -0,0 +1,19 @@ +From b11d83df189670defe4a29c624f2930351c13df2 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Wed, 4 Mar 2015 13:56:36 -0500 +Subject: [PATCH] do not run ldconfig + +Let the distro/user deal with ldconfig updating. Running it blindly like +this breaks DESTDIR installs as `ldconfig` only operates on system paths. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- a/Makefile ++++ b/Makefile +@@ -127,7 +127,6 @@ install-libreg: + $(NQ) ' INSTALL libreg' + $(Q)mkdir -p $(DESTDIR)/$(LIBDIR) + $(Q)$(INSTALL) -m 644 $(LIBREG) $(DESTDIR)/$(LIBDIR)/ +- $(Q)ldconfig + + %.o: %.c regdb.h $(LIBREG) + $(NQ) ' CC ' $@ |