mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
net-analyzer/ntopng: drop 6.0
Closes: https://bugs.gentoo.org/985690 Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
@@ -1,4 +1,2 @@
|
||||
DIST ntopng-6.0-web-34c53388e8da61e6e04b3efd8e98dcd9b9e4fe1b.tar.gz 2890924 BLAKE2B 476ce4ea83fbd1241c12e2cd486f97570457721fd7a7e78e0e7b04ae80c4a69beb37a00e6fb6e47783f9296371cc92b4c9347016bc971d815a3af83d1671eb1d SHA512 f9a1cf583c8d513a543498c9712ab40b9c1978877c5a86c0ec89bd26e9f66b8d90a0700f417bd7166b0b683e5091a3a1d30d4888564ae4220e62a9d82d17bc64
|
||||
DIST ntopng-6.0.tar.gz 68289620 BLAKE2B 7edbd1b6231fdd1592f1b6ecca9f96dc79513dce1c53db70fb7b721ea483738dc0e74107ca15629c430e14ca7e461053967abc35de09e303e36ded9ed9994b43 SHA512 d9d27bed0706d36c82a5b22b2b918014fed7d614e11c79cc47ee1033ae5fd2f703a67f3c5205c63c014bbd2839eb7c78616137ee6cc11d09ebcf6fafc7a658d2
|
||||
DIST ntopng-7.0-web-c7bb4b80afae70a17a016409dc07c269be05d4af.tar.gz 4944823 BLAKE2B 57deb13fae36a39e315100ec5e8b80e807f6937290887cda5f27f3415b457e35d87430205835fbfa8c99db2ef6c67ac4b756a08aa55388c3e459eab69d4a4b0c SHA512 0bd50f5ed2a533906dea119e861da2d6e249b59d091c6f6d25f4e408b86a550305085c0405307f01314e4ea5538bce670ac3770f3f4ba9712bff37fed2e1711b
|
||||
DIST ntopng-7.0.tar.gz 84599851 BLAKE2B bf479c75fdcd3e8d01091be802b038c5c032d10701d5c19fac730491668103cd4f3bca90825ded1f11ed01c919012d9d758939acc7b78b74799da7f9eaab3a2b SHA512 b4aca5a7fa1a8cafbc6d8a1337215279d7c06411bb9cbdb8a462b9e7ac0a636cfb34a5197ef74f7ce91066c96c89f25b679b8f730e25c3259702cbbe87d4a075
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
--- a/configure.ac.in
|
||||
+++ b/configure.ac.in
|
||||
@@ -596,13 +596,7 @@ if test "${with_nedge+set}" != set; then
|
||||
if test "x$ac_cv_prog_ac_ct_MARIADB" = "xmariadb_config"; then
|
||||
MYSQLTOOL="mariadb_config"
|
||||
else
|
||||
- PATH=$PATH:/usr/local/mysql/bin
|
||||
- AC_CHECK_TOOL(MYSQL, mysql_config)
|
||||
- if test "x$ac_cv_prog_ac_ct_MYSQL" = "xmysql_config"; then
|
||||
- MYSQLTOOL="mysql_config"
|
||||
- else
|
||||
- MYSQLTOOL=""
|
||||
- fi
|
||||
+ MYSQLTOOL="mysql_config"
|
||||
fi
|
||||
|
||||
if test -n "$MYSQLTOOL"; then
|
||||
@@ -1,49 +0,0 @@
|
||||
--- a/configure.ac.in
|
||||
+++ b/configure.ac.in
|
||||
@@ -231,31 +231,8 @@ NDPI_LIB=
|
||||
NDPI_LIB_DEP=
|
||||
|
||||
AC_MSG_CHECKING(for nDPI source)
|
||||
- if test -d "./nDPI" ; then :
|
||||
- NDPI_HOME=./nDPI
|
||||
- elif test -d "../nDPI" ; then :
|
||||
- NDPI_HOME=../nDPI
|
||||
- elif test -d "$HOME/nDPI" ; then :
|
||||
- NDPI_HOME=$HOME/nDPI
|
||||
- fi
|
||||
-
|
||||
- if test ! -z "$NDPI_HOME" ; then :
|
||||
- AC_MSG_RESULT(found in $NDPI_HOME)
|
||||
- NDPI_LIB=$NDPI_HOME/src/lib/libndpi.a
|
||||
- AC_MSG_CHECKING(for $NDPI_LIB)
|
||||
- if test -r $NDPI_LIB ; then :
|
||||
- AC_MSG_RESULT(found $NDPI_LIB)
|
||||
- else
|
||||
- AC_MSG_RESULT(not found $NDPI_LIB: compiling)
|
||||
- cd $NDPI_HOME; ./autogen.sh; ${MAKE}; cd -
|
||||
- fi
|
||||
- NDPI_INC="-I$NDPI_HOME/src/include -I$NDPI_HOME/src/lib/third_party/include"
|
||||
- NDPI_LIB=$NDPI_HOME/src/lib/libndpi.a
|
||||
- NDPI_LIB_DEP=$NDPI_LIB
|
||||
- else
|
||||
- AC_MSG_RESULT(not found)
|
||||
- fi
|
||||
-
|
||||
+ NDPI_LIB="-lndpi"
|
||||
+ NDPI_LIB_DEP=$NDPI_LIB
|
||||
|
||||
if test ! -z "$NDPI_CUST_INC" ; then :
|
||||
NDPI_INC=$NDPI_CUST_INC
|
||||
diff --git a/configure.ac.in b/configure.ac.in
|
||||
index ed906b1..3e70bec 100644
|
||||
--- a/configure.ac.in
|
||||
+++ b/configure.ac.in
|
||||
@@ -242,7 +242,7 @@ if test ! -z "$NDPI_CUST_LIB" ; then :
|
||||
NDPI_LIB=$NDPI_CUST_LIB
|
||||
fi
|
||||
|
||||
-if test -z "$NDPI_INC" || test -z "$NDPI_LIB" ; then :
|
||||
+if test -z "$NDPI_LIB" ; then :
|
||||
echo "Could not find nDPI"
|
||||
echo "Please do cd ..; git clone https://github.com/ntop/nDPI.git; cd nDPI; ./autogen.sh; ${MAKE}; cd ../ntopng"
|
||||
echo "and try again"
|
||||
@@ -1,34 +0,0 @@
|
||||
The patch is borrowed from upstream https://github.com/ntop/ntopng
|
||||
|
||||
https://github.com/ntop/ntopng/commit/5069aa4a6259bd0830a33f2ece980612dba5ace9
|
||||
|
||||
commit 5069aa4a6259bd0830a33f2ece980612dba5ace9 (HEAD -> 6.0-stable, origin/6.0-stable)
|
||||
Author: Denis Pronin <dannftk@yandex.ru>
|
||||
Date: Sat Jun 8 09:29:51 2024 +0300
|
||||
|
||||
fix building when rrd_tune() function has const char** as the 2nd param (#8442)
|
||||
|
||||
Signed-off-by: Denis Pronin <dannftk@yandex.ru>
|
||||
|
||||
diff --git a/src/LuaEngineNtop.cpp b/src/LuaEngineNtop.cpp
|
||||
index 42e41822c..ea8e3769f 100644
|
||||
--- a/src/LuaEngineNtop.cpp
|
||||
+++ b/src/LuaEngineNtop.cpp
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
#include "ntop_includes.h"
|
||||
|
||||
+#include <type_traits>
|
||||
+
|
||||
extern "C" {
|
||||
#include "rrd.h"
|
||||
};
|
||||
@@ -6296,7 +6298,7 @@ static int ntop_rrd_tune(lua_State *vm) {
|
||||
filename = argv[1];
|
||||
|
||||
reset_rrd_state();
|
||||
- status = rrd_tune(argc, (char **)argv);
|
||||
+ status = rrd_tune(argc, (std::conditional<std::is_same<decltype(rrd_tune), int(int, const char **)>::value, const char **, char **>::type)argv);
|
||||
|
||||
if (status != 0) {
|
||||
char *err = rrd_get_error();
|
||||
@@ -1,111 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools toolchain-funcs
|
||||
|
||||
# Check this on bumps, get latest commit from the relevant branch (e.g. 6.0-stable)
|
||||
# See bug #894152 and https://github.com/ntop/ntopng/issues/7203
|
||||
NTOPNG_DIST_COMMIT="34c53388e8da61e6e04b3efd8e98dcd9b9e4fe1b"
|
||||
DESCRIPTION="Network traffic analyzer with web interface"
|
||||
HOMEPAGE="https://www.ntop.org/"
|
||||
SRC_URI="https://github.com/ntop/ntopng/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://github.com/ntop/ntopng-dist/archive/${NTOPNG_DIST_COMMIT}.tar.gz -> ${P}-web-${NTOPNG_DIST_COMMIT}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="dev-db/mysql-connector-c:=
|
||||
dev-db/sqlite:3
|
||||
dev-libs/hiredis:=
|
||||
dev-libs/json-c:=
|
||||
dev-libs/libmaxminddb
|
||||
dev-libs/libsodium:=
|
||||
dev-libs/openssl:=
|
||||
net-analyzer/rrdtool
|
||||
net-libs/libpcap
|
||||
~net-libs/nDPI-4.8
|
||||
>=net-libs/zeromq-3:=
|
||||
net-misc/curl
|
||||
sys-libs/libcap
|
||||
virtual/zlib:="
|
||||
RDEPEND="${DEPEND}
|
||||
acct-user/ntopng
|
||||
acct-group/ntopng
|
||||
dev-db/redis"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-5.2.1-mysqltool.patch
|
||||
"${FILESDIR}"/${PN}-5.4-ndpi-linking.patch
|
||||
"${FILESDIR}"/${PN}-6.0-dont-const-cast-argv.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Follows upstream's autogen.sh
|
||||
sed \
|
||||
-e "s/@VERSION@/${PV}.$(date +%y%m%d)/g" \
|
||||
-e "s/@SHORT_VERSION@/${PV}/g" \
|
||||
-e "s/@GIT_DATE@/$(date)/g" \
|
||||
-e "s/@GIT_RELEASE@/${PV}.$(date +%y%m%d)/g" \
|
||||
-e "s/@GIT_BRANCH@//g" < "${S}/configure.ac.in" \
|
||||
> "${S}/configure.ac" || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export PKG_CONFIG
|
||||
|
||||
# configure.ac.in at least has some bashisms(?) which get lost(?)
|
||||
# in conversion to configure.ac (like [ -> nothing?) so just force
|
||||
# bash for now. It's still not quite right but at least upstream will be
|
||||
# testing with it. TODO: fix this!
|
||||
CONFIG_SHELL="${BROOT}/bin/bash" econf --with-ndpi-includes="${ESYSROOT}"/usr/include/ndpi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
CC="$(tc-getCC)" \
|
||||
MYCFLAGS="${CFLAGS}" \
|
||||
MYLDFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# httpdocs/geoip/README.geolocation.md is a symlink, change to real file
|
||||
GEOLOCATION_MD="httpdocs/geoip/README.geolocation.md"
|
||||
if [[ -h "${GEOLOCATION_MD}" ]] ; then
|
||||
GEOLOCATION_MD_REAL=$(readlink -m -- "${GEOLOCATION_MD}" || die)
|
||||
ln -f ${GEOLOCATION_MD_REAL} ${GEOLOCATION_MD} || die
|
||||
fi
|
||||
|
||||
SHARE_NTOPNG_DIR="${EPREFIX}/usr/share/${PN}"
|
||||
insinto "${SHARE_NTOPNG_DIR}"
|
||||
doins -r httpdocs
|
||||
doins -r scripts
|
||||
|
||||
insinto "${SHARE_NTOPNG_DIR}"/httpdocs/dist
|
||||
doins -r "${WORKDIR}"/ntopng-dist-${NTOPNG_DIST_COMMIT}/.
|
||||
|
||||
insinto "${SHARE_NTOPNG_DIR}/third-party"
|
||||
doins -r third-party/i18n.lua-master
|
||||
doins -r third-party/lua-resty-template-master
|
||||
|
||||
exeinto /usr/bin
|
||||
doexe "${PN}"
|
||||
doman "${PN}.8"
|
||||
|
||||
newinitd "${FILESDIR}"/ntopng.init.d ntopng
|
||||
newconfd "${FILESDIR}"/ntopng.conf.d ntopng
|
||||
|
||||
keepdir /var/lib/ntopng
|
||||
fowners ntopng /var/lib/ntopng
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "ntopng default credentials are user='admin' password='admin'"
|
||||
}
|
||||
Reference in New Issue
Block a user