commit:     63fd00c44388c3e96b0c8c03cf34af0cacb92eb7
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  3 09:50:36 2019 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Tue Dec  3 10:08:28 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63fd00c4

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 <AT> gentoo.org>

 net-analyzer/macchanger/Manifest                   |  1 +
 .../macchanger/macchanger-1.7.0_p5_p4.ebuild       | 44 ++++++++++++++++++++++
 2 files changed, 45 insertions(+)

diff --git a/net-analyzer/macchanger/Manifest b/net-analyzer/macchanger/Manifest
index 3494576ab71..622a424b5ae 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 00000000000..1aa5414b43a
--- /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
+}

Reply via email to