2007-01-15 23:51:29 +01:00
|
|
|
#
|
2011-10-02 09:48:11 +02:00
|
|
|
# spec file for package argus
|
2007-01-15 23:51:29 +01:00
|
|
|
#
|
2019-03-21 12:31:36 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:51:29 +01:00
|
|
|
#
|
2008-09-15 16:30:38 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-03-21 12:31:36 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:51:29 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: argus
|
2016-09-28 11:09:52 +02:00
|
|
|
Version: 3.0.8.2
|
|
|
|
Release: 0
|
2014-09-18 07:33:07 +02:00
|
|
|
Summary: Network Monitoring Tool
|
2019-03-21 12:31:36 +01:00
|
|
|
License: GPL-2.0-only AND LGPL-2.1-only AND BSD-3-Clause AND MIT
|
2012-10-26 09:23:57 +02:00
|
|
|
Group: Productivity/Networking/Diagnostic
|
2008-06-02 10:30:28 +02:00
|
|
|
Url: http://www.qosient.com/argus/
|
2015-09-04 12:05:01 +02:00
|
|
|
Source: http://qosient.com/argus/src/%{name}-%{version}.tar.gz
|
2014-09-18 07:33:07 +02:00
|
|
|
Source3: README.SUSE
|
2007-01-15 23:51:29 +01:00
|
|
|
Source4: argus_linux.8.gz
|
2012-10-31 17:19:42 +01:00
|
|
|
Source5: argus.service
|
2014-09-18 07:33:07 +02:00
|
|
|
Patch1: %{name}-3.0.6.1-libpcap.patch
|
2016-09-28 11:09:52 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
2017-11-06 13:37:22 +01:00
|
|
|
%if 0%{?suse_version} >= 1330
|
|
|
|
BuildRequires: libnsl-devel
|
|
|
|
%endif
|
2016-09-28 11:09:52 +02:00
|
|
|
BuildRequires: libpcap-devel
|
2015-09-04 12:05:01 +02:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2016-09-28 11:09:52 +02:00
|
|
|
BuildRequires: tcpd-devel
|
|
|
|
BuildRequires: tcsh
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-06-02 10:30:28 +02:00
|
|
|
|
2007-01-15 23:51:29 +01:00
|
|
|
%package server
|
2012-10-31 17:19:42 +01:00
|
|
|
Summary: Daemon for Network Monitoring Tool
|
2014-09-18 07:33:07 +02:00
|
|
|
Group: Productivity/Networking/Diagnostic
|
2007-01-15 23:51:29 +01:00
|
|
|
Requires: argus
|
2016-09-28 11:09:52 +02:00
|
|
|
Provides: argus:%{_sbindir}/argus
|
2019-03-21 12:31:36 +01:00
|
|
|
%{?systemd_ordering}
|
2007-01-15 23:51:29 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Argus is a network monitoring tool.
|
|
|
|
|
2016-09-28 11:09:52 +02:00
|
|
|
Documentation can be found in %{_docdir}/argus.
|
2007-01-15 23:51:29 +01:00
|
|
|
|
|
|
|
%description server
|
|
|
|
Daemon for Argus network monitoring tool.
|
|
|
|
|
|
|
|
%prep
|
2016-09-28 11:09:52 +02:00
|
|
|
%setup -q -n argus-%{version}
|
2012-10-31 17:19:42 +01:00
|
|
|
%patch1 -p1
|
2016-09-28 11:09:52 +02:00
|
|
|
cp %{SOURCE3} .
|
|
|
|
cp %{SOURCE4} man/man8/
|
2007-01-15 23:51:29 +01:00
|
|
|
|
|
|
|
%build
|
2010-03-08 18:10:06 +01:00
|
|
|
#autoreconf -fiv
|
2016-09-28 11:09:52 +02:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
2008-06-02 10:30:28 +02:00
|
|
|
%configure --with-pic
|
2011-10-02 09:48:11 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:51:29 +01:00
|
|
|
|
|
|
|
%install
|
2019-03-21 12:31:36 +01:00
|
|
|
mkdir -p %{buildroot}/etc %{buildroot}/%{_sbindir} %{buildroot}/%{_bindir} %{buildroot}/%{_mandir} %{buildroot}/%{_docdir}
|
2016-09-28 11:09:52 +02:00
|
|
|
install -m 700 bin/argus %{buildroot}%{_sbindir}/argus
|
|
|
|
install -m 700 bin/arg* %{buildroot}%{_bindir}/
|
2014-09-18 07:33:07 +02:00
|
|
|
install -D -m 0644 %{SOURCE5} %{buildroot}/%{_unitdir}/argus.service
|
2011-11-27 22:51:52 +01:00
|
|
|
# alread in sbin
|
2016-09-28 11:09:52 +02:00
|
|
|
rm -f %{buildroot}%{_bindir}/argus
|
|
|
|
rm -f %{buildroot}%{_bindir}/argus_linux
|
2007-01-15 23:51:29 +01:00
|
|
|
( cd man
|
2016-09-28 11:09:52 +02:00
|
|
|
cp -a man* %{buildroot}%{_mandir}
|
|
|
|
chmod a-x %{buildroot}%{_mandir}/*/* )
|
|
|
|
rm -f %{buildroot}%{_mandir}/man1/tcpdump.1*
|
2019-03-21 12:31:36 +01:00
|
|
|
find -type f -name ._* -exec rm -Rf {} +
|
2016-09-28 11:09:52 +02:00
|
|
|
install -m 600 support/Config/argus.conf %{buildroot}%{_sysconfdir}/argus.conf
|
|
|
|
install -m 755 support/Archive/argusarchive %{buildroot}%{_bindir}/
|
2019-03-21 12:31:36 +01:00
|
|
|
find support -type f -exec chmod 0644 {} +
|
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}
|
2012-10-31 17:19:42 +01:00
|
|
|
|
|
|
|
%pre server
|
|
|
|
%service_add_pre argus.service
|
|
|
|
|
2007-01-15 23:51:29 +01:00
|
|
|
%post server
|
2012-10-31 17:19:42 +01:00
|
|
|
%service_add_post argus.service
|
2007-01-15 23:51:29 +01:00
|
|
|
|
|
|
|
%preun server
|
2012-10-31 17:19:42 +01:00
|
|
|
%service_del_preun argus.service
|
2007-01-15 23:51:29 +01:00
|
|
|
|
|
|
|
%postun server
|
2012-10-31 17:19:42 +01:00
|
|
|
%service_del_postun argus.service
|
2007-01-15 23:51:29 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2012-10-31 17:19:42 +01:00
|
|
|
%{_bindir}/argus*
|
2007-01-15 23:51:29 +01:00
|
|
|
|
|
|
|
%files server
|
|
|
|
%defattr(-,root,root)
|
2014-09-18 07:33:07 +02:00
|
|
|
%doc doc COPYING MANIFEST README.* support
|
2016-09-28 11:09:52 +02:00
|
|
|
%{_mandir}/man*/*
|
|
|
|
%config %{_sysconfdir}/argus.conf
|
2014-09-18 07:33:07 +02:00
|
|
|
%{_unitdir}/argus.service
|
2012-10-31 17:19:42 +01:00
|
|
|
%{_sbindir}/*
|
2007-01-15 23:51:29 +01:00
|
|
|
|
2017-11-06 13:37:22 +01:00
|
|
|
%changelog
|