summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-02-20 04:58:57 +0000
committerSam James <sam@gentoo.org>2024-02-20 04:58:57 +0000
commit69bfc9dbf66cf5b21f0c1a9d0b5de9b24cda5d87 (patch)
tree93389775f7f5df781a825494633f1a82d3f04434 /net-analyzer/macchanger
parentapp-admin/vault: add 1.14.9 (diff)
downloadgentoo-69bfc9dbf66cf5b21f0c1a9d0b5de9b24cda5d87.tar.gz
gentoo-69bfc9dbf66cf5b21f0c1a9d0b5de9b24cda5d87.tar.bz2
gentoo-69bfc9dbf66cf5b21f0c1a9d0b5de9b24cda5d87.zip
net-analyzer/macchanger: drop USE=split-usr
Fixed netifrc has been stable for a while. Bug: https://bugs.gentoo.org/889922 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer/macchanger')
-rw-r--r--net-analyzer/macchanger/macchanger-1.7.0_p5_p4-r3.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/net-analyzer/macchanger/macchanger-1.7.0_p5_p4-r3.ebuild b/net-analyzer/macchanger/macchanger-1.7.0_p5_p4-r3.ebuild
new file mode 100644
index 000000000000..3797d8ce8d40
--- /dev/null
+++ b/net-analyzer/macchanger/macchanger-1.7.0_p5_p4-r3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Utility for viewing/manipulating the MAC address of network interfaces"
+OUI_DATE="20091029" # Generated with tools/IEEE_OUI.py in the source
+OUI_FILE="OUI.list-${OUI_DATE}"
+HOMEPAGE="https://github.com/alobbs/macchanger"
+SRC_URI="
+ https://github.com/alobbs/macchanger/releases/download/${PV/_p*}/${P/_p*}.tar.gz
+ mirror://debian/pool/main/m/${PN}/${PN}_${PV/_p*}-$(ver_cut 5).$(ver_cut 7).debian.tar.xz
+"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+SLOT="0"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.7.0-fix-caddr_t.patch
+ "${WORKDIR}"/debian/patches/02-fix_usage_message.patch
+ "${WORKDIR}"/debian/patches/06-update_OUI_list.patch
+ "${WORKDIR}"/debian/patches/08-fix_random_MAC_choice.patch
+ "${WORKDIR}"/debian/patches/check-random-device-read-errors.patch
+ "${WORKDIR}"/debian/patches/verify-changed-MAC.patch
+
+)
+S=${WORKDIR}/${P/_p*}
+
+src_configure() {
+ # Shared data is installed below /lib, see Bug #57046
+ econf \
+ --bindir="${EPREFIX}/sbin" \
+ --datadir="${EPREFIX}/lib"
+}
+
+src_install() {
+ default
+
+ newdoc "${WORKDIR}"/debian/changelog debian.changelog
+
+ dosym ../../lib/macchanger /usr/share/macchanger
+}