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