From: | "Jeroen Roovers (jer)" <jer@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/hping: ChangeLog hping-3_pre20051105-r3.ebuild hping-3_pre20051105-r1.ebuild hping-3_pre20051105-r2.ebuild |
Date: | Tue, 30 Nov 2010 21:30:58 |
Message-Id: | 20101130213045.AB4AD20057@flycatcher.gentoo.org |
1 | jer 10/11/30 21:30:45 |
2 | |
3 | Modified: ChangeLog |
4 | Added: hping-3_pre20051105-r3.ebuild |
5 | Removed: hping-3_pre20051105-r1.ebuild |
6 | hping-3_pre20051105-r2.ebuild |
7 | Log: |
8 | Fix overflow in scan.c (bug #340251). Simplify src_configure and export CC there. Set RDEPEND. |
9 | |
10 | (Portage version: 2.2.0_alpha6/cvs/Linux i686) |
11 | |
12 | Revision Changes Path |
13 | 1.50 net-analyzer/hping/ChangeLog |
14 | |
15 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/hping/ChangeLog?rev=1.50&view=markup |
16 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/hping/ChangeLog?rev=1.50&content-type=text/plain |
17 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/hping/ChangeLog?r1=1.49&r2=1.50 |
18 | |
19 | Index: ChangeLog |
20 | =================================================================== |
21 | RCS file: /var/cvsroot/gentoo-x86/net-analyzer/hping/ChangeLog,v |
22 | retrieving revision 1.49 |
23 | retrieving revision 1.50 |
24 | diff -u -r1.49 -r1.50 |
25 | --- ChangeLog 11 May 2010 04:08:17 -0000 1.49 |
26 | +++ ChangeLog 30 Nov 2010 21:30:45 -0000 1.50 |
27 | @@ -1,6 +1,14 @@ |
28 | # ChangeLog for net-analyzer/hping |
29 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
30 | -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/hping/ChangeLog,v 1.49 2010/05/11 04:08:17 jer Exp $ |
31 | +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/hping/ChangeLog,v 1.50 2010/11/30 21:30:45 jer Exp $ |
32 | + |
33 | +*hping-3_pre20051105-r3 (30 Nov 2010) |
34 | + |
35 | + 30 Nov 2010; Jeroen Roovers <jer@g.o> -hping-3_pre20051105-r1.ebuild, |
36 | + -hping-3_pre20051105-r2.ebuild, +hping-3_pre20051105-r3.ebuild, |
37 | + +files/hping-3_pre20051105-scan-overflow.patch: |
38 | + Fix overflow in scan.c (bug #340251). Simplify src_configure and export CC |
39 | + there. Set RDEPEND. |
40 | |
41 | *hping-3_pre20051105-r2 (11 May 2010) |
42 | |
43 | |
44 | |
45 | |
46 | 1.1 net-analyzer/hping/hping-3_pre20051105-r3.ebuild |
47 | |
48 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/hping/hping-3_pre20051105-r3.ebuild?rev=1.1&view=markup |
49 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/hping/hping-3_pre20051105-r3.ebuild?rev=1.1&content-type=text/plain |
50 | |
51 | Index: hping-3_pre20051105-r3.ebuild |
52 | =================================================================== |
53 | # Copyright 1999-2010 Gentoo Foundation |
54 | # Distributed under the terms of the GNU General Public License v2 |
55 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/hping/hping-3_pre20051105-r3.ebuild,v 1.1 2010/11/30 21:30:45 jer Exp $ |
56 | |
57 | EAPI="2" |
58 | |
59 | inherit eutils multilib toolchain-funcs |
60 | |
61 | MY_P="${PN}${PV//_pre/-}" |
62 | DESCRIPTION="A ping-like TCP/IP packet assembler/analyzer" |
63 | HOMEPAGE="http://www.hping.org" |
64 | SRC_URI="http://www.hping.org/${MY_P}.tar.gz" |
65 | |
66 | LICENSE="GPL-2" |
67 | SLOT="0" |
68 | KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86" |
69 | IUSE="tcl" |
70 | |
71 | S="${WORKDIR}/${MY_P}" |
72 | |
73 | DEPEND="net-libs/libpcap |
74 | tcl? ( dev-lang/tcl )" |
75 | RDEPEND="${DEPEND}" |
76 | |
77 | src_prepare() { |
78 | epatch \ |
79 | "${FILESDIR}"/${P}.patch \ |
80 | "${FILESDIR}"/bytesex.h.patch \ |
81 | "${FILESDIR}"/${P}-tcl.patch \ |
82 | "${FILESDIR}"/${P}-ldflags.patch \ |
83 | "${FILESDIR}"/${P}-libtcl.patch \ |
84 | "${FILESDIR}"/${P}-scan-overflow.patch |
85 | |
86 | # Correct hard coded values |
87 | sed -i Makefile.in \ |
88 | -e '/^CC=/d' \ |
89 | -e '/^AR=/d' \ |
90 | -e '/^RANLIB=/d' \ |
91 | -e 's:/usr/local/lib:/usr/$(LIBDIR):g' \ |
92 | -e 's:-O2:$(CFLAGS):' \ |
93 | || die "sed Makefile.in failed" |
94 | |
95 | # Change name from hping2 to hping3 |
96 | sed -i docs/hping3.8 \ |
97 | -e 's|HPING2|HPING|g' \ |
98 | -e 's|hping2|hping|g' \ |
99 | || die "sed hping3.8 failed" |
100 | } |
101 | |
102 | src_configure() { |
103 | tc-export CC |
104 | |
105 | # Not an autotools type configure: |
106 | sh configure $(use tcl || echo --no-tcl) || die "configure failed" |
107 | } |
108 | |
109 | src_compile() { |
110 | emake \ |
111 | DEBUG="" \ |
112 | "CFLAGS=${CFLAGS}" \ |
113 | "AR=$(tc-getAR)" \ |
114 | "RANLIB=$(tc-getRANLIB)" \ |
115 | "LIBDIR=$(get_libdir)" \ |
116 | || die "emake failed" |
117 | } |
118 | |
119 | src_install () { |
120 | dosbin hping3 |
121 | dosym /usr/sbin/hping3 /usr/sbin/hping |
122 | dosym /usr/sbin/hping3 /usr/sbin/hping2 |
123 | |
124 | newman docs/hping3.8 hping.8 |
125 | |
126 | dodoc INSTALL NEWS README TODO AUTHORS BUGS CHANGES |
127 | } |