From: | "Jeroen Roovers (jer)" <jer@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/amap: amap-5.4.ebuild ChangeLog amap-5.3.ebuild |
Date: | Wed, 01 Jun 2011 00:18:11 |
Message-Id: | 20110601001800.A6E9620054@flycatcher.gentoo.org |
1 | jer 11/06/01 00:18:00 |
2 | |
3 | Modified: ChangeLog |
4 | Added: amap-5.4.ebuild |
5 | Removed: amap-5.3.ebuild |
6 | Log: |
7 | Version bump. |
8 | |
9 | (Portage version: 2.2.0_alpha37/cvs/Linux x86_64) |
10 | |
11 | Revision Changes Path |
12 | 1.47 net-analyzer/amap/ChangeLog |
13 | |
14 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/amap/ChangeLog?rev=1.47&view=markup |
15 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/amap/ChangeLog?rev=1.47&content-type=text/plain |
16 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/amap/ChangeLog?r1=1.46&r2=1.47 |
17 | |
18 | Index: ChangeLog |
19 | =================================================================== |
20 | RCS file: /var/cvsroot/gentoo-x86/net-analyzer/amap/ChangeLog,v |
21 | retrieving revision 1.46 |
22 | retrieving revision 1.47 |
23 | diff -u -r1.46 -r1.47 |
24 | --- ChangeLog 19 Apr 2011 20:58:06 -0000 1.46 |
25 | +++ ChangeLog 1 Jun 2011 00:18:00 -0000 1.47 |
26 | @@ -1,6 +1,12 @@ |
27 | # ChangeLog for net-analyzer/amap |
28 | # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 | -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/amap/ChangeLog,v 1.46 2011/04/19 20:58:06 jer Exp $ |
30 | +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/amap/ChangeLog,v 1.47 2011/06/01 00:18:00 jer Exp $ |
31 | + |
32 | +*amap-5.4 (01 Jun 2011) |
33 | + |
34 | + 01 Jun 2011; Jeroen Roovers <jer@g.o> -amap-5.3.ebuild, |
35 | + +amap-5.4.ebuild: |
36 | + Version bump. |
37 | |
38 | *amap-5.3 (19 Apr 2011) |
39 | |
40 | |
41 | |
42 | |
43 | 1.1 net-analyzer/amap/amap-5.4.ebuild |
44 | |
45 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/amap/amap-5.4.ebuild?rev=1.1&view=markup |
46 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/amap/amap-5.4.ebuild?rev=1.1&content-type=text/plain |
47 | |
48 | Index: amap-5.4.ebuild |
49 | =================================================================== |
50 | # Copyright 1999-2011 Gentoo Foundation |
51 | # Distributed under the terms of the GNU General Public License v2 |
52 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/amap/amap-5.4.ebuild,v 1.1 2011/06/01 00:18:00 jer Exp $ |
53 | |
54 | EAPI="2" |
55 | |
56 | inherit eutils toolchain-funcs |
57 | |
58 | DESCRIPTION="A network scanning tool for pentesters" |
59 | HOMEPAGE="http://www.thc.org/thc-amap/" |
60 | SRC_URI="http://www.thc.org/releases/${P}.tar.gz" |
61 | |
62 | LICENSE="GPL-2" |
63 | SLOT="0" |
64 | KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
65 | IUSE="ssl" |
66 | |
67 | DEPEND=" |
68 | dev-libs/libpcre |
69 | ssl? ( >=dev-libs/openssl-0.9.6j ) |
70 | " |
71 | RDEPEND=" |
72 | ${DEPEND} |
73 | !sci-biology/amap |
74 | " |
75 | |
76 | src_prepare() { |
77 | rm -rf pcre-3.9 |
78 | sed -i -e "s:etc/:share/amap/:g" amap-lib.c || die "sed amap-lib.c failed" |
79 | # Above change requires below change. See sources... |
80 | sed -i '/strlen(AMAP_PREFIX/s: 5 : 12 :' amap-lib.c || die "sed amap-lib.c failed" |
81 | sed -i 's:/usr/local:/usr:' amap.h || die "sed amap.h failed" |
82 | # Files to be updated are at different location, bug 207839. |
83 | sed -i '/AMAP_RESOURCE/s:www:freeworld:' amap.h || die "sed amap.h failed" |
84 | |
85 | sed -i '/DATADIR/s:/etc:/share/amap:' Makefile.am || die "sed Makefile.am failed" |
86 | |
87 | epatch "${FILESDIR}"/4.8-system-pcre.patch |
88 | } |
89 | |
90 | src_configure() { |
91 | # has it's own stupid custom configure script |
92 | ./configure || die "configure failed" |
93 | sed -i \ |
94 | -e '/^XDEFINES=/s:=.*:=:' \ |
95 | -e '/^XLIBS=/s:=.*:=:' \ |
96 | -e '/^XLIBPATHS/s:=.*:=:' \ |
97 | -e '/^XIPATHS=/s:=.*:=:' \ |
98 | -e "/^CC=/d" \ |
99 | Makefile || die "pruning vars" |
100 | if use ssl ; then |
101 | sed -i \ |
102 | -e '/^XDEFINES=/s:=:=-DOPENSSL:' \ |
103 | -e '/^XLIBS=/s:=:=-lcrypto -lssl:' \ |
104 | Makefile || die "adding ssl" |
105 | fi |
106 | sed -i Makefile \ |
107 | -e '/-o amap/{s|(OPT) |(OPT) $(LDFLAGS) |g}' \ |
108 | || die "respecting LDFLAGS failed" |
109 | } |
110 | |
111 | src_compile() { |
112 | emake CC=$(tc-getCC) OPT="${CFLAGS}" || die "emake failed" |
113 | } |
114 | |
115 | src_install() { |
116 | dobin amap amapcrap || die "dobin failed" |
117 | insinto /usr/share/amap |
118 | doins appdefs.* || die "doins failed" |
119 | |
120 | doman ${PN}.1 |
121 | dodoc README TODO CHANGES |
122 | } |