blob: 28455c5e2dc96d0427c80d043fb23ec4a5510c66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/WiRouterKeyRec/WiRouterKeyRec-1.0.4.ebuild,v 1.2 2011/04/24 13:56:35 mr_bones_ Exp $
EAPI=4
inherit toolchain-funcs
MY_PN="WiRouter_KeyRec"
MY_P="${MY_PN}_${PV}"
DESCRIPTION="Recovery tool for wpa passphrase"
HOMEPAGE="http://www.salvatorefresta.net"
SRC_URI="http://tools.salvatorefresta.net/${MY_P}.zip -> ${P}.zip"
KEYWORDS="~amd64 ~x86"
IUSE=""
LICENSE="GPL-2"
SLOT="0"
DEPEND="app-arch/unzip"
RDEPEND=""
S=${WORKDIR}/${MY_P}
src_prepare () {
sed -i 's/$(CFLAGS)\ -o\ $(EXEC)/$(CFLAGS)\ $(LDFLAGS)\ -o\ $(EXEC)/' Makefile || die
}
src_compile () {
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}
src_install () {
newbin wirouterkeyrec ${PN}
insinto /etc/${PN}
doins "config/agpf_config.lst"
}
|