- update to version 1.5.2 - add patch: pmacct-fix-implicit-pointer-decl.diff - do not build with ULOG on newer versions > 13.2 since it got removed from mainstream linux kernel >= 3.17 http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7200135bc1e61f1437dc326ae2ef2f310c50b4eb - update to version 1.5.1 + BMP daemon: BMP, BGP Monitoring Protocol, can be used to monitor BGP sessions. The current implementation is base on the draft-ietf-grow-bmp-07 IETF draft. The daemon currently supports BMP events and stats only, ie. initiation, termination, peer up, peer down and stats reports messages. Route Monitoring is future (upcoming) work but routes can be currently sourced via the BGP daemon thread (best path only or ADD-PATH), making the two daemons complementary. The daemon enables to write BMP messages to files or AMQP queues, real-time (msglog) or at regular time intervals (dump) and is a separate thread in the NetFlow (nfacctd) or sFlow (sfacctd) collectors. + tmp_net_own_field directive is introduced to record both individual source and destination IP addresses and their IP prefix (nets) as part of the same aggregation method. While this should become default behaviour, a knob for backward-compatibility is made available for all 1.5 until the next major release. + Introduced nfacctd_stitching and equivalents (ie. sfacctd_stitching): when set to true, given an aggregation method, two new non-key fields are added to the aggregate upon purging data to the backend: timestamp_min is the timestamp of the first element contributing to a certain aggregate and timestamp_max is the timestamp of the last element. In case the export protocol provides time references, ie. NetFlow/IPFIX, these are used; if not the current time (hence time of arrival to the collector) is used instead. OBS-URL: https://build.opensuse.org/request/show/346126 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/pmacct?expand=0&rev=79
127 lines
4.3 KiB
RPMSpec
127 lines
4.3 KiB
RPMSpec
#
|
|
# spec file for package pmacct
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: pmacct
|
|
Version: 1.5.2
|
|
Release: 0
|
|
Summary: Accounting and aggregation toolsuite for IPv4 and IPv6
|
|
License: GPL-2.0
|
|
Group: Productivity/Networking/Diagnostic
|
|
Url: http://www.pmacct.net/
|
|
Source: http://www.pmacct.net/pmacct-%{version}.tar.gz
|
|
Source1: nfacctd.init
|
|
Source2: pmacctd.init
|
|
Source3: sfacctd.init
|
|
Source4: uacctd.init
|
|
# PATCH-FIX-UPSTREAM pmacct-fix-implicit-pointer-decl.diff
|
|
Patch1: pmacct-fix-implicit-pointer-decl.diff
|
|
BuildRequires: libmysqlclient-devel
|
|
BuildRequires: libpcap-devel
|
|
BuildRequires: libstdc++-devel
|
|
BuildRequires: pkg-config
|
|
BuildRequires: postgresql-devel
|
|
BuildRequires: sqlite-devel >= 3.0.0
|
|
BuildRequires: pkgconfig(geoip)
|
|
BuildRequires: pkgconfig(jansson)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
pmacct is a small set of passive network monitoring tools to measure, account,
|
|
classify and aggregate IPv4 and IPv6 traffic; a pluggable and flexible
|
|
architecture allows to store the collected traffic data into memory tables or
|
|
SQL (MySQL, SQLite, PostgreSQL) databases. pmacct supports fully customizable
|
|
historical data breakdown, flow sampling, filtering and tagging, recovery
|
|
actions, and triggers. Libpcap, sFlow v2/v4/v5 and NetFlow v1/v5/v7/v8/v9 are
|
|
supported, both unicast and multicast. Also, a client program makes it easy to
|
|
export data to tools like RRDtool, GNUPlot, Net-SNMP, MRTG, and Cacti.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1 -p1
|
|
|
|
# fix permissions
|
|
chmod -x sql/pmacct-*
|
|
|
|
%build
|
|
export CFLAGS="%{optflags} -Wno-return-type"
|
|
%configure \
|
|
--sysconfdir=%{_sysconfdir}/%{name} \
|
|
--enable-l2 \
|
|
--enable-ipv6 \
|
|
--enable-v4-mapped \
|
|
--enable-mysql \
|
|
--enable-pgsql \
|
|
--with-pgsql-includes=%{_includedir}/pgsql/ \
|
|
--enable-sqlite3 \
|
|
--enable-geoip \
|
|
--enable-jansson \
|
|
--enable-64bit \
|
|
%if 0%{?suse_version} <= 1320 != (0%{?suse_version} == 1315 && 0%{?is_opensuse})
|
|
--enable-ulog \
|
|
%endif
|
|
--enable-threads
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
install -Dp %{SOURCE1} %{buildroot}/%{_sysconfdir}/init.d/nfacctd
|
|
install -Dp %{SOURCE2} %{buildroot}/%{_sysconfdir}/init.d/pmacctd
|
|
install -Dp %{SOURCE3} %{buildroot}/%{_sysconfdir}/init.d/sfacctd
|
|
install -Dp %{SOURCE4} %{buildroot}/%{_sysconfdir}/init.d/uacctd
|
|
ln -sf ../..%{_initddir}/nfacctd %{buildroot}%{_sbindir}/rcnfacctd
|
|
ln -sf ../..%{_initddir}/pmacctd %{buildroot}%{_sbindir}/rcpmacctd
|
|
ln -sf ../..%{_initddir}/sfacctd %{buildroot}%{_sbindir}/rcsfacctd
|
|
ln -sf ../..%{_initddir}/sfacctd %{buildroot}%{_sbindir}/rcuacctd
|
|
|
|
install -Dp examples/nfacctd-sql_v2.conf.example %{buildroot}/%{_sysconfdir}/pmacct/nfacctd.conf
|
|
install -Dp examples/pmacctd-sql_v2.conf.example %{buildroot}/%{_sysconfdir}/pmacct/pmacctd.conf
|
|
#touch %{buildroot}/%{_sysconfdir}/pmacct/sfacctd.conf
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS ChangeLog CONFIG-KEYS COPYING FAQS KNOWN-BUGS NEWS README TODO TOOLS UPGRADE
|
|
%doc docs examples sql
|
|
%{_bindir}/pmacct
|
|
%{_bindir}/pmmyplay
|
|
%{_bindir}/pmpgplay
|
|
#
|
|
%{_sbindir}/nfacctd
|
|
%{_sbindir}/pmacctd
|
|
%{_sbindir}/sfacctd
|
|
%{_sbindir}/uacctd
|
|
#
|
|
%{_sysconfdir}/init.d/nfacctd
|
|
%{_sysconfdir}/init.d/pmacctd
|
|
%{_sysconfdir}/init.d/sfacctd
|
|
%{_sysconfdir}/init.d/uacctd
|
|
#
|
|
%{_sbindir}/rcnfacctd
|
|
%{_sbindir}/rcpmacctd
|
|
%{_sbindir}/rcsfacctd
|
|
%{_sbindir}/rcuacctd
|
|
#
|
|
%dir %{_sysconfdir}/pmacct
|
|
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/pmacct/nfacctd.conf
|
|
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/pmacct/pmacctd.conf
|
|
#%attr(600,root,root) %config(noreplace) %{_sysconfdir}/pmacct/sfacctd.conf
|
|
|
|
%changelog
|