diff options
author | Dane Smith <c1pher@gentoo.org> | 2011-02-22 18:48:52 +0000 |
---|---|---|
committer | Dane Smith <c1pher@gentoo.org> | 2011-02-22 18:48:52 +0000 |
commit | 0003d9c0ea8ef63347eaf8b39a7281cbcba5cd3c (patch) | |
tree | 279ad639b5454a4b8e9af3e4f8500fd436cf50f7 /net-wireless/mdk | |
parent | ppc stable #354939 (diff) | |
download | gentoo-2-0003d9c0ea8ef63347eaf8b39a7281cbcba5cd3c.tar.gz gentoo-2-0003d9c0ea8ef63347eaf8b39a7281cbcba5cd3c.tar.bz2 gentoo-2-0003d9c0ea8ef63347eaf8b39a7281cbcba5cd3c.zip |
Initial commit for net-wireless/mdk wrt bug 265280 and bug 178561.
(Portage version: 2.2.0_alpha24/cvs/Linux x86_64)
Diffstat (limited to 'net-wireless/mdk')
-rw-r--r-- | net-wireless/mdk/ChangeLog | 12 | ||||
-rw-r--r-- | net-wireless/mdk/files/3.6-makefile.patch | 37 | ||||
-rw-r--r-- | net-wireless/mdk/mdk-3.6.ebuild | 37 | ||||
-rw-r--r-- | net-wireless/mdk/metadata.xml | 10 |
4 files changed, 96 insertions, 0 deletions
diff --git a/net-wireless/mdk/ChangeLog b/net-wireless/mdk/ChangeLog new file mode 100644 index 000000000000..a22d69e34ef9 --- /dev/null +++ b/net-wireless/mdk/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for net-wireless/mdk +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/mdk/ChangeLog,v 1.1 2011/02/22 18:48:52 c1pher Exp $ + +*mdk-3.6 (22 Feb 2011) + + 22 Feb 2011; Dane Smith <c1pher@gentoo.org> +files/3.6-makefile.patch, + +mdk-3.6.ebuild, +metadata.xml: + Initial commit for mdk. Moved from the Sunrise overlay wrt bug 265280 and + bug + 178561. Thanks to Justin Lecher (jlec@gentoo.org) for the ebuild. + 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/mdk-3.6.ebuild b/net-wireless/mdk/mdk-3.6.ebuild new file mode 100644 index 000000000000..c14144d674e7 --- /dev/null +++ b/net-wireless/mdk/mdk-3.6.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/mdk/mdk-3.6.ebuild,v 1.1 2011/02/22 18:48:52 c1pher Exp $ + +EAPI="3" +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 ~x86" +IUSE="" + +RDEPEND="net-wireless/aircrack-ng" +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-makefile.patch +} + +src_compile() { + emake CC=$(tc-getCC) || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "Install failed." + + insinto /usr/share/${PN} + doins -r useful_files || die + + dohtml docs/* || die + dodoc AUTHORS CHANGELOG TODO || die +} diff --git a/net-wireless/mdk/metadata.xml b/net-wireless/mdk/metadata.xml new file mode 100644 index 000000000000..2ba872dd9d39 --- /dev/null +++ b/net-wireless/mdk/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>c1pher@gentoo.org</email> + <name>Dane Smith</name> + </maintainer> +</pkgmetadata> + |