1 |
commit: f061abdd02c8cf63129bb71d677114892386e5eb |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 27 19:39:33 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 27 19:39:55 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f061abdd |
7 |
|
8 |
net-analyzer/tcpdump: Remove automatically added include directories |
9 |
|
10 |
Package-Manager: Portage-2.3.73, Repoman-2.3.17 |
11 |
Bug: https://bugs.gentoo.org/692772 |
12 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
13 |
|
14 |
.../tcpdump/files/tcpdump-4.9.2-includedir.patch | 65 ++++++++++++++++++++++ |
15 |
...tcpdump-9999.ebuild => tcpdump-4.9.2-r1.ebuild} | 27 +++++---- |
16 |
net-analyzer/tcpdump/tcpdump-9999.ebuild | 4 +- |
17 |
3 files changed, 82 insertions(+), 14 deletions(-) |
18 |
|
19 |
diff --git a/net-analyzer/tcpdump/files/tcpdump-4.9.2-includedir.patch b/net-analyzer/tcpdump/files/tcpdump-4.9.2-includedir.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..0f74fa9a8a3 |
22 |
--- /dev/null |
23 |
+++ b/net-analyzer/tcpdump/files/tcpdump-4.9.2-includedir.patch |
24 |
@@ -0,0 +1,65 @@ |
25 |
+--- a/aclocal.m4 |
26 |
++++ b/aclocal.m4 |
27 |
+@@ -534,40 +534,6 @@ |
28 |
+ if test $libpcap = FAIL ; then |
29 |
+ AC_MSG_ERROR(see the INSTALL doc for more info) |
30 |
+ fi |
31 |
+- dnl |
32 |
+- dnl Some versions of Red Hat Linux put "pcap.h" in |
33 |
+- dnl "/usr/include/pcap"; had the LBL folks done so, |
34 |
+- dnl that would have been a good idea, but for |
35 |
+- dnl the Red Hat folks to do so just breaks source |
36 |
+- dnl compatibility with other systems. |
37 |
+- dnl |
38 |
+- dnl We work around this by assuming that, as we didn't |
39 |
+- dnl find a local libpcap, libpcap is in /usr/lib or |
40 |
+- dnl /usr/local/lib and that the corresponding header |
41 |
+- dnl file is under one of those directories; if we don't |
42 |
+- dnl find it in either of those directories, we check to |
43 |
+- dnl see if it's in a "pcap" subdirectory of them and, |
44 |
+- dnl if so, add that subdirectory to the "-I" list. |
45 |
+- dnl |
46 |
+- dnl (We now also put pcap.h in /usr/include/pcap, but we |
47 |
+- dnl leave behind a /usr/include/pcap.h that includes it, |
48 |
+- dnl so you can still just include <pcap.h>.) |
49 |
+- dnl |
50 |
+- AC_MSG_CHECKING(for extraneous pcap header directories) |
51 |
+- if test \( ! -r /usr/local/include/pcap.h \) -a \ |
52 |
+- \( ! -r /usr/include/pcap.h \); then |
53 |
+- if test -r /usr/local/include/pcap/pcap.h; then |
54 |
+- d="/usr/local/include/pcap" |
55 |
+- elif test -r /usr/include/pcap/pcap.h; then |
56 |
+- d="/usr/include/pcap" |
57 |
+- fi |
58 |
+- fi |
59 |
+- if test -z "$d" ; then |
60 |
+- AC_MSG_RESULT(not found) |
61 |
+- else |
62 |
+- $2="-I$d $$2" |
63 |
+- AC_MSG_RESULT(found -- -I$d added) |
64 |
+- fi |
65 |
+ fi |
66 |
+ else |
67 |
+ $1=$libpcap |
68 |
+@@ -1351,11 +1351,4 @@ |
69 |
+ -f "$1/$tmplib/libcrypto.dylib" \); then |
70 |
+ ac_cv_ssleay_path="$1" |
71 |
+ fi |
72 |
+- |
73 |
+- # |
74 |
+- # Make sure we have the headers as well. |
75 |
+- # |
76 |
+- if test -d "$1/include/openssl" -a -f "$1/include/openssl/des.h"; then |
77 |
+- incdir="-I$1/include" |
78 |
+- fi |
79 |
+ ]) |
80 |
+--- a/configure.in |
81 |
++++ b/configure.in |
82 |
+@@ -908,7 +908,6 @@ |
83 |
+ # Put the subdirectories of the libcrypto root directory |
84 |
+ # at the front of the header and library search path. |
85 |
+ # |
86 |
+- CFLAGS="-I$withval/include $CFLAGS" |
87 |
+ LIBS="-L$withval/lib $LIBS" |
88 |
+ fi |
89 |
+ ],[ |
90 |
|
91 |
diff --git a/net-analyzer/tcpdump/tcpdump-9999.ebuild b/net-analyzer/tcpdump/tcpdump-4.9.2-r1.ebuild |
92 |
similarity index 80% |
93 |
copy from net-analyzer/tcpdump/tcpdump-9999.ebuild |
94 |
copy to net-analyzer/tcpdump/tcpdump-4.9.2-r1.ebuild |
95 |
index 5386a5f79ce..7e89e1714aa 100644 |
96 |
--- a/net-analyzer/tcpdump/tcpdump-9999.ebuild |
97 |
+++ b/net-analyzer/tcpdump/tcpdump-4.9.2-r1.ebuild |
98 |
@@ -1,26 +1,22 @@ |
99 |
-# Copyright 1999-2018 Gentoo Foundation |
100 |
+# Copyright 1999-2019 Gentoo Authors |
101 |
# Distributed under the terms of the GNU General Public License v2 |
102 |
|
103 |
-EAPI=6 |
104 |
-inherit flag-o-matic toolchain-funcs user |
105 |
+EAPI=7 |
106 |
+inherit autotools flag-o-matic toolchain-funcs user |
107 |
|
108 |
DESCRIPTION="A Tool for network monitoring and data acquisition" |
109 |
-EGIT_REPO_URI="https://github.com/the-tcpdump-group/tcpdump" |
110 |
HOMEPAGE=" |
111 |
http://www.tcpdump.org/ |
112 |
- ${EGIT_REPO_URI} |
113 |
+ https://github.com/the-tcpdump-group/tcpdump |
114 |
+" |
115 |
+SRC_URI=" |
116 |
+ http://www.tcpdump.org/release/${P}.tar.gz |
117 |
" |
118 |
|
119 |
LICENSE="BSD" |
120 |
SLOT="0" |
121 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
122 |
IUSE="+drop-root libressl smi ssl samba suid test" |
123 |
-if [[ ${PV} == "9999" ]] ; then |
124 |
- inherit git-r3 |
125 |
- KEYWORDS="" |
126 |
-else |
127 |
- SRC_URI="https://github.com/the-${PN}-group/${PN}/archive/${P}.tar.gz" |
128 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
129 |
-fi |
130 |
|
131 |
RDEPEND=" |
132 |
drop-root? ( sys-libs/libcap-ng ) |
133 |
@@ -39,6 +35,9 @@ DEPEND=" |
134 |
dev-lang/perl |
135 |
) |
136 |
" |
137 |
+PATCHES=( |
138 |
+ "${FILESDIR}"/${PN}-4.9.2-includedir.patch |
139 |
+) |
140 |
|
141 |
pkg_setup() { |
142 |
if use drop-root || use suid; then |
143 |
@@ -50,6 +49,10 @@ pkg_setup() { |
144 |
src_prepare() { |
145 |
default |
146 |
|
147 |
+ mv aclocal.m4 acinclude.m4 || die |
148 |
+ |
149 |
+ eautoreconf |
150 |
+ |
151 |
sed -i -e '/^eapon1/d;' tests/TESTLIST || die |
152 |
|
153 |
# bug 630394 |
154 |
|
155 |
diff --git a/net-analyzer/tcpdump/tcpdump-9999.ebuild b/net-analyzer/tcpdump/tcpdump-9999.ebuild |
156 |
index 5386a5f79ce..c4fe962e812 100644 |
157 |
--- a/net-analyzer/tcpdump/tcpdump-9999.ebuild |
158 |
+++ b/net-analyzer/tcpdump/tcpdump-9999.ebuild |
159 |
@@ -1,7 +1,7 @@ |
160 |
-# Copyright 1999-2018 Gentoo Foundation |
161 |
+# Copyright 1999-2019 Gentoo Authors |
162 |
# Distributed under the terms of the GNU General Public License v2 |
163 |
|
164 |
-EAPI=6 |
165 |
+EAPI=7 |
166 |
inherit flag-o-matic toolchain-funcs user |
167 |
|
168 |
DESCRIPTION="A Tool for network monitoring and data acquisition" |