SHA256
1
0
forked from pool/argus
argus/argus.spec

113 lines
3.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package argus
#
# Copyright (c) 2016 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: argus
Version: 3.0.8.2
Release: 0
Accepting request 250030 from home:sfalken:branches:security - Update to 3.0.8 version: + Changes from 3.0.6.1: Update and Fixes for remote argus data filter support Changes for netflow packet parsing to fix netflow in clients. Fixes for wild metric counts in new flow data. Update filter logic to be consistent with client filters. Modifications for timeout issues when in non-select polling. Fix for source id type assignement from commandline Change for compiler timeout values Fixes for ARP direction processing Back out of duplicate packet tracking logic Mods for duplicate packet reporting Modify configure.ac for pcap_dump_flush for older libpcaps Modify timeouts within "nonselectable" packet processing loop. Use VID for the VLAN identifer for the key. Fix syslog while daemonized Remove nanosleep() to improve performance. Major addtions for SDN tracking. New Flow model specifications in argus.conf. Fixes for solaris port, to avoid scheduling problems with record timeouts + Added: argus-3.0.8.tar.gz README.SUSE + Dropped: argus-3.0.6.1.tar.bz2 README.SuSE + Fixes in Specfile Changed permissions to 0644 for argus.service to clear rpmlint warning Removed System/Magic from chmod command, to clear rpmlint warning Removed %attr stanza from %doc lines, unneeded, and they were set incorrectly in the first place, and causing rpmlint to fail, due to unreadable files OBS-URL: https://build.opensuse.org/request/show/250030 OBS-URL: https://build.opensuse.org/package/show/security/argus?expand=0&rev=15
2014-09-18 07:33:07 +02:00
Summary: Network Monitoring Tool
License: GPL-2.0 and LGPL-2.1 and BSD-3-Clause and MIT
Group: Productivity/Networking/Diagnostic
Url: http://www.qosient.com/argus/
Source: http://qosient.com/argus/src/%{name}-%{version}.tar.gz
Accepting request 250030 from home:sfalken:branches:security - Update to 3.0.8 version: + Changes from 3.0.6.1: Update and Fixes for remote argus data filter support Changes for netflow packet parsing to fix netflow in clients. Fixes for wild metric counts in new flow data. Update filter logic to be consistent with client filters. Modifications for timeout issues when in non-select polling. Fix for source id type assignement from commandline Change for compiler timeout values Fixes for ARP direction processing Back out of duplicate packet tracking logic Mods for duplicate packet reporting Modify configure.ac for pcap_dump_flush for older libpcaps Modify timeouts within "nonselectable" packet processing loop. Use VID for the VLAN identifer for the key. Fix syslog while daemonized Remove nanosleep() to improve performance. Major addtions for SDN tracking. New Flow model specifications in argus.conf. Fixes for solaris port, to avoid scheduling problems with record timeouts + Added: argus-3.0.8.tar.gz README.SUSE + Dropped: argus-3.0.6.1.tar.bz2 README.SuSE + Fixes in Specfile Changed permissions to 0644 for argus.service to clear rpmlint warning Removed System/Magic from chmod command, to clear rpmlint warning Removed %attr stanza from %doc lines, unneeded, and they were set incorrectly in the first place, and causing rpmlint to fail, due to unreadable files OBS-URL: https://build.opensuse.org/request/show/250030 OBS-URL: https://build.opensuse.org/package/show/security/argus?expand=0&rev=15
2014-09-18 07:33:07 +02:00
Source3: README.SUSE
Source4: argus_linux.8.gz
Source5: argus.service
Accepting request 250030 from home:sfalken:branches:security - Update to 3.0.8 version: + Changes from 3.0.6.1: Update and Fixes for remote argus data filter support Changes for netflow packet parsing to fix netflow in clients. Fixes for wild metric counts in new flow data. Update filter logic to be consistent with client filters. Modifications for timeout issues when in non-select polling. Fix for source id type assignement from commandline Change for compiler timeout values Fixes for ARP direction processing Back out of duplicate packet tracking logic Mods for duplicate packet reporting Modify configure.ac for pcap_dump_flush for older libpcaps Modify timeouts within "nonselectable" packet processing loop. Use VID for the VLAN identifer for the key. Fix syslog while daemonized Remove nanosleep() to improve performance. Major addtions for SDN tracking. New Flow model specifications in argus.conf. Fixes for solaris port, to avoid scheduling problems with record timeouts + Added: argus-3.0.8.tar.gz README.SUSE + Dropped: argus-3.0.6.1.tar.bz2 README.SuSE + Fixes in Specfile Changed permissions to 0644 for argus.service to clear rpmlint warning Removed System/Magic from chmod command, to clear rpmlint warning Removed %attr stanza from %doc lines, unneeded, and they were set incorrectly in the first place, and causing rpmlint to fail, due to unreadable files OBS-URL: https://build.opensuse.org/request/show/250030 OBS-URL: https://build.opensuse.org/package/show/security/argus?expand=0&rev=15
2014-09-18 07:33:07 +02:00
Patch1: %{name}-3.0.6.1-libpcap.patch
BuildRequires: bison
BuildRequires: flex
%if 0%{?suse_version} >= 1330
BuildRequires: libnsl-devel
%endif
BuildRequires: libpcap-devel
BuildRequires: systemd-rpm-macros
BuildRequires: tcpd-devel
BuildRequires: tcsh
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%package server
Summary: Daemon for Network Monitoring Tool
Accepting request 250030 from home:sfalken:branches:security - Update to 3.0.8 version: + Changes from 3.0.6.1: Update and Fixes for remote argus data filter support Changes for netflow packet parsing to fix netflow in clients. Fixes for wild metric counts in new flow data. Update filter logic to be consistent with client filters. Modifications for timeout issues when in non-select polling. Fix for source id type assignement from commandline Change for compiler timeout values Fixes for ARP direction processing Back out of duplicate packet tracking logic Mods for duplicate packet reporting Modify configure.ac for pcap_dump_flush for older libpcaps Modify timeouts within "nonselectable" packet processing loop. Use VID for the VLAN identifer for the key. Fix syslog while daemonized Remove nanosleep() to improve performance. Major addtions for SDN tracking. New Flow model specifications in argus.conf. Fixes for solaris port, to avoid scheduling problems with record timeouts + Added: argus-3.0.8.tar.gz README.SUSE + Dropped: argus-3.0.6.1.tar.bz2 README.SuSE + Fixes in Specfile Changed permissions to 0644 for argus.service to clear rpmlint warning Removed System/Magic from chmod command, to clear rpmlint warning Removed %attr stanza from %doc lines, unneeded, and they were set incorrectly in the first place, and causing rpmlint to fail, due to unreadable files OBS-URL: https://build.opensuse.org/request/show/250030 OBS-URL: https://build.opensuse.org/package/show/security/argus?expand=0&rev=15
2014-09-18 07:33:07 +02:00
Group: Productivity/Networking/Diagnostic
Requires: argus
Provides: argus:%{_sbindir}/argus
%{?systemd_requires}
%description
Argus is a network monitoring tool.
Documentation can be found in %{_docdir}/argus.
%description server
Daemon for Argus network monitoring tool.
%prep
%setup -q -n argus-%{version}
%patch1 -p1
cp %{SOURCE3} .
cp %{SOURCE4} man/man8/
%build
#autoreconf -fiv
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure --with-pic
make %{?_smp_mflags}
%install
install -d -m 755 $RPM_BUILD_ROOT{/etc,%{_prefix}/{sbin,bin,share/man},%{_docdir}}
install -m 700 bin/argus %{buildroot}%{_sbindir}/argus
install -m 700 bin/arg* %{buildroot}%{_bindir}/
Accepting request 250030 from home:sfalken:branches:security - Update to 3.0.8 version: + Changes from 3.0.6.1: Update and Fixes for remote argus data filter support Changes for netflow packet parsing to fix netflow in clients. Fixes for wild metric counts in new flow data. Update filter logic to be consistent with client filters. Modifications for timeout issues when in non-select polling. Fix for source id type assignement from commandline Change for compiler timeout values Fixes for ARP direction processing Back out of duplicate packet tracking logic Mods for duplicate packet reporting Modify configure.ac for pcap_dump_flush for older libpcaps Modify timeouts within "nonselectable" packet processing loop. Use VID for the VLAN identifer for the key. Fix syslog while daemonized Remove nanosleep() to improve performance. Major addtions for SDN tracking. New Flow model specifications in argus.conf. Fixes for solaris port, to avoid scheduling problems with record timeouts + Added: argus-3.0.8.tar.gz README.SUSE + Dropped: argus-3.0.6.1.tar.bz2 README.SuSE + Fixes in Specfile Changed permissions to 0644 for argus.service to clear rpmlint warning Removed System/Magic from chmod command, to clear rpmlint warning Removed %attr stanza from %doc lines, unneeded, and they were set incorrectly in the first place, and causing rpmlint to fail, due to unreadable files OBS-URL: https://build.opensuse.org/request/show/250030 OBS-URL: https://build.opensuse.org/package/show/security/argus?expand=0&rev=15
2014-09-18 07:33:07 +02:00
install -D -m 0644 %{SOURCE5} %{buildroot}/%{_unitdir}/argus.service
# alread in sbin
rm -f %{buildroot}%{_bindir}/argus
rm -f %{buildroot}%{_bindir}/argus_linux
( cd man
cp -a man* %{buildroot}%{_mandir}
chmod a-x %{buildroot}%{_mandir}/*/* )
rm -f %{buildroot}%{_mandir}/man1/tcpdump.1*
rm -rf `find -type f -name ._*`
install -m 600 support/Config/argus.conf %{buildroot}%{_sysconfdir}/argus.conf
install -m 755 support/Archive/argusarchive %{buildroot}%{_bindir}/
find support -type f -exec chmod 0644 {} \;
Accepting request 250030 from home:sfalken:branches:security - Update to 3.0.8 version: + Changes from 3.0.6.1: Update and Fixes for remote argus data filter support Changes for netflow packet parsing to fix netflow in clients. Fixes for wild metric counts in new flow data. Update filter logic to be consistent with client filters. Modifications for timeout issues when in non-select polling. Fix for source id type assignement from commandline Change for compiler timeout values Fixes for ARP direction processing Back out of duplicate packet tracking logic Mods for duplicate packet reporting Modify configure.ac for pcap_dump_flush for older libpcaps Modify timeouts within "nonselectable" packet processing loop. Use VID for the VLAN identifer for the key. Fix syslog while daemonized Remove nanosleep() to improve performance. Major addtions for SDN tracking. New Flow model specifications in argus.conf. Fixes for solaris port, to avoid scheduling problems with record timeouts + Added: argus-3.0.8.tar.gz README.SUSE + Dropped: argus-3.0.6.1.tar.bz2 README.SuSE + Fixes in Specfile Changed permissions to 0644 for argus.service to clear rpmlint warning Removed System/Magic from chmod command, to clear rpmlint warning Removed %attr stanza from %doc lines, unneeded, and they were set incorrectly in the first place, and causing rpmlint to fail, due to unreadable files OBS-URL: https://build.opensuse.org/request/show/250030 OBS-URL: https://build.opensuse.org/package/show/security/argus?expand=0&rev=15
2014-09-18 07:33:07 +02:00
#chmod a+x support/{Archive/argusarchive,Startup/argus,System/magic}
chmod a+x support/{Archive/argusarchive,Startup/argus}
%pre server
%service_add_pre argus.service
%post server
%service_add_post argus.service
%preun server
%service_del_preun argus.service
%postun server
%service_del_postun argus.service
%files
%defattr(-,root,root)
%{_bindir}/argus*
%files server
%defattr(-,root,root)
Accepting request 250030 from home:sfalken:branches:security - Update to 3.0.8 version: + Changes from 3.0.6.1: Update and Fixes for remote argus data filter support Changes for netflow packet parsing to fix netflow in clients. Fixes for wild metric counts in new flow data. Update filter logic to be consistent with client filters. Modifications for timeout issues when in non-select polling. Fix for source id type assignement from commandline Change for compiler timeout values Fixes for ARP direction processing Back out of duplicate packet tracking logic Mods for duplicate packet reporting Modify configure.ac for pcap_dump_flush for older libpcaps Modify timeouts within "nonselectable" packet processing loop. Use VID for the VLAN identifer for the key. Fix syslog while daemonized Remove nanosleep() to improve performance. Major addtions for SDN tracking. New Flow model specifications in argus.conf. Fixes for solaris port, to avoid scheduling problems with record timeouts + Added: argus-3.0.8.tar.gz README.SUSE + Dropped: argus-3.0.6.1.tar.bz2 README.SuSE + Fixes in Specfile Changed permissions to 0644 for argus.service to clear rpmlint warning Removed System/Magic from chmod command, to clear rpmlint warning Removed %attr stanza from %doc lines, unneeded, and they were set incorrectly in the first place, and causing rpmlint to fail, due to unreadable files OBS-URL: https://build.opensuse.org/request/show/250030 OBS-URL: https://build.opensuse.org/package/show/security/argus?expand=0&rev=15
2014-09-18 07:33:07 +02:00
%doc doc COPYING MANIFEST README.* support
%{_mandir}/man*/*
%config %{_sysconfdir}/argus.conf
Accepting request 250030 from home:sfalken:branches:security - Update to 3.0.8 version: + Changes from 3.0.6.1: Update and Fixes for remote argus data filter support Changes for netflow packet parsing to fix netflow in clients. Fixes for wild metric counts in new flow data. Update filter logic to be consistent with client filters. Modifications for timeout issues when in non-select polling. Fix for source id type assignement from commandline Change for compiler timeout values Fixes for ARP direction processing Back out of duplicate packet tracking logic Mods for duplicate packet reporting Modify configure.ac for pcap_dump_flush for older libpcaps Modify timeouts within "nonselectable" packet processing loop. Use VID for the VLAN identifer for the key. Fix syslog while daemonized Remove nanosleep() to improve performance. Major addtions for SDN tracking. New Flow model specifications in argus.conf. Fixes for solaris port, to avoid scheduling problems with record timeouts + Added: argus-3.0.8.tar.gz README.SUSE + Dropped: argus-3.0.6.1.tar.bz2 README.SuSE + Fixes in Specfile Changed permissions to 0644 for argus.service to clear rpmlint warning Removed System/Magic from chmod command, to clear rpmlint warning Removed %attr stanza from %doc lines, unneeded, and they were set incorrectly in the first place, and causing rpmlint to fail, due to unreadable files OBS-URL: https://build.opensuse.org/request/show/250030 OBS-URL: https://build.opensuse.org/package/show/security/argus?expand=0&rev=15
2014-09-18 07:33:07 +02:00
%{_unitdir}/argus.service
%{_sbindir}/*
%changelog