]> Pileus Git - ~andy/sunrise/commitdiff
net-wireless/cowpatty: net-wireless/cowpaty Initial checkin
authorJustin Lecher <jlec@gentoo.org>
Tue, 7 Apr 2009 11:31:45 +0000 (11:31 +0000)
committerJustin Lecher <jlec@gentoo.org>
Tue, 7 Apr 2009 11:31:45 +0000 (11:31 +0000)
svn path=/sunrise/; revision=8208

net-wireless/cowpatty/ChangeLog [new file with mode: 0644]
net-wireless/cowpatty/Manifest [new file with mode: 0644]
net-wireless/cowpatty/cowpatty-4.3.ebuild [new file with mode: 0644]
net-wireless/cowpatty/files/4.3-Makefile.patch [new file with mode: 0644]
net-wireless/cowpatty/metadata.xml [new file with mode: 0644]

diff --git a/net-wireless/cowpatty/ChangeLog b/net-wireless/cowpatty/ChangeLog
new file mode 100644 (file)
index 0000000..d50b1f8
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for net-wireless/cowpatty
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+* cowpatty-4.3 (07 Apr 2009)
+
+  07 Apr 2009; Justin Lecher (jlec) <jlec@j-schmitz.net>
+  +files/4.3-Makefile.patch, +metadata.xml:
+  Initial checkin to sunrise
+  pending bug is 265284
diff --git a/net-wireless/cowpatty/Manifest b/net-wireless/cowpatty/Manifest
new file mode 100644 (file)
index 0000000..1761e60
--- /dev/null
@@ -0,0 +1,5 @@
+AUX 4.3-Makefile.patch 1543 RMD160 5cacd2e2f702d01d5e9d27dc54d574efc8e60f34 SHA1 8ee6f1ac8ef26f6b6e4e06f21336a27776ac5766 SHA256 81bc36ea21f6df4f07859af893be1fc03c5877aa58a733cded81f7e47f39f582
+DIST cowpatty-4.3.tgz 103720 RMD160 3eff935f1532f84c60bfd576801be4d6911964d1 SHA1 8b7cb2015d0534031827f2f06135bf5cf5929d35 SHA256 b82154c9183fed3c26226c124f5e50ef38adaaafc84c5a13d9256b1ebd489bca
+EBUILD cowpatty-4.3.ebuild 857 RMD160 0edcdd0c961fff1a9f5d6df2c511668a7ba9b770 SHA1 badf844d4051f8fbb7e7d96c03c2dafa029b00ad SHA256 3d827f9e1b84958b95da0d2d8d791e654faedb79aecd1b479233f83915d56374
+MISC ChangeLog 306 RMD160 73c744d691bd8c59eb346d0740f72e91b8bd2c80 SHA1 6214c885fc8492913519b4b4288eb158561e3c26 SHA256 0cff36fa84c069235c2b0b9a72f77ffb26a79c5eaf31f69c6ea83d4f5dce4b67
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/net-wireless/cowpatty/cowpatty-4.3.ebuild b/net-wireless/cowpatty/cowpatty-4.3.ebuild
new file mode 100644 (file)
index 0000000..e6712fa
--- /dev/null
@@ -0,0 +1,36 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Audit the security of pre-shared keys selected in WiFi Protected Access (WPA) networks"
+HOMEPAGE="http://www.willhackforsushi.com/Cowpatty.html"
+SRC_URI="http://www.willhackforsushi.com/code/${PN}/${PV}/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-libs/openssl
+       net-libs/libpcap"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       epatch "${FILESDIR}"/${PV}-Makefile.patch
+}
+
+src_compile() {
+       emake CC=$(tc-getCC) || \
+               die "emake failed"
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "installation failed"
+       dodoc README AUTHORS CHANGELOG TODO FAQ || die "nothing to read"
+       insinto /usr/share/${PN}
+       doins *.dump dict || die "no acessory files"
+}
diff --git a/net-wireless/cowpatty/files/4.3-Makefile.patch b/net-wireless/cowpatty/files/4.3-Makefile.patch
new file mode 100644 (file)
index 0000000..32b18ff
--- /dev/null
@@ -0,0 +1,53 @@
+--- Makefile   2008-03-20 15:58:23.000000000 +0100
++++ Makefile.new       2009-04-07 12:33:38.000000000 +0200
+@@ -8,32 +8,24 @@
+ # <dragorn> make is a twisted beast
+ ##################################
+ LDLIBS                = -lpcap
+-CFLAGS                = -pipe -Wall -DOPENSSL 
+-CFLAGS                += -O2
++CFLAGS                += -DOPENSSL 
+ LDLIBS                += -lcrypto
+-CFLAGS                += -g3 -ggdb
+ #CFLAGS               += -static
+ PROGOBJ               = md5.o sha1.o utils.o cowpatty.o genpmk.o
+ PROG          = cowpatty genpmk
+-BINDIR                = /usr/local/bin
++BINDIR                = /usr/bin
+-all: $(PROGOBJ) $(PROG)
++all: $(PROG)
+-cowpatty: common.h md5.c md5.h sha1.h cowpatty.c cowpatty.h sha1.c \
++cowpatty: $(PROGOBJ) common.h md5.c md5.h sha1.h cowpatty.c cowpatty.h sha1.c \
+             sha1.h utils.c utils.h
+-      $(CC) $(CFLAGS) cowpatty.c -o cowpatty utils.o md5.o sha1.o $(LDLIBS)
++      $(CC) $(CFLAGS) $(LDFLAGS) cowpatty.c -o cowpatty utils.o md5.o sha1.o $(LDLIBS)
+-genpmk: genpmk.c cowpatty.h utils.h sha1.h common.h
+-      $(CC) $(CFLAGS) genpmk.c -o genpmk utils.o sha1.o $(LDLIBS)
++genpmk: $(PROGOBJ) genpmk.c cowpatty.h utils.h sha1.h common.h
++      $(CC) $(CFLAGS) $(LDFLAGS) genpmk.c -o genpmk utils.o sha1.o $(LDLIBS)
+-utils: utils.c utils.h
+-      $(CC) $(CFLAGS) utils.c -c
+-
+-md5: md5.c md5.h
+-      $(CC) $(CFLAGS) md5.c -c
+-
+-sha1: sha1.c sha1.h
+-      $(CC) $(CFLAGS) sha1.c -c
++%.o: %.c
++      $(CC) $(CFLAGS) -c $<
+ clean:
+       @rm $(PROGOBJ) $(PROG)
+@@ -45,7 +37,7 @@
+ install: all
+       install -d $(DESTDIR)$(BINDIR)
+-      install -m 755 $(PROG) $(BINDIR)$(DESTDIR)
++      install -m 755 $(PROG) $(DESTDIR)$(BINDIR)
+ love:
+       @echo "Not right now, I have a headache."
diff --git a/net-wireless/cowpatty/metadata.xml b/net-wireless/cowpatty/metadata.xml
new file mode 100644 (file)
index 0000000..7e32869
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+</pkgmetadata>