%define _default_patch_fuzz 2 Name: pads Version: 1.2 Release: 41%{?dist} Summary: Passive Asset Detection System License: GPL-2.0-or-later URL: http://passive.sourceforge.net/ Source0: http://prdownloads.sourceforge.net/passive/%{name}-%{version}.tar.gz Source1: pads.service Source2: pads.sysconfig Patch1: pads-1.2-cleanup.patch Patch2: pads-1.2-memleak.patch Patch3: pads-1.2-overrun.patch Patch4: pads-1.2-disable-debug.patch Patch5: pads-1.2-daemonize.patch Patch6: pads-1.2-ether-codes-update.patch Patch7: pads-1.2-misc.patch Patch8: pads-1.2-arp.patch Patch9: pads-1.2-prelude.patch Patch10: pads+vlan.patch Patch11: pads-1.2-prelude-cleanup.patch Patch12: pads-1.2-readonly.patch Patch13: pads-1.2-bstring.patch Patch14: pads-1.2-leak.patch Patch15: pads-1.2-perf.patch Patch16: pads-1.2-daemon.patch Patch17: pads-1.2-pthreads.patch Patch18: pads-aarch64.patch Patch19: pads-1.2-inline-cleanup.patch Patch20: pads-1.2-extra-libs.patch BuildRequires: make BuildRequires: gcc BuildRequires: automake autoconf BuildRequires: pcre-devel libpcap-devel BuildRequires: perl-generators BuildRequires: systemd Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units %description PADS is a libpcap based detection engine used to passively detect network assets. %prep %setup -q %patch 1 -p1 %patch 2 -p1 %patch 3 -p1 %patch 4 -p1 %patch 5 -p1 %patch 6 -p1 %patch 7 -p1 %patch 8 -p1 %patch 9 -p1 %patch 10 -p1 %patch 11 -p1 %patch 12 -p1 %patch 13 -p1 %patch 14 -p1 %patch 15 -p1 %patch 16 -p1 %patch 17 -p1 %patch 18 -p1 %patch 19 -p1 %patch 20 -p1 %build autoreconf -fv --install %configure make %{?_smp_mflags} %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_sysconfdir}/sysconfig make install DESTDIR=%{buildroot} install -m 644 %SOURCE1 %{buildroot}%{_unitdir}/pads.service install -m 640 %SOURCE2 %{buildroot}%{_sysconfdir}/sysconfig/%{name} # Remove installed docs since we pick this up another way rm -rf $RPM_BUILD_ROOT/usr/share/pads/ %post %systemd_post pads.service %preun %systemd_preun pads.service %postun %systemd_postun_with_restart pads.service %files %doc doc/AUTHORS doc/COPYING doc/README doc/ChangeLog %{_sysconfdir}/pads-ether-codes %{_sysconfdir}/pads-signature-list %config(noreplace) %attr(0640,root,root) %{_sysconfdir}/pads.conf %config(noreplace) %attr(0640,root,root) %{_sysconfdir}/sysconfig/%{name} %{_unitdir}/pads.service %{_bindir}/pads %{_bindir}/pads-report %{_mandir}/*/* %changelog * Thu Jul 18 2024 Fedora Release Engineering - 1.2-41 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 1.2-40 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.2-39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Nov 14 2023 Steve Grubb - 1.2-38 - Fix patching and improve security settings in service file * Thu Jul 20 2023 Fedora Release Engineering - 1.2-37 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 1.2-36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Dec 22 2022 Steve Grubb - 1.2-35 - SPDX Migration * Fri Jul 22 2022 Fedora Release Engineering - 1.2-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 1.2-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.2-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 1.2-31 - Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583. * Tue Jan 26 2021 Fedora Release Engineering - 1.2-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.2-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 1.2-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1.2-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.2-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.2-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 1.2-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Sep 21 2017 Steve Grubb 1.2-23 - Add systemd macros. (#850262) * Thu Aug 03 2017 Fedora Release Engineering - 1.2-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.2-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.2-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.2-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Aug 17 2015 Steve Grubb 1.2-18 - Fix bad inline keyword use (#1239755) * Thu Jun 18 2015 Fedora Release Engineering - 1.2-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 1.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Fri Jun 06 2014 Fedora Release Engineering - 1.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Petr Pisar - 1.2-13 - Perl 5.18 rebuild * Fri Jun 21 2013 Steve Grubb 1.2-12 - Drop prelude support * Sun Jun 02 2013 Steve Grubb 1.2-11 - Support Aarch64 (#926298) * Thu Feb 14 2013 Fedora Release Engineering - 1.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 1.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Feb 20 2012 Jon Ciesla - 1.2-8 - Migrate to systemd, BZ 661632. * Fri Feb 10 2012 Petr Pisar - 1.2-7 - Rebuild against PCRE 8.30 * Fri Jan 13 2012 Fedora Release Engineering - 1.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Jul 25 2009 Fedora Release Engineering - 1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Oct 28 2008 Steve Grubb 1.2-2 - Update CFLAGS for newer libprelude (#465964) * Tue Aug 12 2008 Steve Grubb 1.2-1 Initial rpm build with many bug fixes