net-analyzer/ntopng: Clean up patches.
authorJeroen Roovers <jer@gentoo.org>
Wed, 6 Sep 2017 11:36:23 +0000 (13:36 +0200)
committerJeroen Roovers <jer@gentoo.org>
Wed, 6 Sep 2017 11:36:46 +0000 (13:36 +0200)
Package-Manager: Portage-2.3.8, Repoman-2.3.3

net-analyzer/ntopng/files/ntopng-2.4-cxx.patch
net-analyzer/ntopng/files/ntopng-2.4-dont-build-ndpi.patch
net-analyzer/ntopng/files/ntopng-2.4-mysqltool.patch
net-analyzer/ntopng/files/ntopng-3.0-gentoo.patch [moved from net-analyzer/ntopng/files/configure-3.0.patch with 87% similarity]
net-analyzer/ntopng/files/ntopng-3.0-mysqltool.patch
net-analyzer/ntopng/ntopng-3.0-r1.ebuild [moved from net-analyzer/ntopng/ntopng-3.0.ebuild with 61% similarity]

index 330f681e75479114ae064148f25c714e941c484c..6de1a43f9b8e7500072683b2645304491fe0afd1 100644 (file)
@@ -1,6 +1,5 @@
-diff -ru ntopng-2.4-stable.orig/configure.ac ntopng-2.4-stable/configure.ac
---- ntopng-2.4-stable.orig/configure.ac        2016-11-20 03:59:19.928851928 -0800
-+++ ntopng-2.4-stable/configure.ac     2016-11-20 03:59:53.717850915 -0800
+--- a/configure.ac
++++ b/configure.ac
 @@ -341,14 +341,6 @@
        GMAKE="make"
  fi
@@ -16,9 +15,8 @@ diff -ru ntopng-2.4-stable.orig/configure.ac ntopng-2.4-stable/configure.ac
  GIT=`which git`
  if test x$GIT = x
  then
-diff -ru ntopng-2.4-stable.orig/Makefile.in ntopng-2.4-stable/Makefile.in
---- ntopng-2.4-stable.orig/Makefile.in 2016-06-27 12:31:18.000000000 -0700
-+++ ntopng-2.4-stable/Makefile.in      2016-11-20 04:00:31.037849796 -0800
+--- a/Makefile.in
++++ b/Makefile.in
 @@ -4,7 +4,6 @@
  SHELL=/bin/sh
  OS := $(shell uname -s)
index b189cbabe285948fde4cab07bfed6ee452a64a4f..ec628cd32242c994a22973268a3116c0e02cdd62 100644 (file)
@@ -1,5 +1,5 @@
---- configure.ac.old   2016-04-25 21:29:36.452888380 +0200
-+++ configure.ac       2016-04-25 21:30:04.679554971 +0200
+--- a/configure.ac.old
++++ b/configure.ac
 @@ -62,13 +62,6 @@
  fi
  
index fd403a2c8bf2d0957be5d6e882f140949190bc3f..a80e966b85deb8aefb3510897d7540ff61aeb14e 100644 (file)
@@ -1,5 +1,5 @@
---- configure.ac.orig  2016-11-19 19:16:20.167724203 +0100
-+++ configure.ac       2016-11-19 19:16:32.684391101 +0100
+--- a/configure.ac
++++ b/configure.ac
 @@ -302,13 +302,7 @@
  if test "x$ac_cv_prog_ac_ct_MARIADB" = "xmariadb_config"; then
     MYSQLTOOL="mariadb_config"
similarity index 87%
rename from net-analyzer/ntopng/files/configure-3.0.patch
rename to net-analyzer/ntopng/files/ntopng-3.0-gentoo.patch
index a2476f5b407d1ee38482f1166b2e8d22c139d292..90d7aace545c6310b78af3fba8ea2d2bb5807a77 100644 (file)
@@ -1,5 +1,5 @@
---- configure.ac.orig  2017-06-09 06:47:34.214516588 +0200
-+++ configure.ac       2017-06-09 06:48:01.547849759 +0200
+--- a/configure.ac
++++ b/configure.ac
 @@ -19,7 +19,6 @@
  # On CentOS 6 `git rev-list HEAD --count` does not work
  #
@@ -42,8 +42,6 @@
  if test -d "/usr/include/openssl"; then :
   AC_DEFINE_UNQUOTED(NO_SSL_DL, 1, [has openssl])
   SSL_INC="`pkg-config --cflags libssl` -I/usr/include/openssl"
---- configure.ac.orig  2017-06-09 09:58:17.021114895 +0200
-+++ configure.ac       2017-06-09 09:58:24.227781519 +0200
 @@ -53,15 +53,6 @@
   SSL_LIB="`pkg-config --libs libssl` -lssl -lcrypto"
  fi
index e433f4e95592dd58739dc9db8e6ef8aa58015611..4d2244b582b909f65252236f9d9e07c00501a650 100644 (file)
@@ -1,5 +1,5 @@
---- configure.ac.orig  2017-06-09 09:52:26.387783657 +0200
-+++ configure.ac       2017-06-09 09:54:53.361116113 +0200
+--- a/configure.ac
++++ b/configure.ac
 @@ -335,13 +335,7 @@
  if test "x$ac_cv_prog_ac_ct_MARIADB" = "xmariadb_config"; then
     MYSQLTOOL="mariadb_config"
similarity index 61%
rename from net-analyzer/ntopng/ntopng-3.0.ebuild
rename to net-analyzer/ntopng/ntopng-3.0-r1.ebuild
index 234efdce69c1dc25c3b34b32c79f9812526986f9..3fe29fa78180021e6972c3f74d3a2d9a6ba389b9 100644 (file)
@@ -1,8 +1,8 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit autotools eutils user toolchain-funcs
+EAPI=6
+inherit autotools user toolchain-funcs
 
 DESCRIPTION="Network traffic analyzer with web interface"
 HOMEPAGE="http://www.ntop.org/"
@@ -11,7 +11,6 @@ SRC_URI="https://github.com/ntop/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
 
 DEPEND="dev-db/sqlite:3
        dev-python/pyzmq
@@ -28,38 +27,19 @@ DEPEND="dev-db/sqlite:3
        virtual/libmysqlclient"
 RDEPEND="${DEPEND}
        dev-db/redis"
+PATCHES=(
+       "${FILESDIR}"/${P}-gentoo.patch
+       "${FILESDIR}"/${P}-mysqltool.patch
+)
 
 src_prepare() {
+       sed -e "s/@VERSION@/${PV}/g;s/@SHORT_VERSION@/${PV}/g" < "${S}/configure.seed" > "${S}/configure.ac" || die
+
        default
-       cat "${S}/configure.seed" | sed "s/@VERSION@/${PV}/g" | sed "s/@SHORT_VERSION@/${PV}/g" > "${S}/configure.ac"
-       epatch "${FILESDIR}/configure-${PV}.patch"
-       epatch "${FILESDIR}/${P}-mysqltool.patch"
-#      epatch "${FILESDIR}/${P}-dont-build-ndpi.patch"
-#      epatch "${FILESDIR}/${P}-mysqltool.patch"
-#      epatch "${FILESDIR}/${P}-cxx.patch"
-#      sed -i 's/exit$/exit 1/g' "${S}/configure.ac" "${S}/nDPI/configure.ac"
-       eautoreconf
 
-#      cd "${S}/nDPI"
-#      eautoreconf
+       eautoreconf
 }
 
-# src_configure() {
-#      tc-export CC CXX LD NM OBJDUMP PKG_CONFIG
-#      cd "${S}/nDPI"
-#      econf
-#      cd "${S}"
-#      econf
-# }
-# 
-# src_compile() {
-#      cd "${S}/nDPI"
-#      emake
-# 
-#      cd "${S}"
-#      emake
-# }
-
 src_install() {
        SHARE_NTOPNG_DIR="${EPREFIX}/usr/share/${PN}"
        dodir ${SHARE_NTOPNG_DIR}
@@ -88,5 +68,5 @@ pkg_setup() {
 }
 
 pkg_postinst() {
-       elog "ntopng default creadential are user='admin' password='admin'"
+       elog "ntopng default credentials are user='admin' password='admin'"
 }