1 |
commit: 0b82fc53a1bcfb1041f9e1a0eb8654215f7e2fc6 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 11 00:18:47 2017 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 11 00:44:09 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b82fc53 |
7 |
|
8 |
net-analyzer/hping: Old. |
9 |
|
10 |
Package-Manager: Portage-2.3.13, Repoman-2.3.4 |
11 |
|
12 |
net-analyzer/hping/hping-3_pre20051105-r3.ebuild | 74 ------------------------ |
13 |
1 file changed, 74 deletions(-) |
14 |
|
15 |
diff --git a/net-analyzer/hping/hping-3_pre20051105-r3.ebuild b/net-analyzer/hping/hping-3_pre20051105-r3.ebuild |
16 |
deleted file mode 100644 |
17 |
index 38dfcc336db..00000000000 |
18 |
--- a/net-analyzer/hping/hping-3_pre20051105-r3.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,74 +0,0 @@ |
21 |
-# Copyright 1999-2015 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI="2" |
25 |
- |
26 |
-inherit eutils multilib toolchain-funcs |
27 |
- |
28 |
-MY_P="${PN}${PV//_pre/-}" |
29 |
-DESCRIPTION="A ping-like TCP/IP packet assembler/analyzer" |
30 |
-HOMEPAGE="http://www.hping.org" |
31 |
-SRC_URI="http://www.hping.org/${MY_P}.tar.gz" |
32 |
- |
33 |
-LICENSE="GPL-2" |
34 |
-SLOT="0" |
35 |
-KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc sparc x86" |
36 |
-IUSE="tcl" |
37 |
- |
38 |
-S="${WORKDIR}/${MY_P}" |
39 |
- |
40 |
-DEPEND="net-libs/libpcap |
41 |
- tcl? ( dev-lang/tcl:0 )" |
42 |
-RDEPEND="${DEPEND}" |
43 |
- |
44 |
-src_prepare() { |
45 |
- epatch \ |
46 |
- "${FILESDIR}"/${P}.patch \ |
47 |
- "${FILESDIR}"/bytesex.h.patch \ |
48 |
- "${FILESDIR}"/${P}-tcl.patch \ |
49 |
- "${FILESDIR}"/${P}-ldflags.patch \ |
50 |
- "${FILESDIR}"/${P}-libtcl.patch \ |
51 |
- "${FILESDIR}"/${P}-scan-overflow.patch |
52 |
- |
53 |
- # Correct hard coded values |
54 |
- sed -i Makefile.in \ |
55 |
- -e '/^CC=/d' \ |
56 |
- -e '/^AR=/d' \ |
57 |
- -e '/^RANLIB=/d' \ |
58 |
- -e 's:/usr/local/lib:/usr/$(LIBDIR):g' \ |
59 |
- -e 's:-O2:$(CFLAGS):' \ |
60 |
- || die "sed Makefile.in failed" |
61 |
- |
62 |
- # Change name from hping2 to hping3 |
63 |
- sed -i docs/hping3.8 \ |
64 |
- -e 's|HPING2|HPING|g' \ |
65 |
- -e 's|hping2|hping|g' \ |
66 |
- || die "sed hping3.8 failed" |
67 |
-} |
68 |
- |
69 |
-src_configure() { |
70 |
- tc-export CC |
71 |
- |
72 |
- # Not an autotools type configure: |
73 |
- sh configure $(use tcl || echo --no-tcl) || die "configure failed" |
74 |
-} |
75 |
- |
76 |
-src_compile() { |
77 |
- emake \ |
78 |
- DEBUG="" \ |
79 |
- "CFLAGS=${CFLAGS}" \ |
80 |
- "AR=$(tc-getAR)" \ |
81 |
- "RANLIB=$(tc-getRANLIB)" \ |
82 |
- "LIBDIR=$(get_libdir)" \ |
83 |
- || die "emake failed" |
84 |
-} |
85 |
- |
86 |
-src_install () { |
87 |
- dosbin hping3 |
88 |
- dosym /usr/sbin/hping3 /usr/sbin/hping |
89 |
- dosym /usr/sbin/hping3 /usr/sbin/hping2 |
90 |
- |
91 |
- newman docs/hping3.8 hping.8 |
92 |
- |
93 |
- dodoc INSTALL NEWS README TODO AUTHORS BUGS CHANGES |
94 |
-} |