cd137d5
Name: argus
cd137d5
Version: 2.0.6.fixes.1
345d39a
Release: 21%{?dist}
cd137d5
Summary: Network transaction audit tool
5f86ed9
License: GPLv2+
cd137d5
Group: Applications/Internet
cd137d5
Url: http://qosient.com/argus
cd137d5
Source0: ftp://ftp.qosient.com/dev/argus-2.0/%{name}-%{version}.tar.gz
cd137d5
Source1: ftp://ftp.qosient.com/dev/argus-2.0/%{name}-clients-%{version}.tar.gz
345d39a
Source2: argus.service
cd137d5
Source3: README.fedora
cd137d5
Patch0: argus-2.0.6.fixes.1-makefile.patch
cd137d5
Patch1: argus-2.0.6.fixes.1-build.patch
74a51e5
# bpf_dump conflicts with a function with slightly different prototype (added
74a51e5
# const) in libpcap 1.0
74a51e5
Patch2: argus-2.0.6.fixes.1-libpcap10.patch
74a51e5
Patch3: argus-clients-2.0.6.fixes.1-makefile.patch
74a51e5
Patch4: argus-clients-2.0.6.fixes.1-build.patch
74a51e5
Patch5: argus-clients-2.0.6.fixes.1-print.patch
345d39a
Requires(post): systemd-sysv
e6f2ebd
BuildRequires: cyrus-sasl-devel tcp_wrappers flex bison ncurses-devel
e6f2ebd
BuildRequires: libpcap-devel
345d39a
BuildRequires: systemd-units
cd137d5
cd137d5
%package clients
cd137d5
Summary: Client tools for argus network audit
cd137d5
Group: Applications/Internet
cd137d5
cd137d5
%description
cd137d5
Argus (Audit Record Generation and Utilization System) is an IP network
cd137d5
transaction audit tool. The data generated by argus can be used for a
cd137d5
wide range of tasks such as network operations, security and performance
cd137d5
management.
cd137d5
cd137d5
%description clients
cd137d5
Clients to the argus probe which process and display information.
cd137d5
cd137d5
%prep
cd137d5
%setup -a0
cd137d5
%setup -a1
cd137d5
%patch0 -p1
cd137d5
%patch1 -p1
cd137d5
%patch2 -p1
74a51e5
pushd %{name}-clients-%{version}
cd137d5
%patch3 -p1
cd137d5
%patch4 -p1
74a51e5
%patch5 -p1
cd137d5
popd
cd137d5
%{__install} -p -m 0644 %{SOURCE3} .
cd137d5
cd137d5
%build
cd137d5
%configure --with-sasl=yes
cd137d5
%{__make} %{?_smp_mflags}
cd137d5
pushd %{name}-clients-%{version}
cd137d5
%configure --with-sasl=yes
cd137d5
%{__make} %{?_smp_mflags}
cd137d5
popd
cd137d5
cd137d5
%install
cd137d5
%{__make} DESTDIR=%{buildroot} install
cd137d5
pushd %{name}-clients-%{version}
cd137d5
%{__make} DESTDIR=%{buildroot} install
cd137d5
# avoid unwanted dependencies when using these as docs (clients package):
cd137d5
find doc contrib support ragraph -type f -exec chmod a-x '{}' \;
cd137d5
popd
cd137d5
%{__rm} -rf %{buildroot}/%{_libdir}
cd137d5
%{__rm} -rf %{buildroot}/%{_bindir}/ragraph
cd137d5
%{__install} -d -m 0755 %{buildroot}/%{_localstatedir}/lib/argus/archive
cd137d5
%{__install} -D -m 0644 support/Config/argus.conf %{buildroot}/%{_sysconfdir}/argus.conf
345d39a
%{__install} -D -m 0755 %{SOURCE2} %{buildroot}/%{_unitdir}/argus.service
cd137d5
# fix up argus.conf to a good default
cd137d5
%{__sed} -i 's|var/log/argus|var/lib/argus|' %{buildroot}/%{_sysconfdir}/argus.conf
cd137d5
%{__sed} -i 's|#ARGUS_BIND_IP|ARGUS_BIND_IP|' %{buildroot}/%{_sysconfdir}/argus.conf
cd137d5
%{__sed} -i 's|#ARGUS_ACCESS_PORT|ARGUS_ACCESS_PORT|' %{buildroot}/%{_sysconfdir}/argus.conf
cd137d5
# avoid unwanted dependencies when using these as docs (main package):
cd137d5
find support -type f -exec chmod a-x '{}' \;
cd137d5
345d39a
%triggerun -- argus < 2.0.6.fixes.1-21
345d39a
# Save the current service runlevel info
345d39a
# User must manually run systemd-sysv-convert --apply argus
345d39a
# to migrate them to systemd targets
345d39a
/usr/bin/systemd-sysv-convert --save argus >/dev/null 2>&1 ||:
cd137d5
345d39a
# Run these because the SysV package being removed won't do them
345d39a
/sbin/chkconfig --del argus >/dev/null 2>&1 || :
345d39a
/bin/systemctl try-restart argus.service >/dev/null 2>&1 || :
cd137d5
cd137d5
%files
cd137d5
%doc support doc/CHANGES doc/FAQ doc/HOW-TO doc/html bin/argusbug
cd137d5
%doc COPYING CREDITS INSTALL README VERSION
cd137d5
%config(noreplace) %{_sysconfdir}/argus.conf
345d39a
%{_unitdir}/argus.service
cd137d5
%{_sbindir}/argus*
cd137d5
%{_mandir}/man5/argus*
cd137d5
%{_mandir}/man8/argus*
cd137d5
%dir %{_localstatedir}/lib/argus
cd137d5
%dir %{_localstatedir}/lib/argus/archive
cd137d5
cd137d5
%files clients
cd137d5
%doc %{name}-clients-%{version}/ChangeLog %{name}-clients-%{version}/COPYING
cd137d5
%doc %{name}-clients-%{version}/CREDITS %{name}-clients-%{version}/INSTALL
cd137d5
%doc %{name}-clients-%{version}/README %{name}-clients-%{version}/VERSION
cd137d5
%doc %{name}-clients-%{version}/doc/CHANGES %{name}-clients-%{version}/doc/FAQ
cd137d5
%doc %{name}-clients-%{version}/doc/HOW-TO %{name}-clients-%{version}/doc/html
cd137d5
%doc %{name}-clients-%{version}/support
cd137d5
%doc %{name}-clients-%{version}/ragraph/ragraph.pl
cd137d5
# .pm checked for dependencies regardless of permissions
cd137d5
#%doc %{name}-clients-%{version}/contrib
cd137d5
%doc README.fedora
cd137d5
%{_bindir}/ra*
cd137d5
%{_mandir}/man1/ra*
cd137d5
%{_mandir}/man5/ra*
cd137d5
cd137d5
%changelog
345d39a
* Thu Sep  8 2011 Tom Callaway <spot@fedoraproject.org> - 2.0.6.fixes.1-21
345d39a
- convert to systemd
345d39a
07d8281
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6.fixes.1-20
07d8281
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
07d8281
48bf24e
* Sun Oct 04 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2.0.6.fixes.1-19
46eca4c
- Fix build with libpcap 1.0 (rename conflicting bpf_dump symbol, remove
46eca4c
  conflicting redeclaration of bpf_image)
48bf24e
51a107f
* Wed Sep 30 2009 Gabriel Somlo <somlo at cmu.edu> - 2.0.6.fixes.1-18
51a107f
- Rebuilt for libpcap.1.0
51a107f
fd5a3d4
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6.fixes.1-17
fd5a3d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fd5a3d4
8b525d1
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6.fixes.1-16
8b525d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8b525d1
f78423d
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.6.fixes.1-15
f78423d
- Autorebuild for GCC 4.3
f78423d
5f86ed9
* Thu Aug 16 2007 Gabriel Somlo <somlo at cmu.edu> 2.0.6.fixes.1-14
5f86ed9
- fixed license
5f86ed9
7c10a18
* Wed Nov 29 2006 Gabriel Somlo <somlo at cmu.edu> 2.0.6.fixes.1-13
7c10a18
- rebuilt against libpcap 0.9.5
7c10a18
4988b7c
* Fri Sep 08 2006 Gabriel Somlo <somlo at cmu.edu> 2.0.6.fixes.1-12
4988b7c
- rebuilt for FC6MassRebuild
4988b7c
e6f2ebd
* Thu Jun 29 2006 Gabriel Somlo <somlo at cmu.edu> 2.0.6.fixes.1-11
e6f2ebd
- buildreq. libpcap up to fc5, libpcap-devel in fc6 and later
e6f2ebd
b69735a
* Fri Apr 21 2006 Gabriel Somlo <somlo at cmu.edu> 2.0.6.fixes.1-10
b69735a
- bumped release to workaround botched CVS tag attempt
b69735a
1434a54
* Fri Apr 21 2006 Gabriel Somlo <somlo at cmu.edu> 2.0.6.fixes.1-9
1434a54
- daemon patches now eliminate unused common files: argus_parse.c, argus_util.c, and argus_auth.c
1434a54
004f4ad
* Mon Mar 20 2006 Gabriel Somlo <somlo at cmu.edu> 2.0.6.fixes.1-8
004f4ad
- added ncurses-devel build requirement
004f4ad
cd137d5
* Wed Mar 15 2006 Gabriel Somlo <somlo at cmu.edu> 2.0.6.fixes.1-7
cd137d5
- fixed argus makefile patch
cd137d5
cd137d5
* Fri Mar 10 2006 Gabriel Somlo <somlo at cmu.edu> 2.0.6.fixes.1-6
cd137d5
- argus.conf now enables listening for connections on localhost
cd137d5
- added README.fedora to clients subpackage explaining contrib situation and ra printing patch
cd137d5
cd137d5
* Wed Mar 08 2006 Gabriel Somlo <somlo at cmu.edu> 2.0.6.fixes.1-5
cd137d5
- added patch from Peter Van Epp <vanepp@sfu.ca> to fix ra printing bugs
cd137d5
cd137d5
* Mon Mar 06 2006 Gabriel Somlo <somlo at cmu.edu> 2.0.6.fixes.1-4
cd137d5
- removing execute flag from all documentation
cd137d5
- capture file location changed /var/argus -> /var/lib/argus
cd137d5
- init script set to default-disabled
cd137d5
cd137d5
* Sun Mar 05 2006 Gabriel Somlo <somlo at cmu.edu> 2.0.6.fixes.1-3
cd137d5
- backed out of __perl_requires redefine for .pm files - trouble w. rpmbuild
cd137d5
cd137d5
* Fri Feb 24 2006 Gabriel Somlo <somlo at cmu.edu> 2.0.6.fixes.1-2
cd137d5
- empty perl_req/prov avoids .pm's in %doc from being dep-checked at all
cd137d5
- misc spec file fixes
cd137d5
cd137d5
* Fri Feb 24 2006 Gabriel Somlo <somlo at cmu.edu> 2.0.6.fixes.1-1
cd137d5
- initial build for fedora extras