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/crda-4.15.ebuild | |
parent | 197f0639ca0a63b397552e059e2a992d39e09e55 (diff) |
gentoo auto-resync : 17:06:2023 - 19:45:55
Diffstat (limited to 'net-wireless/crda/crda-4.15.ebuild')
-rw-r--r-- | net-wireless/crda/crda-4.15.ebuild | 86 |
1 files changed, 86 insertions, 0 deletions
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 +} |