summaryrefslogtreecommitdiff
path: root/net-analyzer/macchanger
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/macchanger
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/macchanger')
-rw-r--r--net-analyzer/macchanger/Manifest7
-rw-r--r--net-analyzer/macchanger/files/macchanger-1.7.0-fix-caddr_t.patch13
-rw-r--r--net-analyzer/macchanger/macchanger-1.7.0-r1.ebuild30
-rw-r--r--net-analyzer/macchanger/macchanger-1.7.0.ebuild30
-rw-r--r--net-analyzer/macchanger/metadata.xml15
5 files changed, 95 insertions, 0 deletions
diff --git a/net-analyzer/macchanger/Manifest b/net-analyzer/macchanger/Manifest
new file mode 100644
index 000000000000..0f0ca376ab27
--- /dev/null
+++ b/net-analyzer/macchanger/Manifest
@@ -0,0 +1,7 @@
+AUX macchanger-1.7.0-fix-caddr_t.patch 357 SHA256 044630d7bd01e56797095f61cb582f363faa4dc7df16e48f11ae257a1f556fbd SHA512 00d59ce7562f0f011bd00f68d6e9aa4dd09d1dfb1aff4cb7291602e02d7015fb1f5038037c638e79f8aaf3c4787ef549c83d60303512b7d983b7f2ab386ccd21 WHIRLPOOL 4884abd987902c89d9ae07e8f77a63adba696e22b814b6a3526b39d0586e2cdf67a8fa8fc5145d206bc62394eece182a78f6e4334fa341fb761cb0c1dbda4f69
+DIST macchanger-1.7.0.tar.gz 396848 SHA256 dae2717c270fd5f62d790dbf80c19793c651b1b26b62c101b82d5fdf25a845bf SHA512 69f2008ace6ff8223ecf25805c08ddf42add9ed16c65f3bb57f74b8b0d080d584381ce79592d2ef581a9ba73f12624dae8db63dbb12e4875dfd29d828a4a5da3 WHIRLPOOL 94b9f01d881c58b6282a6916f7d88c1c7a8cdf1ff991cc07beaa0a3ce22fbe05620337adda583bf5affcce98907dfc83c2b914b07d9719e7aafc854db22f4d32
+EBUILD macchanger-1.7.0-r1.ebuild 827 SHA256 2fe9cdffabc6edf137c227b2437ab421e610d83c3c301db15948393dd4b8df6d SHA512 e4ea29afaae5fef4772bc7f35b050047ab4c0b8338dcd99c3e1ae9548a2f484b75796161e07de1d774b723080fd349c06e44d4a64f1293bbc850d2b594c7fdc8 WHIRLPOOL 7bc04f844c69459cbaacc13c38c36b75eb75453d97b3323da03ffb4ee775271e8f4a2983242baba4cc39d4ee025cd8c4635c923d54e3fbc88356d4b3d781a357
+EBUILD macchanger-1.7.0.ebuild 786 SHA256 55b2740dc35d5513376d3db56624de8edd62ed5e0fef7e4d368c81ea163a2122 SHA512 f41d16d66bb5bfa112b988fbda7d70a0ef21f8d638811bfb2eacfdbd392170c1fc3767e702804c2e2d62f54efc2d4509e0cd8404eca7532d6872b443bf8b76fc WHIRLPOOL 53f36e694482be269ff2ca2b4a366576e204fe4bfe126861fecd955b3b1a14264fb41cc3926a04a1aa362beb23e4d32a2deb6f39bb4132a1cc1438171d497769
+MISC ChangeLog 2952 SHA256 cc17852bd27e96eaf51195464d610d1ca63c83f45ea4cc6f73619aa6b875aa49 SHA512 d4270d5fbfa96691895da24762c8c8214d637e7c44ebbed410f68d8959a517c618bdabf4353e902fec50b9819500f37f1b064fb210a7219c2c80ac28d7473f9b WHIRLPOOL 1601405cf236445c7c76c2d00f92d002a1b2cf2dba60f1d9fc165007d94d9aad7e3cf55a0f02adf3691193192787bbe6d3d68a74cb6c9a6934da7e84ce225112
+MISC ChangeLog-2015 4760 SHA256 294c7b7b3092fded26c6d9fc069164dcf3eba9950b3ab2bf07e6be1b452d4737 SHA512 bea94a42aba638f16bb8a33b5068cae5821668de47b9ef99ce253720c54fa18b4210f2b76596cbe4f7f9e6c20fed92974473686a290635b4b05ca1879353f070 WHIRLPOOL b01cbcc2e406b5f9917b608ed6acf36372f18bea8b855cd8d9560979a730bee351323be7cdff46afc19a5da2cbf25fb5f2be1c2b0d58934aa839895b65da6c8c
+MISC metadata.xml 473 SHA256 42a529d12a1386496711e96cdff05b8b165690334756cb0e357c4762b639bd09 SHA512 f328b70876919441f61939ad0198c98acfcae561b3eb27beeb6d09d565191f64075a63e7f99af6d69493c6100256fb2cec0a3b60b62c7d28fd41c885cedad4a4 WHIRLPOOL 11398a0ae2d68ace40918fd46b74f677cf9a54f9dffb8093146ed6a456b9f85b70c9b4177db28c54e290f99bf2210c8144bcd06df3a97eea6bfd0c0ce59f137b
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 000000000000..c5fe5f6e16cb
--- /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 000000000000..e854b260252b
--- /dev/null
+++ b/net-analyzer/macchanger/macchanger-1.7.0-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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
+}
diff --git a/net-analyzer/macchanger/macchanger-1.7.0.ebuild b/net-analyzer/macchanger/macchanger-1.7.0.ebuild
new file mode 100644
index 000000000000..009b018eb6e0
--- /dev/null
+++ b/net-analyzer/macchanger/macchanger-1.7.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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() {
+ # 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
+}
diff --git a/net-analyzer/macchanger/metadata.xml b/net-analyzer/macchanger/metadata.xml
new file mode 100644
index 000000000000..27fa81884460
--- /dev/null
+++ b/net-analyzer/macchanger/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">alobbs/macchanger</remote-id>
+ </upstream>
+</pkgmetadata>