public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-analyzer/macchanger/files/, net-analyzer/macchanger/
@ 2016-11-23 22:48 Robin H. Johnson
  0 siblings, 0 replies; only message in thread
From: Robin H. Johnson @ 2016-11-23 22:48 UTC (permalink / raw
  To: gentoo-commits

commit:     934b2a3612015642792d69007c6243f6a5f123c6
Author:     Felix Janda <felix.janda <AT> posteo <DOT> de>
AuthorDate: Sat Nov 19 20:54:32 2016 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Wed Nov 23 22:47:41 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=934b2a36

net-proxy/macchanger: add patch for compilation with musl

The patch is used by Alpine Linux, and has been submitted upstream:

https://github.com/alobbs/macchanger/issues/14

Also, do a revbump, bump EAPI, and eprefixify.

Gentoo-Bug: https://bugs.gentoo.org/588248
(cherry picked from commit d139a40e069d59ca895871fe47bf45d6b82ba171)

 .../files/macchanger-1.7.0-fix-caddr_t.patch       | 13 +++++++++
 net-analyzer/macchanger/macchanger-1.7.0-r1.ebuild | 31 ++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/net-analyzer/macchanger/files/macchanger-1.7.0-fix-caddr_t.patch b/net-analyzer/macchanger/files/macchanger-1.7.0-fix-caddr_t.patch
new file mode 100644
index 00000000..c5fe5f6
--- /dev/null
+++ b/net-analyzer/macchanger/files/macchanger-1.7.0-fix-caddr_t.patch
@@ -0,0 +1,13 @@
+https://github.com/alobbs/macchanger/issues/14
+
+--- ./src/netinfo.c.orig
++++ ./src/netinfo.c
+@@ -113,7 +113,7 @@
+ 	epa->size = IFHWADDRLEN;
+ 
+ 	memcpy(&req, &(net->dev), sizeof(struct ifreq));
+-	req.ifr_data = (caddr_t)epa;
++	req.ifr_data = (void *)epa;
+ 
+ 	if (ioctl(net->sock, SIOCETHTOOL, &req) < 0) {
+ 		perror ("[ERROR] Could not read permanent MAC");

diff --git a/net-analyzer/macchanger/macchanger-1.7.0-r1.ebuild b/net-analyzer/macchanger/macchanger-1.7.0-r1.ebuild
new file mode 100644
index 00000000..5f12529
--- /dev/null
+++ b/net-analyzer/macchanger/macchanger-1.7.0-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+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}.tar.gz"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86"
+SLOT="0"
+
+PATCHES=( "${FILESDIR}"/${P}-fix-caddr_t.patch )
+
+src_configure() {
+	# Shared data is installed below /lib, see Bug #57046
+	econf \
+		--bindir="${EPREFIX}/sbin" \
+		--datadir="${EPREFIX}/lib"
+}
+
+src_install() {
+	default
+
+	dodir /usr/bin
+	dosym /sbin/macchanger /usr/bin/macchanger
+	dosym /lib/macchanger /usr/share/macchanger
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-23 22:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-23 22:48 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/macchanger/files/, net-analyzer/macchanger/ Robin H. Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox