wepcrackgui: added

This commit is contained in:
jensp 2010-05-27 10:11:35 +00:00
parent a37c9d0e77
commit bbd66043c9
2 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,2 @@
EBUILD wepcrackgui-9999.ebuild 1766 RMD160 7cd3de696e729e82ac4762e4bbfdeef90442ec5d SHA1 019e5dba7afb2b151a402d9537705df4d7e25a25 SHA256 ba57c0df361ca81ee655684ddeb3c7dfa0ab83c1072fea812858e514241c16bf
MISC ViewConfiguration.xml 392 RMD160 cffa6da9e1cfb62f6d51c0b5f68906414ee29e34 SHA1 84cb994c44edc6f709d832a72a53739e6cc609bd SHA256 876837668f616537512e7eccce35f7e00ee89eb52880e23707ec60ca77db3e75

View file

@ -0,0 +1,68 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
inherit git mono multilib
DESCRIPTION="A GUI for aircrack-ng written in C#"
HOMEPAGE=""
SRC_URI=""
EGIT_REPO_URI="git://wepcrackgui.git.sourceforge.net/gitroot/wepcrackgui/wepcrackgui"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64"
IUSE="debug gtk qt4"
DEPEND="dev-lang/mono
gtk? ( dev-dotnet/gtk-sharp )
qt? ( kde-base/kdebindings-csharp )"
RDEPEND="${DEPEND}
net-analyzer/aircrack-ng
net-wireless/mdk"
src_configure() {
local _conf
if use debug ; then
_conf=DEBUG
else
_conf=RELEASE
fi
echo $_conf >> _conf
./configure --prefix=/usr --config=$_conf
sed -i 's|QyotoTest||g' Makefile # tmp workaround
}
src_install() {
local _rls
if [[ $(cat _conf) == RELEASE ]]; then
_rls=Release
else
_rls=Debug
fi
insinto /usr/$(get_libdir)/${PN}/
doins WepCrack/bin/$_rls/Unbuffer.exe || die
doins WepCrack/bin/$_rls/TestRun.exe || die
doins WepCrack/bin/$_rls/WepCrack.dll || die
doins WepCrack/bin/$_rls/WepCrackInterfaces.dll || die
if use gtk ; then
doins GWepCrackGui/bin/$_rls/GWepCrackGui.exe || die
doins GWepCrackGui/bin/$_rls/WepCrackGtk.dll || die
sed -i "s|./|/usr/$(get_libdir)/${PN}/|" GWepCrackGui/gwepcrack || die
dobin GWepCrackGui/gwepcrack || die
fi
if use qt4 ; then
doins QWepCrackGui/bin/$_rls/QWepCrackGui.exe || die
doins QWepCrackGui/bin/$_rls/WepCrackQt.dll || die
sed -i "s|./|/usr/$(get_libdir)/${PN}/|" QWepCrackGui/qwepcrack || die
dobin QWepCrackGui/qwepcrack || die
fi
insinto /usr/share/${PN}/
doins WepCrack/SSID.txt || die
doins WepCrack/oui.txt || die
insinto /usr/share/${PN}/wordlists
doins WepCrack/wordlists/password.lst || die
dodoc TODO README || die
}