dcf4607
%define _hardened_build 1
e8fac31
%global clientversion 3.0.8.2
cd137d5
Name: argus
e8fac31
Version: 3.0.8.2
04710b5
Release: 25%{?dist}
cd137d5
Summary: Network transaction audit tool
6f538f3
License: GPL-2.0-or-later
cd137d5
Url: http://qosient.com/argus
86fd65b
Source0: http://qosient.com/argus/src/%{name}-%{version}.tar.gz
c737739
Source1: http://qosient.com/argus/src/%{name}-clients-%{clientversion}.tar.gz
345d39a
Source2: argus.service
cd137d5
Source3: README.fedora
2cfb319
Source4: argus.logrotate
5323449
Patch0: argus-tirpc.patch
684755f
Patch1: common.patch
7c33326
Patch2: argus-configure-c99.patch
412d12a
Requires(post): systemd-units
412d12a
Requires(preun): systemd-units
412d12a
Requires(postun): systemd-units
2cfb319
Requires: logrotate
684755f
BuildRequires: gcc autoconf automake
5323449
BuildRequires: cyrus-sasl-devel perl-generators flex bison ncurses-devel
5323449
BuildRequires: libpcap-devel zlib-devel libtirpc-devel readline-devel
345d39a
BuildRequires: systemd-units
7855f3e
BuildRequires: make
cd137d5
cd137d5
%package clients
cd137d5
Summary: Client tools for argus network audit
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
86fd65b
%package devel
86fd65b
Summary: Header files for argus network audit
86fd65b
86fd65b
%description devel
86fd65b
Header files for argus.
86fd65b
86fd65b
cd137d5
%prep
86fd65b
%setup -a0 -q
86fd65b
%setup -a1 -q
Software Management Team 5338042
%patch -P0 -p0
Software Management Team 5338042
%patch -P1 -p0
Software Management Team 5338042
%patch -P2 -p1
7c33326
pushd %{name}-clients-%{clientversion}
Software Management Team 5338042
%patch -P2 -p1
7c33326
popd
cd137d5
%{__install} -p -m 0644 %{SOURCE3} .
cd137d5
cd137d5
%build
684755f
autoreconf -if
684755f
export CPPFLAGS="$CPPFLAGS -I/usr/include/tirpc -fcommon"
684755f
export CXXFLAGS="$CXXFLAGS -fcommon"
86fd65b
%configure --with-sasl=yes --prefix=%{_prefix}
684755f
find . -type f -name 'Makefile' | xargs sed -i s/fcf-protection/fcf-protection\ -fcommon/g
c737739
pushd %{name}-clients-%{clientversion}
86fd65b
%configure --with-sasl=yes --prefix=%{_prefix}
cd137d5
%{__make} %{?_smp_mflags}
cd137d5
popd
cd137d5
cd137d5
%install
cd137d5
%{__make} DESTDIR=%{buildroot} install
c737739
pushd %{name}-clients-%{clientversion}
cd137d5
%{__make} DESTDIR=%{buildroot} install
cd137d5
# avoid unwanted dependencies when using these as docs (clients package):
c737739
find support -type f -exec chmod a-x '{}' \;
cd137d5
popd
cd137d5
%{__rm} -rf %{buildroot}/%{_libdir}
cd137d5
%{__install} -d -m 0755 %{buildroot}/%{_localstatedir}/lib/argus/archive
cd137d5
%{__install} -D -m 0644 support/Config/argus.conf %{buildroot}/%{_sysconfdir}/argus.conf
3147762
%{__install} -D -m 0644 %{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
86fd65b
rm -rf %{buildroot}/usr/share/doc/argus-clients-3.0/
86fd65b
mv %{buildroot}/usr/argus %{buildroot}%{_datadir}/argus
86fd65b
2cfb319
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
2cfb319
%{__install} -p -D -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/argus
3147762
412d12a
%post
3147762
%systemd_post argus.service
412d12a
412d12a
%preun
3147762
%systemd_preun argus.service
412d12a
412d12a
%postun
3147762
%systemd_postun_with_restart argus.service
412d12a
cd137d5
%files
86fd65b
%doc support bin/argusbug
5323449
%doc CREDITS INSTALL README VERSION
5323449
%license COPYING
cd137d5
%config(noreplace) %{_sysconfdir}/argus.conf
2cfb319
%config(noreplace) %{_sysconfdir}/logrotate.d/argus
345d39a
%{_unitdir}/argus.service
86fd65b
%{_bindir}/argus*
86fd65b
%{_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
c737739
%doc %{name}-clients-%{clientversion}/ChangeLog %{name}-clients-%{clientversion}/COPYING
c737739
%doc %{name}-clients-%{clientversion}/CREDITS %{name}-clients-%{clientversion}/INSTALL
c737739
%doc %{name}-clients-%{clientversion}/README %{name}-clients-%{clientversion}/VERSION
c737739
%doc %{name}-clients-%{clientversion}/support
cd137d5
%doc README.fedora
cd137d5
%{_bindir}/ra*
86fd65b
%{_sbindir}/ra*
cd137d5
%{_mandir}/man1/ra*
cd137d5
%{_mandir}/man5/ra*
86fd65b
%{_mandir}/man8/ra*
86fd65b
%{_datadir}/argus/
86fd65b
86fd65b
%files devel
86fd65b
%{_includedir}/argus/
cd137d5
cd137d5
%changelog
04710b5
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8.2-25
04710b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
04710b5
3ed670b
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8.2-24
3ed670b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
3ed670b
7d4473e
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8.2-23
7d4473e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
7d4473e
6f538f3
* Tue Mar 07 2023 Gwyn Ciesla <gwync@protonmail.com> - 3.0.8.2-22
6f538f3
- migrated to SPDX license
6f538f3
6d7b54b
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8.2-21
6d7b54b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
6d7b54b
7c33326
* Fri Nov 25 2022 Florian Weimer <fweimer@redhat.com> - 3.0.8.2-20
7c33326
- Port configure scripts to C99
7c33326
e17c1f7
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8.2-19
e17c1f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
e17c1f7
bd67222
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8.2-18
bd67222
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
bd67222
8776642
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8.2-17
8776642
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8776642
dc44340
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.0.8.2-16
dc44340
- Rebuilt for updated systemd-rpm-macros
dc44340
  See https://pagure.io/fesco/issue/2583.
dc44340
cfd6ab1
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8.2-15
cfd6ab1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
cfd6ab1
9c91595
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8.2-14
9c91595
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9c91595
0d18345
* Fri Jan 31 2020 Gwyn Ciesla <gwync@protonmail.com> - 3.0.8.2-13
0d18345
- Fix FTBFS
0d18345
ae48ed1
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8.2-12
ae48ed1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
ae48ed1
446f2c8
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8.2-11
446f2c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
446f2c8
763a76a
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.0.8.2-10
763a76a
- Rebuild for readline 8.0
763a76a
afdf83a
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8.2-9
afdf83a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
afdf83a
061e6e5
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8.2-8
061e6e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
061e6e5
5323449
* Fri Mar 16 2018 Gwyn Ciesla <limburgher@gmail.com> - 3.0.8.2-7
5323449
- Migrate to libtirpc.
5323449
f99f0cb
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.0.8.2-6
f99f0cb
- Escape macros in %%changelog
f99f0cb
6b51535
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8.2-5
6b51535
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6b51535
59ecfd1
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8.2-4
59ecfd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
59ecfd1
8acf89c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8.2-3
8acf89c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8acf89c
77da20f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8.2-2
77da20f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
77da20f
e8fac31
* Tue Jun 07 2016 Jon Ciesla <limburgher@gmail.com> - 3.0.8.2-1
e8fac31
- 3.0.8.2, BZ 1341870.
e8fac31
aa86dd3
* Mon May 02 2016 Jon Ciesla <limburgher@gmail.com> - 3.0.8-6
aa86dd3
- Only have logrotate compress argus logs, not all logs. BZ 1332098.
aa86dd3
6ff579e
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8-5
6ff579e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6ff579e
2cfb319
* Mon Jan 04 2016 Jon Ciesla <limburgher@gmail.com> - 3.0.8-4
2cfb319
- Switch from cron to logrotate, BZ 1266304.
2cfb319
- Removed systemd migration cruft.
2cfb319
3147762
* Tue Sep 15 2015 Jon Ciesla <limburgher@gmail.com> - 3.0.8-3
3147762
- Introduce new systemd-rpm macros in argus spec file, BZ 850029
3147762
- Missing argus client: ragraph, BZ 1152650
3147762
- Add cron.daily rotation of argus data file, BZ 1219565
3147762
- remove executable permission bits from argus.service, BZ 1252117
3147762
458f555
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.8-2
458f555
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
458f555
7290f04
* Thu Sep 04 2014 Jon Ciesla <limburgher@gmail.com> - 3.0.8-1
7290f04
- Latest upstream, BZ 1138240.
7290f04
9091142
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.6.1-5
9091142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9091142
054c017
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.6.1-4
054c017
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
054c017
2424d66
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.6.1-3
2424d66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2424d66
e46e1b3
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 3.0.6.1-2
e46e1b3
- Perl 5.18 rebuild
e46e1b3
c737739
* Wed Feb 27 2013 Jon Ciesla <limburgher@gmail.com> - 3.0.6.1-1
c737739
- Latest upstream, BZ 915190.
c737739
c720c60
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.4-4
c720c60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c720c60
87c0ca8
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.4-3
87c0ca8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
87c0ca8
dcf4607
* Thu Apr 12 2012 Jon Ciesla <limburgher@gmail.com> - 3.0.4-2
dcf4607
- Add hardened build.
dcf4607
86fd65b
* Mon Mar 19 2012 Jon Ciesla <limburgher@gmail.com> - 3.0.4-1
86fd65b
- Latest upstream, BZ 575984.
86fd65b
58b6d27
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6.fixes.1-23
58b6d27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
58b6d27
412d12a
* Fri Sep  9 2011 Tom Callaway <spot@fedoraproject.org> - 2.0.6.fixes.1-22
412d12a
- add missing systemd scriptlets
412d12a
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
f99f0cb
- 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