aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/macchanger
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-08-25 15:26:24 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-25 15:26:24 +0200
commitb6af1e02efe594039707cd882517663d5370f375 (patch)
treeff9c2d55873e051e82972ba64c017352d3a75d34 /unmaintained/macchanger
parenta71346b7acebc600960a98c84fb32cfd72fe864b (diff)
downloadaports-b6af1e02efe594039707cd882517663d5370f375.tar.bz2
aports-b6af1e02efe594039707cd882517663d5370f375.tar.xz
testing/[multiple]: move unmaintained packages
This moves all packages from testing to unmaintained which have not been updated for atleast 6 months. If you are affected by this commit please follow this proceddure: * make sure your packages build on all architectures * move your pacakge(s) back to testing * if you want to keep this package and can maintain it (or find somebody to maintain it for you) for a minimum of 6 months ask it to be moved to community
Diffstat (limited to 'unmaintained/macchanger')
-rw-r--r--unmaintained/macchanger/APKBUILD53
-rw-r--r--unmaintained/macchanger/fix-caddr_t.patch13
2 files changed, 66 insertions, 0 deletions
diff --git a/unmaintained/macchanger/APKBUILD b/unmaintained/macchanger/APKBUILD
new file mode 100644
index 0000000000..eac6d27145
--- /dev/null
+++ b/unmaintained/macchanger/APKBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=macchanger
+pkgver=1.7.0
+pkgrel=0
+pkgdesc="An utility for viewing/manipulating the MAC address of network interfaces"
+url="https://github.com/alobbs/macchanger"
+arch="all"
+license="GPLv3+"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="https://github.com/alobbs/macchanger/releases/download/$pkgver/macchanger-$pkgver.tar.gz
+ fix-caddr_t.patch
+ "
+
+_builddir="$srcdir"/macchanger-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="ca56f16142914337391dac91603eb332 macchanger-1.7.0.tar.gz
+85d5a1e909afb031c6ca3ffdc62747d4 fix-caddr_t.patch"
+sha256sums="dae2717c270fd5f62d790dbf80c19793c651b1b26b62c101b82d5fdf25a845bf macchanger-1.7.0.tar.gz
+044630d7bd01e56797095f61cb582f363faa4dc7df16e48f11ae257a1f556fbd fix-caddr_t.patch"
+sha512sums="69f2008ace6ff8223ecf25805c08ddf42add9ed16c65f3bb57f74b8b0d080d584381ce79592d2ef581a9ba73f12624dae8db63dbb12e4875dfd29d828a4a5da3 macchanger-1.7.0.tar.gz
+00d59ce7562f0f011bd00f68d6e9aa4dd09d1dfb1aff4cb7291602e02d7015fb1f5038037c638e79f8aaf3c4787ef549c83d60303512b7d983b7f2ab386ccd21 fix-caddr_t.patch"
diff --git a/unmaintained/macchanger/fix-caddr_t.patch b/unmaintained/macchanger/fix-caddr_t.patch
new file mode 100644
index 0000000000..c5fe5f6e16
--- /dev/null
+++ b/unmaintained/macchanger/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");