summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2019-12-03 10:50:36 +0100
committerJeroen Roovers <jer@gentoo.org>2019-12-03 11:08:28 +0100
commit63fd00c44388c3e96b0c8c03cf34af0cacb92eb7 (patch)
treee1d7200f679f6d9e17e535d604d91b8bd566b056 /net-analyzer
parentdev-libs/nss: sparc stable wrt bug #701840 (diff)
downloadgentoo-63fd00c44388c3e96b0c8c03cf34af0cacb92eb7.tar.gz
gentoo-63fd00c44388c3e96b0c8c03cf34af0cacb92eb7.tar.bz2
gentoo-63fd00c44388c3e96b0c8c03cf34af0cacb92eb7.zip
net-analyzer/macchanger: Version 1.7.0_p5_p4
Package-Manager: Portage-2.3.80, Repoman-2.3.19 Bug: https://bugs.gentoo.org/699744 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/macchanger/Manifest1
-rw-r--r--net-analyzer/macchanger/macchanger-1.7.0_p5_p4.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/net-analyzer/macchanger/Manifest b/net-analyzer/macchanger/Manifest
index 3494576ab710..622a424b5aeb 100644
--- a/net-analyzer/macchanger/Manifest
+++ b/net-analyzer/macchanger/Manifest
@@ -1 +1,2 @@
DIST macchanger-1.7.0.tar.gz 396848 BLAKE2B 7a6e5cbf302568884363ab4023033b53b1adc16896d7f88b1717f72b1b2a4d6d2dbfa2259a5c4aaa38d72201c5624a648077730cbc25f869f5f50a343bb93d0c SHA512 69f2008ace6ff8223ecf25805c08ddf42add9ed16c65f3bb57f74b8b0d080d584381ce79592d2ef581a9ba73f12624dae8db63dbb12e4875dfd29d828a4a5da3
+DIST macchanger_1.7.0-5.4.debian.tar.xz 25084 BLAKE2B 65d39333e07a4c89da7e622aaccc0f2cab45af8d84721c3d39c457dfaf3063df872812d07860cbe78634159b0a2944e75aa54c11f46eadc37b9d4a23fc81b629 SHA512 b50b52532fc987f443088f2a4d0f2327dac972e69bc4c0bc0a94de4583df76c7d32c40a143d24b7fa6e066fc36b89c4b160c02b26860c484aab5054a4032f0cc
diff --git a/net-analyzer/macchanger/macchanger-1.7.0_p5_p4.ebuild b/net-analyzer/macchanger/macchanger-1.7.0_p5_p4.ebuild
new file mode 100644
index 000000000000..1aa5414b43a6
--- /dev/null
+++ b/net-analyzer/macchanger/macchanger-1.7.0_p5_p4.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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 ~ppc ~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
+
+ dodir /usr/bin
+ dosym ../../sbin/macchanger /usr/bin/macchanger
+ dosym ../../lib/macchanger /usr/share/macchanger
+}