summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/mdk/.mtn2git_empty0
-rw-r--r--packages/mdk/files/.mtn2git_empty0
-rw-r--r--packages/mdk/files/mdk2-ppcfix.patch12
-rw-r--r--packages/mdk/mdk2_v33.bb23
4 files changed, 35 insertions, 0 deletions
diff --git a/packages/mdk/.mtn2git_empty b/packages/mdk/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/mdk/.mtn2git_empty
diff --git a/packages/mdk/files/.mtn2git_empty b/packages/mdk/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/mdk/files/.mtn2git_empty
diff --git a/packages/mdk/files/mdk2-ppcfix.patch b/packages/mdk/files/mdk2-ppcfix.patch
new file mode 100644
index 0000000000..b9d86b6ae1
--- /dev/null
+++ b/packages/mdk/files/mdk2-ppcfix.patch
@@ -0,0 +1,12 @@
+Only in mdk2-v33-ppcfix: mdk2
+diff -ur mdk2-v33/mdk2.c mdk2-v33-ppcfix/mdk2.c
+--- mdk2-v33/mdk2.c 2007-02-22 13:39:43.000000000 -0500
++++ mdk2-v33-ppcfix/mdk2.c 2007-03-03 15:56:50.000000000 -0500
+@@ -7,6 +7,7 @@
+ #include <sys/ioctl.h>
+ #include <netpacket/packet.h>
+ #include <linux/if_ether.h>
++#include <linux/if.h>
+ #include <linux/wireless.h>
+ #include <unistd.h>
+ #include <string.h>
diff --git a/packages/mdk/mdk2_v33.bb b/packages/mdk/mdk2_v33.bb
new file mode 100644
index 0000000000..bd665e2ccd
--- /dev/null
+++ b/packages/mdk/mdk2_v33.bb
@@ -0,0 +1,23 @@
+SECTION = "console/network"
+DESCRIPTION = "ASPj is drunk"
+HOMEPAGE = "http://homepages.tu-darmstadt.de/~p_larbig/wlan/"
+LICENSE = "GPLv2"
+MAINTAINER = "Zero_Chaos <sidhayn@gmail.com>"
+DEPENDS = ""
+RDEPENDS = ""
+PR="r1"
+
+SRC_URI = "http://homepages.tu-darmstadt.de/~p_larbig/wlan/mdk2-${PV}.tar.bz2 \
+ file://mdk2-ppcfix.patch"
+
+LDFLAGS_append = " -lpthread"
+CFLAGS_append = " -I${STAGING_KERNEL_DIR}/include -O3 -pthread"
+
+oe_compile() {
+ oe_runmake CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LD="${LD}" LDFLAGS="${LDFLAGS}"
+}
+
+do_install() {
+ install -d ${D}/${sbindir}
+ install -m 0755 mdk2 ${D}/${sbindir}
+}