1 |
commit: c69e9b1346e6c0e02b363de277e5b60986bf1789 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 6 11:36:23 2017 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 6 11:36:46 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c69e9b13 |
7 |
|
8 |
net-analyzer/ntopng: Clean up patches. |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
net-analyzer/ntopng/files/ntopng-2.4-cxx.patch | 10 +++--- |
13 |
.../ntopng/files/ntopng-2.4-dont-build-ndpi.patch | 4 +-- |
14 |
.../ntopng/files/ntopng-2.4-mysqltool.patch | 4 +-- |
15 |
...configure-3.0.patch => ntopng-3.0-gentoo.patch} | 6 ++-- |
16 |
.../ntopng/files/ntopng-3.0-mysqltool.patch | 4 +-- |
17 |
.../{ntopng-3.0.ebuild => ntopng-3.0-r1.ebuild} | 40 ++++++---------------- |
18 |
6 files changed, 22 insertions(+), 46 deletions(-) |
19 |
|
20 |
diff --git a/net-analyzer/ntopng/files/ntopng-2.4-cxx.patch b/net-analyzer/ntopng/files/ntopng-2.4-cxx.patch |
21 |
index 330f681e754..6de1a43f9b8 100644 |
22 |
--- a/net-analyzer/ntopng/files/ntopng-2.4-cxx.patch |
23 |
+++ b/net-analyzer/ntopng/files/ntopng-2.4-cxx.patch |
24 |
@@ -1,6 +1,5 @@ |
25 |
-diff -ru ntopng-2.4-stable.orig/configure.ac ntopng-2.4-stable/configure.ac |
26 |
---- ntopng-2.4-stable.orig/configure.ac 2016-11-20 03:59:19.928851928 -0800 |
27 |
-+++ ntopng-2.4-stable/configure.ac 2016-11-20 03:59:53.717850915 -0800 |
28 |
+--- a/configure.ac |
29 |
++++ b/configure.ac |
30 |
@@ -341,14 +341,6 @@ |
31 |
GMAKE="make" |
32 |
fi |
33 |
@@ -16,9 +15,8 @@ diff -ru ntopng-2.4-stable.orig/configure.ac ntopng-2.4-stable/configure.ac |
34 |
GIT=`which git` |
35 |
if test x$GIT = x |
36 |
then |
37 |
-diff -ru ntopng-2.4-stable.orig/Makefile.in ntopng-2.4-stable/Makefile.in |
38 |
---- ntopng-2.4-stable.orig/Makefile.in 2016-06-27 12:31:18.000000000 -0700 |
39 |
-+++ ntopng-2.4-stable/Makefile.in 2016-11-20 04:00:31.037849796 -0800 |
40 |
+--- a/Makefile.in |
41 |
++++ b/Makefile.in |
42 |
@@ -4,7 +4,6 @@ |
43 |
SHELL=/bin/sh |
44 |
OS := $(shell uname -s) |
45 |
|
46 |
diff --git a/net-analyzer/ntopng/files/ntopng-2.4-dont-build-ndpi.patch b/net-analyzer/ntopng/files/ntopng-2.4-dont-build-ndpi.patch |
47 |
index b189cbabe28..ec628cd3224 100644 |
48 |
--- a/net-analyzer/ntopng/files/ntopng-2.4-dont-build-ndpi.patch |
49 |
+++ b/net-analyzer/ntopng/files/ntopng-2.4-dont-build-ndpi.patch |
50 |
@@ -1,5 +1,5 @@ |
51 |
---- configure.ac.old 2016-04-25 21:29:36.452888380 +0200 |
52 |
-+++ configure.ac 2016-04-25 21:30:04.679554971 +0200 |
53 |
+--- a/configure.ac.old |
54 |
++++ b/configure.ac |
55 |
@@ -62,13 +62,6 @@ |
56 |
fi |
57 |
|
58 |
|
59 |
diff --git a/net-analyzer/ntopng/files/ntopng-2.4-mysqltool.patch b/net-analyzer/ntopng/files/ntopng-2.4-mysqltool.patch |
60 |
index fd403a2c8bf..a80e966b85d 100644 |
61 |
--- a/net-analyzer/ntopng/files/ntopng-2.4-mysqltool.patch |
62 |
+++ b/net-analyzer/ntopng/files/ntopng-2.4-mysqltool.patch |
63 |
@@ -1,5 +1,5 @@ |
64 |
---- configure.ac.orig 2016-11-19 19:16:20.167724203 +0100 |
65 |
-+++ configure.ac 2016-11-19 19:16:32.684391101 +0100 |
66 |
+--- a/configure.ac |
67 |
++++ b/configure.ac |
68 |
@@ -302,13 +302,7 @@ |
69 |
if test "x$ac_cv_prog_ac_ct_MARIADB" = "xmariadb_config"; then |
70 |
MYSQLTOOL="mariadb_config" |
71 |
|
72 |
diff --git a/net-analyzer/ntopng/files/configure-3.0.patch b/net-analyzer/ntopng/files/ntopng-3.0-gentoo.patch |
73 |
similarity index 87% |
74 |
rename from net-analyzer/ntopng/files/configure-3.0.patch |
75 |
rename to net-analyzer/ntopng/files/ntopng-3.0-gentoo.patch |
76 |
index a2476f5b407..90d7aace545 100644 |
77 |
--- a/net-analyzer/ntopng/files/configure-3.0.patch |
78 |
+++ b/net-analyzer/ntopng/files/ntopng-3.0-gentoo.patch |
79 |
@@ -1,5 +1,5 @@ |
80 |
---- configure.ac.orig 2017-06-09 06:47:34.214516588 +0200 |
81 |
-+++ configure.ac 2017-06-09 06:48:01.547849759 +0200 |
82 |
+--- a/configure.ac |
83 |
++++ b/configure.ac |
84 |
@@ -19,7 +19,6 @@ |
85 |
# On CentOS 6 `git rev-list HEAD --count` does not work |
86 |
# |
87 |
@@ -42,8 +42,6 @@ |
88 |
if test -d "/usr/include/openssl"; then : |
89 |
AC_DEFINE_UNQUOTED(NO_SSL_DL, 1, [has openssl]) |
90 |
SSL_INC="`pkg-config --cflags libssl` -I/usr/include/openssl" |
91 |
---- configure.ac.orig 2017-06-09 09:58:17.021114895 +0200 |
92 |
-+++ configure.ac 2017-06-09 09:58:24.227781519 +0200 |
93 |
@@ -53,15 +53,6 @@ |
94 |
SSL_LIB="`pkg-config --libs libssl` -lssl -lcrypto" |
95 |
fi |
96 |
|
97 |
diff --git a/net-analyzer/ntopng/files/ntopng-3.0-mysqltool.patch b/net-analyzer/ntopng/files/ntopng-3.0-mysqltool.patch |
98 |
index e433f4e9559..4d2244b582b 100644 |
99 |
--- a/net-analyzer/ntopng/files/ntopng-3.0-mysqltool.patch |
100 |
+++ b/net-analyzer/ntopng/files/ntopng-3.0-mysqltool.patch |
101 |
@@ -1,5 +1,5 @@ |
102 |
---- configure.ac.orig 2017-06-09 09:52:26.387783657 +0200 |
103 |
-+++ configure.ac 2017-06-09 09:54:53.361116113 +0200 |
104 |
+--- a/configure.ac |
105 |
++++ b/configure.ac |
106 |
@@ -335,13 +335,7 @@ |
107 |
if test "x$ac_cv_prog_ac_ct_MARIADB" = "xmariadb_config"; then |
108 |
MYSQLTOOL="mariadb_config" |
109 |
|
110 |
diff --git a/net-analyzer/ntopng/ntopng-3.0.ebuild b/net-analyzer/ntopng/ntopng-3.0-r1.ebuild |
111 |
similarity index 61% |
112 |
rename from net-analyzer/ntopng/ntopng-3.0.ebuild |
113 |
rename to net-analyzer/ntopng/ntopng-3.0-r1.ebuild |
114 |
index 234efdce69c..3fe29fa7818 100644 |
115 |
--- a/net-analyzer/ntopng/ntopng-3.0.ebuild |
116 |
+++ b/net-analyzer/ntopng/ntopng-3.0-r1.ebuild |
117 |
@@ -1,8 +1,8 @@ |
118 |
# Copyright 1999-2017 Gentoo Foundation |
119 |
# Distributed under the terms of the GNU General Public License v2 |
120 |
|
121 |
-EAPI=5 |
122 |
-inherit autotools eutils user toolchain-funcs |
123 |
+EAPI=6 |
124 |
+inherit autotools user toolchain-funcs |
125 |
|
126 |
DESCRIPTION="Network traffic analyzer with web interface" |
127 |
HOMEPAGE="http://www.ntop.org/" |
128 |
@@ -11,7 +11,6 @@ SRC_URI="https://github.com/ntop/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
129 |
LICENSE="GPL-3" |
130 |
SLOT="0" |
131 |
KEYWORDS="~amd64 ~x86" |
132 |
-IUSE="" |
133 |
|
134 |
DEPEND="dev-db/sqlite:3 |
135 |
dev-python/pyzmq |
136 |
@@ -28,38 +27,19 @@ DEPEND="dev-db/sqlite:3 |
137 |
virtual/libmysqlclient" |
138 |
RDEPEND="${DEPEND} |
139 |
dev-db/redis" |
140 |
+PATCHES=( |
141 |
+ "${FILESDIR}"/${P}-gentoo.patch |
142 |
+ "${FILESDIR}"/${P}-mysqltool.patch |
143 |
+) |
144 |
|
145 |
src_prepare() { |
146 |
+ sed -e "s/@VERSION@/${PV}/g;s/@SHORT_VERSION@/${PV}/g" < "${S}/configure.seed" > "${S}/configure.ac" || die |
147 |
+ |
148 |
default |
149 |
- cat "${S}/configure.seed" | sed "s/@VERSION@/${PV}/g" | sed "s/@SHORT_VERSION@/${PV}/g" > "${S}/configure.ac" |
150 |
- epatch "${FILESDIR}/configure-${PV}.patch" |
151 |
- epatch "${FILESDIR}/${P}-mysqltool.patch" |
152 |
-# epatch "${FILESDIR}/${P}-dont-build-ndpi.patch" |
153 |
-# epatch "${FILESDIR}/${P}-mysqltool.patch" |
154 |
-# epatch "${FILESDIR}/${P}-cxx.patch" |
155 |
-# sed -i 's/exit$/exit 1/g' "${S}/configure.ac" "${S}/nDPI/configure.ac" |
156 |
- eautoreconf |
157 |
|
158 |
-# cd "${S}/nDPI" |
159 |
-# eautoreconf |
160 |
+ eautoreconf |
161 |
} |
162 |
|
163 |
-# src_configure() { |
164 |
-# tc-export CC CXX LD NM OBJDUMP PKG_CONFIG |
165 |
-# cd "${S}/nDPI" |
166 |
-# econf |
167 |
-# cd "${S}" |
168 |
-# econf |
169 |
-# } |
170 |
-# |
171 |
-# src_compile() { |
172 |
-# cd "${S}/nDPI" |
173 |
-# emake |
174 |
-# |
175 |
-# cd "${S}" |
176 |
-# emake |
177 |
-# } |
178 |
- |
179 |
src_install() { |
180 |
SHARE_NTOPNG_DIR="${EPREFIX}/usr/share/${PN}" |
181 |
dodir ${SHARE_NTOPNG_DIR} |
182 |
@@ -88,5 +68,5 @@ pkg_setup() { |
183 |
} |
184 |
|
185 |
pkg_postinst() { |
186 |
- elog "ntopng default creadential are user='admin' password='admin'" |
187 |
+ elog "ntopng default credentials are user='admin' password='admin'" |
188 |
} |