Skip to content

Commit

Permalink
Merge pull request openwrt#4 from CESNET/nemea-merger
Browse files Browse the repository at this point in the history
Add merger, updated upstream, fixed missing atomic ops
  • Loading branch information
cejkato2 authored Apr 22, 2019
2 parents a72ab45 + e5e2c22 commit 5cf6b50
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 89 deletions.
4 changes: 2 additions & 2 deletions libs/nemea-framework/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ include $(TOPDIR)/rules.mk


PKG_NAME:=nemea-framework
PKG_REV:=ee8fdfed5a3120e41d507145ac79c56f259ae203
PKG_VERSION:=$(PKG_REV)
PKG_REV:=4b2b59f
PKG_VERSION:=2.1.0
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
Expand Down
13 changes: 11 additions & 2 deletions net/nemea-modules/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ include $(TOPDIR)/rules.mk


PKG_NAME:=nemea-modules
PKG_REV:=bcaa607
PKG_VERSION:=2.10.1
PKG_REV:=47d54e3
PKG_VERSION:=2.11.0
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
Expand Down Expand Up @@ -90,6 +90,10 @@ define Package/nemea-logger
$(call Package/nemea-modules/Default)
TITLE+=logger
endef
define Package/nemea-merger
$(call Package/nemea-modules/Default)
TITLE+=merger
endef
define Package/nemea-supervisorl
$(call Package/nemea-modules/Default)
TITLE+=supervisorl
Expand Down Expand Up @@ -167,6 +171,10 @@ define Package/nemea-logger/install
$(INSTALL_DIR) $(1)/usr/bin/nemea
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nemea/logger $(1)/usr/bin/nemea/
endef
define Package/nemea-merger/install
$(INSTALL_DIR) $(1)/usr/bin/nemea
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nemea/merger $(1)/usr/bin/nemea/
endef
define Package/nemea-supervisorl/install
$(INSTALL_DIR) $(1)/etc/init.d/
$(INSTALL_DIR) $(1)/etc/config/
Expand All @@ -185,5 +193,6 @@ $(eval $(call BuildPackage,nemea-logreplay))
$(eval $(call BuildPackage,nemea-traffic_repeater))
$(eval $(call BuildPackage,nemea-topn))
$(eval $(call BuildPackage,nemea-logger))
$(eval $(call BuildPackage,nemea-merger))
$(eval $(call BuildPackage,nemea-supervisorl))

170 changes: 85 additions & 85 deletions net/nemea-modules/patches/001-removemodules.patch
Original file line number Diff line number Diff line change
@@ -1,80 +1,7 @@
diff --git a/Makefile.am b/Makefile.am
index 0895633..36d5bd6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,63 +1,13 @@
ACLOCAL_AMFLAGS = -I m4

-SUBDIRS=aggregator \
-anonymizer \
-debug_sender \
-device_classifier \
-email_reporter \
+SUBDIRS=flow_meter \
+traffic_repeater \
flowcounter \
-ipv6stats \
-json_dump \
-json_replay \
-link_traffic \
logger \
logreplay \
-merger \
-mux \
-demux \
-natpair \
-prefix_tags \
-proto_traffic \
-pdns_exporter \
-report2idea \
-resolver \
-topn \
-traffic_repeater \
-unirec2json \
-endiverter
-
-EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL NEWS README.md nfreader \
- debian/README.Debian \
- debian/changelog \
- debian/compat \
- debian/control \
- debian/copyright \
- debian/nemea-modules-dev.install \
- debian/nemea-modules.install \
- debian/patches \
- debian/rules \
- debian/source \
- debian/watch
+topn

-if HAVE_LIBNF
-SUBDIRS += nfreader
-SUBDIRS += nfwriter
-endif
-
-if HAVE_BISON
-SUBDIRS += unirecfilter
-if HAVE_OPENSSL
-SUBDIRS += scalar-aggregator
-endif
-endif
-
-if HAVE_LIBPCAP
-SUBDIRS += flow_meter
-endif
-
-if HAVE_LIBCURL
-SUBDIRS += bloom_history
-endif
+EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL NEWS README.md

RPMDIR = RPMBUILD

diff --git a/configure.ac b/configure.ac
index 92df371..652e5db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,11 +43,6 @@ AC_SUBST(BINDIR)
diff -u a/configure.ac b/configure.ac
--- a/configure.ac 2019-04-11 14:41:02.189875842 +0200
+++ b/configure.ac 2019-04-11 14:42:22.655565782 +0200
@@ -43,11 +43,6 @@
bashcompldir=${sysconfdir}/bash_completion.d
AC_SUBST(bashcompldir)

Expand All @@ -86,17 +13,17 @@ index 92df371..652e5db 100644
RPM_REQUIRES=
RPM_BUILDREQ=

@@ -81,9 +76,6 @@ esac], [repobuild=false])
@@ -81,9 +76,6 @@

AX_C_BIGENDIAN_CROSS

-AX_OPENMP([], [AC_MSG_ERROR([OpenMP was not found. Some modules need it (e.g. merger)])])
-AC_SUBST(OPENMP_CFLAGS)
-
backup_libs=${LIBS}
AX_LIBTRAP_CHECK
AX_UNIREC_CHECK
@@ -106,22 +98,6 @@ else
NONNEMEA_LIBS=${backup_libs}
AC_SUBST(NEMEA_FRAMEWORK_LIBS)
@@ -112,22 +104,6 @@
AC_DEFINE([HAVE_OPENSSL], [0], [Define to 1 if the openssl is available])
fi

Expand All @@ -119,7 +46,7 @@ index 92df371..652e5db 100644
AC_ARG_WITH([flowcachesize],
AC_HELP_STRING([--with-flowcachesize=NUMBER],[Set default size of flow cache for flow_meter module in number of flow records.]),
[
@@ -135,36 +111,6 @@ AC_ARG_WITH([flowcachestats],
@@ -141,36 +117,6 @@
]
)

Expand Down Expand Up @@ -156,7 +83,7 @@ index 92df371..652e5db 100644
AC_CHECK_HEADER(pcap.h,
AC_CHECK_LIB(pcap, pcap_open_live, [libpcap=yes], AC_MSG_WARN([libpcap not found. The flow_meter module will not be compiled.])), AC_MSG_WARN([pcap.h not found. The flow_meter module will not be compiled.]))

@@ -175,7 +121,7 @@ RPM_BUILDREQ+=" libpcap-devel"
@@ -181,7 +127,7 @@
fi

# Checks for header files.
Expand All @@ -165,7 +92,7 @@ index 92df371..652e5db 100644

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
@@ -218,63 +164,14 @@ AM_CONDITIONAL(MAKE_DEB, test x$DEBUILD != x)
@@ -224,65 +170,16 @@

# list of all *.in (and Makefile.am) files to process by configure script
AC_CONFIG_FILES([Makefile
Expand Down Expand Up @@ -193,7 +120,8 @@ index 92df371..652e5db 100644
- link_traffic/link_traff2json.py
logger/Makefile
logreplay/Makefile
- merger/Makefile
merger/Makefile
merger/test/Makefile
- mux/Makefile
- demux/Makefile
- natpair/Makefile
Expand All @@ -216,6 +144,7 @@ index 92df371..652e5db 100644
- report2idea/venom/Makefile
- report2idea/voipfraud/Makefile
- report2idea/vportscan/Makefile
- report2idea/warden_filer/Makefile
- resolver/Makefile
- scalar-aggregator/Makefile
topn/Makefile
Expand All @@ -229,3 +158,74 @@ index 92df371..652e5db 100644
])

AC_SUBST(RPM_REQUIRES)
diff -u a/Makefile.am b/Makefile.am
--- a/Makefile.am 2019-04-11 14:08:51.902179504 +0200
+++ b/Makefile.am 2019-04-11 14:13:55.680633072 +0200
@@ -1,63 +1,14 @@
ACLOCAL_AMFLAGS = -I m4

-SUBDIRS=aggregator \
-anonymizer \
-debug_sender \
-device_classifier \
-email_reporter \
+SUBDIRS=flow_meter \
+traffic_repeater \
flowcounter \
-ipv6stats \
-json_dump \
-json_replay \
-link_traffic \
logger \
logreplay \
merger \
-mux \
-demux \
-natpair \
-prefix_tags \
-proto_traffic \
-pdns_exporter \
-report2idea \
-resolver \
-topn \
-traffic_repeater \
-unirec2json \
-endiverter
-
-EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL NEWS README.md nfreader \
- debian/README.Debian \
- debian/changelog \
- debian/compat \
- debian/control \
- debian/copyright \
- debian/nemea-modules-dev.install \
- debian/nemea-modules.install \
- debian/patches \
- debian/rules \
- debian/source \
- debian/watch
-
-if HAVE_LIBNF
-SUBDIRS += nfreader
-SUBDIRS += nfwriter
-endif
-
-if HAVE_BISON
-SUBDIRS += unirecfilter
-if HAVE_OPENSSL
-SUBDIRS += scalar-aggregator
-endif
-endif
-
-if HAVE_LIBPCAP
-SUBDIRS += flow_meter
-endif
+topn

-if HAVE_LIBCURL
-SUBDIRS += bloom_history
-endif
+EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL NEWS README.md

RPMDIR = RPMBUILD

0 comments on commit 5cf6b50

Please sign in to comment.