# # spec file for package argus (Version 2.0.6) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: argus BuildRequires: bison flex libpcap-devel tcpd-devel tcsh License: BSD 3-Clause; LGPL v2.1 or later; Restricted Shareware; X11/MIT Group: Productivity/Networking/Diagnostic AutoReqProv: on Summary: Network Monitoring Tool Version: 2.0.6 Release: 123 Url: http://www.qosient.com/argus/ Source: %{name}-%{version}.tar.bz2 Source1: rc.argus Source2: sysconfig.argus Source3: README.SuSE Source4: argus_linux.8.gz Patch: %{name}-%{version}-fixes-1.patch Patch1: %{name}-%{version}-libpcap.diff Patch2: %{name}-%{version}-uninitialized.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %package server License: BSD 3-Clause; LGPL v2.1 or later; Restricted Shareware; X11/MIT PreReq: %insserv_prereq %fillup_prereq Group: Productivity/Networking/Diagnostic Summary: Daemon for Network Monitoring Tool Requires: argus Provides: argus:/usr/sbin/argus AutoReqProv: on %description Argus is a network monitoring tool. Documentation can be found in /usr/share/doc/packages/argus. Authors: -------- Carter Bullard %description server Daemon for Argus network monitoring tool. Authors: -------- Carter Bullard %prep %setup -n argus-%{version} %patch -p1 %patch1 %patch2 cp %{S:3} . cp %{S:4} man/man8/ %build autoreconf -fiv export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %configure --with-pic make %install rm -rf %{buildroot} install -d -m 755 $RPM_BUILD_ROOT{/etc/init.d,/sbin,/usr/{sbin,bin,share/man},%{_docdir}} install -m 700 bin/argus_linux $RPM_BUILD_ROOT/usr/sbin/argus install -m 700 bin/arg* $RPM_BUILD_ROOT/usr/bin/ 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} %clean rm -rf %{buildroot} %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 %changelog * Mon Jun 02 2008 crrodriguez@suse.de - needs fno-strict-aliasing * Thu Jul 26 2007 prusnak@suse.cz - changed libpcap to libpcap-devel in BuildRequires * Fri Mar 30 2007 ssommer@suse.de - add flex and bison to BuildRequires * Fri Nov 10 2006 ro@suse.de - fix manpage permissions * Tue Apr 04 2006 mmarek@suse.cz - use RPM_OPT_FLAGS * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Tue Jan 03 2006 mmarek@suse.cz - fixed uninitialized variable warning [#137379] (uninitialized.patch) * Thu Aug 19 2004 postadal@suse.cz - updated to version 2.0.6 (fixes 1) - splitted in two new (sub)packages (argus-server, argus-client) * Thu Mar 18 2004 postadal@suse.cz - fixed permissions of man pages and documentation [#36325] * Thu Feb 12 2004 ro@suse.de - adapt to change in libpcap: include moved to pcap_bpf.h * Sat Jan 10 2004 adrian@suse.de - build as user * Mon Aug 25 2003 postadal@suse.cz - modified init script - added sysconfig metadata [#28836] - use new stop_on_removal/restart_on_upate macros * Mon Jun 02 2003 ro@suse.de - fixed rcargus symlink * Fri Jan 03 2003 postadal@suse.cz - added metadata in sysconfig template * Wed Aug 21 2002 ro@suse.de - fix build on ppc64 * Fri Aug 16 2002 postadal@suse.cz - added %%insserv_prereq and %%fillup_prereq to PreReq [#17787] * Tue Aug 06 2002 adrian@suse.de - remove tcpdump man page again (fixes file conflict with tcpdump package) * Tue Jul 30 2002 postadal@suse.cz - udate to version 2.0.5 * multithreaded, configuration files, syslog support, secure access * record changes * a lot of new features for server and client * Wed Jul 24 2002 kukuk@suse.de - Replase rc.config with sysconfig/argus in README.SuSE * Wed Jul 24 2002 kukuk@suse.de - Don't parse rc.config * Mon Feb 25 2002 postadal@suse.cz - modified copyright in /etc/init.d/argus * Tue Jan 15 2002 egmont@suselinux.hu - removed colons from startup/shutdown messages * Mon Jan 14 2002 cihlar@suse.cz - use %%{_libdir} * Thu Dec 13 2001 ro@suse.de - moved rc.config.d -> sysconfig * Tue Dec 11 2001 cihlar@suse.cz - source /etc/rc.config.d/argus.rc.config in init script - fixed to remove variables which are in /etc/rc.config.d/argus.rc.config now from /etc/rc.config * Mon Dec 10 2001 cihlar@suse.cz - removed START_ARGUS * Fri Nov 23 2001 cihlar@suse.cz - Fixed Url * Mon Aug 13 2001 cihlar@suse.cz - really removed whole files from patches - fixed README.SuSE * Thu Jul 26 2001 cihlar@suse.cz - removed tcpdump man page * Tue Jul 24 2001 cihlar@suse.cz - fixed to compile on ia64 - fixed includes - added BuildRoot - use suse_update_config - removed whole files from patches - added Url - bzipped sources * Mon Jul 02 2001 choeger@suse.de - bugfix: init script was not LSB compliant, Bugzilla ID#8969 - update to version 1.8.1 * Fri Dec 01 2000 ro@suse.de - use normal tcpd (wrapper-lib) - fixed startscript * Wed Mar 01 2000 choeger@suse.de - added mandir * Tue Feb 15 2000 aj@suse.de - fix headers for sparc * Thu Sep 16 1999 uli@suse.de - fixed headers for PPC * Mon Sep 13 1999 bs@suse.de - ran old prepare_spec on spec file to switch to new prepare_spec. * Mon Jul 12 1999 ro@suse.de - libpcap is an extra package now * Thu Apr 22 1999 ro@suse.de - fixed for alpha (ip_hl like other little-endian) * Wed Dec 09 1998 choeger@suse.de - completed new init-script * Mon Nov 23 1998 choeger@suse.de - new version and new init-script * Wed Oct 07 1998 ro@suse.de - dont redeclare sys_errlist or strcpy for glibc - dont cast to a char* where you're not supposed to * Mon May 04 1998 choeger@suse.de - new package 1.7.beta.1b