forked from pool/argus
deaee6a6e2
Please see .changes; coolo upstream patch is no longer needed OBS-URL: https://build.opensuse.org/request/show/139868 OBS-URL: https://build.opensuse.org/package/show/security/argus?expand=0&rev=10
108 lines
3.1 KiB
RPMSpec
108 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package argus
|
|
#
|
|
# Copyright (c) 2011 SUSE LINUX Products 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
|
|
BuildRequires: bison flex libpcap-devel tcpd-devel tcsh
|
|
License: BSD-3-Clause ; LGPL-2.1+ ; MIT
|
|
Group: Productivity/Networking/Diagnostic
|
|
Summary: Network Monitoring Tool
|
|
Version: 3.0.6.1
|
|
Release: 3
|
|
Url: http://www.qosient.com/argus/
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Source3: README.SuSE
|
|
Source4: argus_linux.8.gz
|
|
Source5: argus.service
|
|
Patch1: %{name}-%{version}-libpcap.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: systemd
|
|
|
|
%package server
|
|
License: BSD-3-Clause ; LGPL-2.1+ ; NON-OSI-COMPLIANT(Restricted Shareware) ; MIT
|
|
Group: Productivity/Networking/Diagnostic
|
|
Summary: Daemon for Network Monitoring Tool
|
|
Requires: argus
|
|
%{?systemd_requires}
|
|
Provides: argus:/usr/sbin/argus
|
|
|
|
%description
|
|
Argus is a network monitoring tool.
|
|
|
|
Documentation can be found in /usr/share/doc/packages/argus.
|
|
|
|
%description server
|
|
Daemon for Argus network monitoring tool.
|
|
|
|
%prep
|
|
%setup -n argus-%{version}
|
|
%patch1 -p1
|
|
cp %{S:3} .
|
|
cp %{S:4} man/man8/
|
|
|
|
%build
|
|
#autoreconf -fiv
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
%configure --with-pic
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
install -d -m 755 $RPM_BUILD_ROOT{/etc,/usr/{sbin,bin,share/man},%{_docdir}}
|
|
install -m 700 bin/argus $RPM_BUILD_ROOT/usr/sbin/argus
|
|
install -m 700 bin/arg* $RPM_BUILD_ROOT/usr/bin/
|
|
install -D -m 0755 %{SOURCE5} %{buildroot}/%{_unitdir}/argus.service
|
|
# alread in sbin
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/argus
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/argus_linux
|
|
( cd man
|
|
cp -a man* $RPM_BUILD_ROOT%{_mandir}
|
|
chmod a-x $RPM_BUILD_ROOT%{_mandir}/*/* )
|
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tcpdump.1*
|
|
rm -rf `find -type f -name ._*`
|
|
install -m 600 support/Config/argus.conf $RPM_BUILD_ROOT/etc/argus.conf
|
|
install -m 755 support/Archive/argusarchive $RPM_BUILD_ROOT/usr/bin/
|
|
find support -type f -exec chmod 0644 {} \;
|
|
chmod a+x support/{Archive/argusarchive,Startup/argus,System/magic}
|
|
|
|
|
|
%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)
|
|
%attr(0644,root,root) %doc doc COPYING MANIFEST README.* support
|
|
%attr(0644,root,root) %doc %{_mandir}/man*/*
|
|
%config /etc/argus.conf
|
|
%config %{_unitdir}/argus.service
|
|
%{_sbindir}/*
|
|
|
|
%changelog
|