1 |
commit: 97e2f3f2950f968d0cdea5eb7c310a353e4b62ba |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 1 10:54:27 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 1 10:54:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97e2f3f2 |
7 |
|
8 |
net-libs/libpcapnav: Do not build test programs in src_install |
9 |
|
10 |
Package-Manager: Portage-3.0.5, Repoman-3.0.1 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
.../files/libpcapnav-0.8-noinst_test.patch | 22 ++++++++++ |
14 |
net-libs/libpcapnav/libpcapnav-0.8-r1.ebuild | 49 ++++++++++++++++++++++ |
15 |
2 files changed, 71 insertions(+) |
16 |
|
17 |
diff --git a/net-libs/libpcapnav/files/libpcapnav-0.8-noinst_test.patch b/net-libs/libpcapnav/files/libpcapnav-0.8-noinst_test.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..7bac55b391e |
20 |
--- /dev/null |
21 |
+++ b/net-libs/libpcapnav/files/libpcapnav-0.8-noinst_test.patch |
22 |
@@ -0,0 +1,22 @@ |
23 |
+--- a/test/Makefile.am |
24 |
++++ b/test/Makefile.am |
25 |
+@@ -5,7 +5,7 @@ |
26 |
+ |
27 |
+ INCLUDES = -I$(top_srcdir)/src |
28 |
+ |
29 |
+-bin_PROGRAMS = pcapnav-test1 pcapnav-offsets \ |
30 |
++check_PROGRAMS = pcapnav-test1 pcapnav-offsets \ |
31 |
+ pcapnav-jump pcapnav-concat pcapnav-filespan |
32 |
+ |
33 |
+ pcapnav_test1_SOURCES = pcapnav-test1.c |
34 |
+@@ -23,10 +23,6 @@ |
35 |
+ pcapnav_filespan_SOURCES = pcapnav-filespan.c |
36 |
+ pcapnav_filespan_LDADD = -L$(top_builddir)/src/ -lpcapnav -lpcap @PCN_LIBADD@ |
37 |
+ |
38 |
+-# don't install any of this stuff |
39 |
+-install-binPROGRAMS: |
40 |
+-uninstall-binPROGRAMS: |
41 |
+- |
42 |
+ EXTRA_DIST = \ |
43 |
+ run-tests.sh \ |
44 |
+ test1.trace test1-correct.be.trace test1-correct.le.trace |
45 |
|
46 |
diff --git a/net-libs/libpcapnav/libpcapnav-0.8-r1.ebuild b/net-libs/libpcapnav/libpcapnav-0.8-r1.ebuild |
47 |
new file mode 100644 |
48 |
index 00000000000..4ac67c9e2d3 |
49 |
--- /dev/null |
50 |
+++ b/net-libs/libpcapnav/libpcapnav-0.8-r1.ebuild |
51 |
@@ -0,0 +1,49 @@ |
52 |
+# Copyright 1999-2020 Gentoo Authors |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI=7 |
56 |
+inherit autotools |
57 |
+ |
58 |
+DESCRIPTION="Libpcap wrapper library to navigate to arbitrary packets in a tcpdump trace file" |
59 |
+HOMEPAGE="http://netdude.sourceforge.net/" |
60 |
+SRC_URI="mirror://sourceforge/netdude/${P}.tar.gz" |
61 |
+ |
62 |
+LICENSE="BSD" |
63 |
+SLOT="0" |
64 |
+KEYWORDS="~amd64 ~arm ~sparc ~x86" |
65 |
+IUSE="doc static-libs" |
66 |
+ |
67 |
+DEPEND="net-libs/libpcap" |
68 |
+RDEPEND="${DEPEND}" |
69 |
+RESTRICT="test" |
70 |
+DOCS=( AUTHORS ChangeLog README ) |
71 |
+PATCHES=( |
72 |
+ "${FILESDIR}"/${P}-includes.patch |
73 |
+ "${FILESDIR}"/${P}-noinst_test.patch |
74 |
+) |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ eautoreconf |
79 |
+} |
80 |
+ |
81 |
+src_configure() { |
82 |
+ econf $(use_enable static-libs static) |
83 |
+} |
84 |
+ |
85 |
+jer_src_compile() { |
86 |
+ emake SUBDIRS="src docs" |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ default |
91 |
+ |
92 |
+ rm -fr "${D}"/usr/share/gtk-doc |
93 |
+ |
94 |
+ if use doc; then |
95 |
+ docinto html |
96 |
+ dodoc -r docs/*.css docs/html/*.html docs/images |
97 |
+ fi |
98 |
+ |
99 |
+ find "${ED}" -name '*.la' -delete || die |
100 |
+} |