diff options
author | Dane Smith <c1pher@gentoo.org> | 2010-12-10 18:47:31 +0000 |
---|---|---|
committer | Dane Smith <c1pher@gentoo.org> | 2010-12-10 18:47:31 +0000 |
commit | 9fff2705b29ba5949dfcdba6f708da7df2b8a675 (patch) | |
tree | 8efae87516ee2f83c690bc74de0e2449f1c4a16d /net-wireless | |
parent | Run elibtoolize for FreeMiNT, bug #347317 (diff) | |
download | gentoo-2-9fff2705b29ba5949dfcdba6f708da7df2b8a675.tar.gz gentoo-2-9fff2705b29ba5949dfcdba6f708da7df2b8a675.tar.bz2 gentoo-2-9fff2705b29ba5949dfcdba6f708da7df2b8a675.zip |
Revbump for net-wireless/wepdecrypt. FORTIFY_SOURCE fix wrt bug 340148. Fixed jobserver respect.
(Portage version: 2.2.0_alpha4/cvs/Linux i686)
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/wepdecrypt/ChangeLog | 13 | ||||
-rw-r--r-- | net-wireless/wepdecrypt/files/wepdecrypt-0.8-buffer.patch | 11 | ||||
-rw-r--r-- | net-wireless/wepdecrypt/wepdecrypt-0.8-r1.ebuild | 43 |
3 files changed, 65 insertions, 2 deletions
diff --git a/net-wireless/wepdecrypt/ChangeLog b/net-wireless/wepdecrypt/ChangeLog index 7d846cdca60f..caceca65309e 100644 --- a/net-wireless/wepdecrypt/ChangeLog +++ b/net-wireless/wepdecrypt/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for net-wireless/wepdecrypt -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/wepdecrypt/ChangeLog,v 1.13 2009/11/20 18:06:34 halcy0n Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/wepdecrypt/ChangeLog,v 1.14 2010/12/10 18:47:31 c1pher Exp $ + +*wepdecrypt-0.8-r1 (10 Dec 2010) + + 10 Dec 2010; Dane Smith <c1pher@gentoo.org> +wepdecrypt-0.8-r1.ebuild, + +files/wepdecrypt-0.8-buffer.patch: + Revision bump. + *Addresses FORTIFY_SOURCE wrt bug 340148 via new patch. + *Fixed respect for jobserver. + *Ebuild cleanup. Moved to EAPI 2. Several QA fixes. 20 Nov 2009; Mark Loeser <halcy0n@gentoo.org> wepdecrypt-0.8.ebuild: Move EAPI definition up above the inherit diff --git a/net-wireless/wepdecrypt/files/wepdecrypt-0.8-buffer.patch b/net-wireless/wepdecrypt/files/wepdecrypt-0.8-buffer.patch new file mode 100644 index 000000000000..528816f147b5 --- /dev/null +++ b/net-wireless/wepdecrypt/files/wepdecrypt-0.8-buffer.patch @@ -0,0 +1,11 @@ +--- src/wepclient.c 2006-07-08 19:48:08.000000000 -0400 ++++ src/wepclient.c.new 2010-12-10 13:16:32.000000000 -0500 +@@ -75,7 +75,7 @@ + int server_connection(unsigned char * server_host, int port, char * packet_file, unsigned char * init_key, unsigned char * end_key, unsigned char * decrypted_key, unsigned char * bssid, unsigned char * mode ,int option){ + int sd, read_bytes, write_bytes, i, fd; + char file[11]="local.dump"; +- unsigned char buffer[149], digest[16]; ++ unsigned char buffer[150], digest[16]; + struct sockaddr_in dest; + struct in_addr *host_ip; + struct hostent *host; diff --git a/net-wireless/wepdecrypt/wepdecrypt-0.8-r1.ebuild b/net-wireless/wepdecrypt/wepdecrypt-0.8-r1.ebuild new file mode 100644 index 000000000000..df66788ad376 --- /dev/null +++ b/net-wireless/wepdecrypt/wepdecrypt-0.8-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/wepdecrypt/wepdecrypt-0.8-r1.ebuild,v 1.1 2010/12/10 18:47:31 c1pher Exp $ + +EAPI="2" + +inherit eutils + +DESCRIPTION="Enhanced version of WepAttack a tool for breaking 802.11 WEP keys" +HOMEPAGE="http://wepdecrypt.sourceforge.net/" +SRC_URI="mirror://sourceforge/wepdecrypt/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="X" +RDEPEND="dev-libs/openssl + net-libs/libpcap + sys-libs/zlib + X? ( x11-libs/fltk:1.1 )" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${P}-build.patch" + + #Fix buffer size wrt bug 340148. + epatch "${FILESDIR}/${P}-buffer.patch" + + #Fix respect for jobserver + sed -i 's/make/$(MAKE)/g' Makefile || die "Sed failed" +} + +src_configure() { + # build system is broken and --enabled-gui doesn't work + local myconf="" + ! use X && myconf="--disable-gui" + + econf ${myconf} +} + +src_install() { + emake install DESTDIR="${D}" || die +} |