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
|
|
|
#
|
2011-10-02 09:48:11 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products 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.
|
|
|
|
|
2007-01-15 23:51:29 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-06-02 10:30:28 +02:00
|
|
|
|
2007-01-15 23:51:29 +01:00
|
|
|
Name: argus
|
2007-07-27 01:18:01 +02:00
|
|
|
BuildRequires: bison flex libpcap-devel tcpd-devel tcsh
|
2010-03-08 18:10:06 +01:00
|
|
|
License: BSD3c ; LGPLv2.1+ ; MIT
|
2007-01-15 23:51:29 +01:00
|
|
|
Group: Productivity/Networking/Diagnostic
|
|
|
|
Summary: Network Monitoring Tool
|
2008-09-15 16:30:38 +02:00
|
|
|
Version: 3.0.0
|
2010-03-08 18:10:06 +01:00
|
|
|
Release: 3
|
2008-06-02 10:30:28 +02:00
|
|
|
Url: http://www.qosient.com/argus/
|
2007-01-15 23:51:29 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: rc.argus
|
|
|
|
Source2: sysconfig.argus
|
|
|
|
Source3: README.SuSE
|
|
|
|
Source4: argus_linux.8.gz
|
2008-09-15 16:30:38 +02:00
|
|
|
#Patch: %{name}-%{version}-fixes-1.patch
|
2007-01-15 23:51:29 +01:00
|
|
|
Patch1: %{name}-%{version}-libpcap.diff
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-06-02 10:30:28 +02:00
|
|
|
|
2007-01-15 23:51:29 +01:00
|
|
|
%package server
|
2010-03-08 18:10:06 +01:00
|
|
|
License: BSD3c ; LGPLv2.1+ ; NON-OSI-COMPLIANT(Restricted Shareware) ; MIT
|
2007-01-15 23:51:29 +01:00
|
|
|
PreReq: %insserv_prereq %fillup_prereq
|
|
|
|
Group: Productivity/Networking/Diagnostic
|
|
|
|
Summary: Daemon for Network Monitoring Tool
|
|
|
|
Requires: argus
|
|
|
|
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}
|
2008-09-15 16:30:38 +02:00
|
|
|
# %patch -p1
|
2007-01-15 23:51:29 +01:00
|
|
|
%patch1
|
|
|
|
cp %{S:3} .
|
|
|
|
cp %{S:4} man/man8/
|
|
|
|
|
|
|
|
%build
|
2010-03-08 18:10:06 +01:00
|
|
|
#autoreconf -fiv
|
2008-06-02 10:30:28 +02:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
|
|
%configure --with-pic
|
2011-10-02 09:48:11 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:51:29 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT{/etc/init.d,/sbin,/usr/{sbin,bin,share/man},%{_docdir}}
|
2008-09-15 16:30:38 +02:00
|
|
|
install -m 700 bin/argus $RPM_BUILD_ROOT/usr/sbin/argus
|
2007-01-15 23:51:29 +01:00
|
|
|
install -m 700 bin/arg* $RPM_BUILD_ROOT/usr/bin/
|
2011-11-27 22:51:52 +01:00
|
|
|
# alread in sbin
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/argus
|
2007-01-15 23:51:29 +01:00
|
|
|
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*
|
|
|
|
install -m 600 support/Config/argus.conf $RPM_BUILD_ROOT/etc/argus.conf
|
|
|
|
install -m 755 support/Archive/argusarchive $RPM_BUILD_ROOT/usr/bin/
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT/etc/init.d
|
|
|
|
install -m 755 %{S:1} $RPM_BUILD_ROOT/etc/init.d/argus
|
|
|
|
ln -sf ../etc/init.d/argus $RPM_BUILD_ROOT/sbin/rcargus
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
|
|
|
install -m 644 %{S:2} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.argus
|
|
|
|
find support -type f -exec chmod 0644 {} \;
|
|
|
|
chmod a+x support/{Archive/argusarchive,Startup/argus,System/magic}
|
|
|
|
|
|
|
|
%post server
|
|
|
|
%{fillup_and_insserv argus}
|
|
|
|
|
|
|
|
%preun server
|
|
|
|
%stop_on_removal argus
|
|
|
|
|
|
|
|
%postun server
|
|
|
|
%restart_on_update argus
|
|
|
|
%{insserv_cleanup}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/bin/argus*
|
|
|
|
|
|
|
|
%files server
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc COPYING MANIFEST README.* support
|
|
|
|
%attr(0644,root,root) %doc %{_mandir}/man*/*
|
|
|
|
%config /etc/init.d/argus
|
|
|
|
%config /etc/argus.conf
|
|
|
|
/usr/sbin/*
|
|
|
|
/sbin/rcargus
|
|
|
|
/var/adm/fillup-templates/sysconfig.argus
|
|
|
|
|
2007-03-30 14:52:16 +02:00
|
|
|
%changelog
|