diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-wireless/mdk |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-wireless/mdk')
-rw-r--r-- | net-wireless/mdk/Manifest | 7 | ||||
-rw-r--r-- | net-wireless/mdk/files/3.6-makefile.patch | 37 | ||||
-rw-r--r-- | net-wireless/mdk/files/fix_wids_mdk3_v5.patch | 21 | ||||
-rw-r--r-- | net-wireless/mdk/mdk-3.6-r1.ebuild | 36 | ||||
-rw-r--r-- | net-wireless/mdk/metadata.xml | 8 |
5 files changed, 109 insertions, 0 deletions
diff --git a/net-wireless/mdk/Manifest b/net-wireless/mdk/Manifest new file mode 100644 index 000000000000..daaec843756c --- /dev/null +++ b/net-wireless/mdk/Manifest @@ -0,0 +1,7 @@ +AUX 3.6-makefile.patch 707 SHA256 4b7f0c862698ca2ef4974ee42351331700abd79018c8161cb1da84d255be7180 SHA512 6889b2385d6dbac55ec7ecb757aefd822fe3c15f9259fb38e2b3999a9f381a8e58a079e2cfaff5922dd4e10b843b88b7aae8d424b769407e1bbca444e9666280 WHIRLPOOL d487e93092fac4b721b099158cab7a69b1f2c18b9d5bacc2b36985365132a11f2798a63da0b6d990d492df6d3900f5b4bf8be59311b67e0954e355e5bb784ab6 +AUX fix_wids_mdk3_v5.patch 520 SHA256 c0168ab3b50b18c973c954a831bfd6d8373c3f70570247a15d52da6914fe490d SHA512 23e1e525340972a2b04e9f2d829dc43a7b8dea0c06c7b739c85842b48aa87a61854cab93f86a50b13545e00fbee0c4d0d89913aa944926fd0725d50beca89c80 WHIRLPOOL ae3c268cce10000959131b7063868cef1065676e5316f99f4fb701d68bb8a84de9f297a514b2968d79b904ef2ca0f3d318fb69ecd782ebd7bd08b0e1fdf9256a +DIST mdk3-v6.tar.bz2 213279 SHA256 4dac4d0ad54c4dbbf8857f527c573af6495a91d2e503774274b39c3ca8ed11dd SHA512 a5180fc231c2e041064467b9415d2d238ea680f19c88b2320983dd6dbe91a62af1a37da0fc548c1b0860ede046e1f9976dec729c919d8e6c0ab98231990dfec4 WHIRLPOOL 6d2321153841189bde7d7cd68e62330027e81ae66377b468d8d5d1ae92ff3327564fbdb5ee584435e12c8abad6c1c3ba53e3ef378ac834d62ad233ab03f9107f +EBUILD mdk-3.6-r1.ebuild 710 SHA256 23629bca8a7d475a38948a83b504a9ac003e2b366d3f805afec70c5c6c170d9a SHA512 73bc4d048f6315cdfa1a19ebfa4408720e19f04d0080a3d57bb12a581632175a62e34c3c882101b541e253bf27dc59c736bb6466bf0918cef43ad89a1a41962d WHIRLPOOL b3f8e986ef760999161afe2a0ed0f94a5630392c780426dbca474cf64cc066f4110b1da21eee62ec5ddc2657cb9a6054bbd6847afad00a50a1fda6bab428345e +MISC ChangeLog 2623 SHA256 a669a5cecfd9979cf41aa3f498d1bceefba8924746d2709c41939536cc548817 SHA512 e74cdbf412126fa46ef337d536c92cede016788b57e06fdb0585fe85d4595c71cbe16c47f23c2e7b9ffc1443537c04d19a343e3b9cd5bfd69e8791f1ce047459 WHIRLPOOL 182220824066cd4454731391b4958cc0cba715d9aa795fa3a19b0a9a12a55c7e7296192d3e28a86183db6df58827de91d52caa450ce6a9c2bfad5bb68617375d +MISC ChangeLog-2015 1017 SHA256 0006bd8d49a6f59165ff1b374c74cb8b4c9502b5188c0bec48955995a6e9a305 SHA512 dc6a541d91829a2c0c3c6a46a25fa0304b03ace22f00bf9c2d4afdc18bd4bb73e87a670efef6af6d2764cbf2bc72e9396fc4dbd675d51f9ee9023eade2c56535 WHIRLPOOL 23373fed1aaa2e0dcb817fcfdaf0c5a0c77b67b6bef91b18e8736974c4c851449091d0a5166d89151a81f046f579eec337c68d6419ff08926f4057e270ee60b5 +MISC metadata.xml 247 SHA256 b3c2198499ce04d44c522a9699b2ead619e9361832b45fe9ebf9a1c478a9285d SHA512 3344e220b20caad7bc32141ad5d51630ff0738ab14608334576638297fdd2a48d5169ef54fb33e36d27bd448d92f8ef9e41880df388521efd4a2c58d102c7c69 WHIRLPOOL 3fd33d9bbafa015241788f18c3dc81564042da0f6fd9f16441d5e71e8f6cdf8c57f2e26c591c5f83a704786601f623ab19c1166d590c1d87b034f331b9257c18 diff --git a/net-wireless/mdk/files/3.6-makefile.patch b/net-wireless/mdk/files/3.6-makefile.patch new file mode 100644 index 000000000000..8016c317b486 --- /dev/null +++ b/net-wireless/mdk/files/3.6-makefile.patch @@ -0,0 +1,37 @@ +--- Makefile 2007-07-18 16:16:54.000000000 +0200 ++++ Makefile.new 2009-04-01 09:17:06.000000000 +0200 +@@ -1,8 +1,8 @@ +-CFLAGS = -g -O3 -Wall -Wextra +-LINKFLAGS = -lpthread ++CFLAGS += ++LINKFLAGS = $(LDFLAGS) + + DESTDIR = +-PREFIX = /usr/local ++PREFIX = /usr/ + SBINDIR = $(PREFIX)/sbin + + OSD = osdep +--- Makefile 2009-04-01 09:24:46.000000000 +0200 ++++ Makefile.new 2009-04-01 09:25:08.000000000 +0200 +@@ -6,7 +6,7 @@ + SBINDIR = $(PREFIX)/sbin + + OSD = osdep +-LIBS = -L$(OSD) -l$(OSD) ++LIBS = -L$(OSD) -l$(OSD) -lpthread + LIBOSD = $(OSD)/lib$(OSD).so + + +@@ -10,9 +10,9 @@ + LIBOSD = $(OSD)/lib$(OSD).so + + +-all: osd mdk3 ++all: mdk3 + +-osd: ++$(OSD)/libosdep.a: + $(MAKE) -C $(OSD) + + $(LIBOSD): diff --git a/net-wireless/mdk/files/fix_wids_mdk3_v5.patch b/net-wireless/mdk/files/fix_wids_mdk3_v5.patch new file mode 100644 index 000000000000..6013a59b9b1a --- /dev/null +++ b/net-wireless/mdk/files/fix_wids_mdk3_v5.patch @@ -0,0 +1,21 @@ +diff -ur mdk3-v5-orig/mdk3.c mdk3-v5/mdk3.c +--- mdk3-v5-orig/mdk3.c 2008-11-10 21:45:02.000000000 +0100 ++++ mdk3-v5/mdk3.c 2009-01-10 01:47:03.546875000 +0100 +@@ -1092,10 +1092,13 @@ + { + struct clistwidsclient *first = c; + +- do { +- if (!(memcmp(c->mac, mac, mac_len))) return c; +- c = c->next; +- } while (c != first); ++ if (c != NULL) ++ { ++ do { ++ if (c->mac != NULL && !(memcmp(c->mac, mac, mac_len))) return c; ++ c = c->next; ++ } while (c != NULL && c != first); ++ } + + return NULL; + } diff --git a/net-wireless/mdk/mdk-3.6-r1.ebuild b/net-wireless/mdk/mdk-3.6-r1.ebuild new file mode 100644 index 000000000000..8c21fdf4cd98 --- /dev/null +++ b/net-wireless/mdk/mdk-3.6-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +inherit eutils toolchain-funcs + +MY_P="${PN}${PV/./-v}" +DESCRIPTION="Wireless injection tool with various functions" +HOMEPAGE="http://homepages.tu-darmstadt.de/~p_larbig/wlan" +SRC_URI="${HOMEPAGE}/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-makefile.patch + epatch "${FILESDIR}"/fix_wids_mdk3_v5.patch +} + +src_compile() { + emake CC=$(tc-getCC) +} + +src_install() { + emake DESTDIR="${ED}" install + + insinto /usr/share/${PN} + doins -r useful_files + + dohtml docs/* + dodoc AUTHORS CHANGELOG TODO +} diff --git a/net-wireless/mdk/metadata.xml b/net-wireless/mdk/metadata.xml new file mode 100644 index 000000000000..2b9b4266ca5b --- /dev/null +++ b/net-wireless/mdk/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zerochaos@gentoo.org</email> + <name>Rick Farina</name> + </maintainer> +</pkgmetadata> |