tnet-analyzer/macchanger: Add 1.7.0-r99 with musl-libc support. - parlay - yet another gentoo overlay HTML git clone https://git.parazyd.org/parlay DIR Log DIR Files DIR Refs DIR README --- DIR commit 09f783b98db08689b6b452a6fec6186806f7c666 DIR parent de42c027c4d8fd931df9fc095c052e1c59598438 HTML Author: parazyd <parazyd@dyne.org> Date: Wed, 5 Oct 2016 09:31:00 +0200 net-analyzer/macchanger: Add 1.7.0-r99 with musl-libc support. Diffstat: A net-analyzer/macchanger/Manifest | 1 + A net-analyzer/macchanger/files/0001… | 14 ++++++++++++++ A net-analyzer/macchanger/macchanger… | 33 +++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 0 deletions(-) --- DIR diff --git a/net-analyzer/macchanger/Manifest b/net-analyzer/macchanger/Manifest t@@ -0,0 +1 @@ +DIST macchanger-1.7.0.tar.gz 396848 SHA256 dae2717c270fd5f62d790dbf80c19793c651b1b26b62c101b82d5fdf25a845bf SHA512 69f2008ace6ff8223ecf25805c08ddf42add9ed16c65f3bb57f74b8b0d080d584381ce79592d2ef581a9ba73f12624dae8db63dbb12e4875dfd29d828a4a5da3 WHIRLPOOL 94b9f01d881c58b6282a6916f7d88c1c7a8cdf1ff991cc07beaa0a3ce22fbe05620337adda583bf5affcce98907dfc83c2b914b07d9719e7aafc854db22f4d32 DIR diff --git a/net-analyzer/macchanger/files/0001-fix-musl-build.patch b/net-analyzer/macchanger/files/0001-fix-musl-build.patch t@@ -0,0 +1,14 @@ +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"); + DIR diff --git a/net-analyzer/macchanger/macchanger-1.7.0-r99.ebuild b/net-analyzer/macchanger/macchanger-1.7.0-r99.ebuild t@@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +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" + +src_configure() { + epatch "${FILESDIR}"/0001-fix-musl-build.patch + + # Shared data is installed below /lib, see Bug #57046 + econf \ + --bindir=/sbin \ + --datadir=/lib +} + +src_install() { + default + + dodoc AUTHORS ChangeLog NEWS README + + dodir /usr/bin + dosym /sbin/macchanger /usr/bin/macchanger + dosym /lib/macchanger /usr/share/macchanger +}