123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377 |
- %bcond_with systemd
- %bcond_with doc
- Summary: Userspace logging daemon for netfilter
- Name: ulogd
- Version: 2.0.7
- Release: 3%{?_dist_release}%{?with_systemd:.systemd}
- Group: system
- Vendor: Project Vine
- Distribution: Vine Linux
- License: GPLv2+
- URL: https://netfilter.org/projects/ulogd/
- Source0: https://netfilter.org/projects/ulogd/files/%{name}-%{version}.tar.bz2
- Source1: %{name}.init
- Source2: %{name}.logrotate
- Source3: %{name}.service
- BuildRequires: libnetfilter_conntrack-devel >= 0.0.95
- BuildRequires: libnetfilter_log-devel >= 1.0.0
- BuildRequires: libnfnetlink-devel >= 0.0.39
- BuildRequires: libnetfilter_acct-devel >= 1.0.1
- BuildRequires: libmnl-devel
- %if %{with doc}
- BuildRequires: linuxdoc-tools
- BuildRequires: texlive-collection-fontsrecommended
- %endif
- %if %{with systemd}
- %{?systemd_requires}
- %else
- Requires(post): /sbin/service
- Requires(post): /sbin/chkconfig
- Requires(preun): /sbin/chkconfig
- Requires(preun): /sbin/service
- Requires(postun): /sbin/service
- %endif
- %description
- %{name} is a logging daemon that reads event messages coming from the Netfilter
- connection tracking and the Netfilter packet logging subsystem. You have to
- enable support for connection tracking event delivery; ctnetlink and the NFLOG
- target in your Linux kernel 2.6.x or load their respective modules. The
- deprecated ULOG target (which has been superseded by NFLOG) is also supported.
- %package libdbi
- Summary: Libdbi framework output plugin for %{name}
- Group: system
- BuildRequires: libdbi-devel
- Requires: %{name} = %{version}
- %description libdbi
- %{name}-libdbi is a libdbi output plugin for %{name}. It enables logging of
- firewall information through a libdbi interface.
- %package mysql
- Summary: MySQL output plugin for %{name}
- Group: system
- BuildRequires: libmariadb-devel
- Requires: %{name} = %{version}
- %description mysql
- %{name}-mysql is a MySQL output plugin for %{name}. It enables logging of
- firewall information into a MySQL database.
- %package pgsql
- Summary: PostgreSQL output plugin for %{name}
- Group: system
- BuildRequires: libpq-devel
- Requires: %{name} = %{version}
- %description pgsql
- %{name}-pgsql is a PostgreSQL output plugin for %{name}. It enables logging of
- firewall information into a PostgreSQL database.
- %package pcap
- Summary: PCAP output plugin for %{name}
- Group: system
- BuildRequires: libpcap-devel
- Requires: %{name} = %{version}
- %description pcap
- %{name}-pcap is a output plugin for %{name} that saves packet logs as PCAP
- file. PCAP is a standard format that can be later analyzed by a lot of tools
- such as tcpdump and wireshark.
- %package sqlite
- Summary: SQLITE output plugin for %{name}
- Group: system
- BuildRequires: sqlite3-devel
- Requires: %{name} = %{version}
- %description sqlite
- %{name}-sqlite is a SQLITE output plugin for %{name}. It enables logging of
- firewall information into an SQLITE database.
- %debug_package
- %prep
- %setup -q
- %{__sed} -i -e 's|/var/log/|%{_localstatedir}/log/%{name}/|g' %{name}.conf.in
- %build
- %configure \
- --disable-static \
- --enable-shared \
- --with-dbi-lib=%{_libdir} \
- --with-pcap-lib=%{_libdir} \
- --with-sqlite3-lib=%{_libdir}
- %{__make} %{?_smp_mflags}
- %if %{with doc}
- %{__make} %{?_smp_mflags} -C doc
- %endif
- %install
- %{__rm} -rf %{buildroot}
- %{__make} DESTDIR=%{buildroot} install
- %{__mkdir_p} -m 0755 %{buildroot}%{_localstatedir}/log/%{name}/
- %{__mkdir_p} -m 0755 %{buildroot}%{_sysconfdir}/
- %{__install} -m 0644 %{name}.conf %{buildroot}%{_sysconfdir}/
- %{__mkdir_p} -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d/
- %{__install} -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
- %if %{with systemd}
- %{__mkdir_p} -m 0755 %{buildroot}%{_unitdir}/
- %{__install} -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service
- %else
- %{__mkdir_p} -m 0755 %{buildroot}%{_initrddir}/
- %{__install} -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name}
- %endif
- %check
- %{__make} %{?_smp_mflags} check
- %clean
- %{__rm} -rf %{buildroot}
- %post
- %if %{with systemd}
- %systemd_post %{name}.service
- %else
- /sbin/chkconfig --add %{name}
- /sbin/service %{name} condrestart >/dev/null 2>&1 || :
- %endif
- %preun
- %if %{with systemd}
- %systemd_preun %{name}.service
- %else
- # if we are uninstalling...
- if [ "$1" = 0 -o -x /bin/systemctl ]; then
- /sbin/service %{name} stop > /dev/null 2>&1 ||:
- /sbin/chkconfig --del %{name}
- fi
- %endif
- %postun
- %if %{with systemd}
- %systemd_postun_with_restart %{name}.service
- %else
- # if we are upgrading...
- if [ "$1" -ge "1" ]; then
- /sbin/service %{name} condrestart >/dev/null 2>&1 || :
- fi
- %endif
- %files
- %license COPYING
- %doc AUTHORS README
- %if %{with doc}
- %doc doc/%{name}.txt doc/%{name}.ps doc/%{name}.html
- %endif
- %{_sbindir}/%{name}
- %if %{with systemd}
- %{_unitdir}/%{name}.service
- %else
- %{_initrddir}/%{name}
- %endif
- %{_libdir}/%{name}
- %doc %{_mandir}/man?/*
- %config(noreplace) %{_sysconfdir}/%{name}.conf
- %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
- %dir %{_localstatedir}/log/%{name}
- %exclude %{_libdir}/%{name}/*.la
- %exclude %{_libdir}/%{name}/%{name}_output_DBI.so
- %exclude %{_libdir}/%{name}/%{name}_output_MYSQL.so
- %exclude %{_libdir}/%{name}/%{name}_output_PGSQL.so
- %exclude %{_libdir}/%{name}/%{name}_output_PCAP.so
- %exclude %{_libdir}/%{name}/%{name}_output_SQLITE3.so
- %files libdbi
- %defattr(0755,root,root,0755)
- %{_libdir}/%{name}/%{name}_output_DBI.so
- %defattr(0644,root,root,0755)
- %license COPYING
- %files mysql
- %defattr(0755,root,root,0755)
- %{_libdir}/%{name}/%{name}_output_MYSQL.so
- %defattr(0644,root,root,0755)
- %license COPYING
- %files pgsql
- %defattr(0755,root,root,0755)
- %{_libdir}/%{name}/%{name}_output_PGSQL.so
- %defattr(0644,root,root,0755)
- %license COPYING
- %files pcap
- %defattr(0755,root,root,0755)
- %{_libdir}/%{name}/%{name}_output_PCAP.so
- %defattr(0644,root,root,0755)
- %license COPYING
- %files sqlite
- %defattr(0755,root,root,0755)
- %{_libdir}/%{name}/%{name}_output_SQLITE3.so
- %defattr(0644,root,root,0755)
- %license COPYING
- %changelog
- * Tue Sep 28 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.7-3
- - fixed permissions.
- * Sat Apr 18 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.7-2
- - added systemd support (disabled as default).
- * Sun Aug 25 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.7-1
- - new upstream release.
- - added Source2: dropped in upstream.
- - disabled to build documents: raised tooooo many errors.
- * Sun Feb 25 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.5-1
- - new upstream release.
- * Sun Jan 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.4-3
- - rebuild with libdbi-0.9.0
- * Mon Jul 14 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.4-2
- - fixed configuration for logrotate.
- * Sun Jun 29 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.4-1
- - new upstream release.
- - initial build for Vine Linux.
- * Tue Sep 24 2013 Martin Preisler <mpreisle@redhat.com> 2.0.2-2
- - added accidentaly removed dist suffix in release
- - fixed up bogus dates in changelog
- * Mon Sep 09 2013 Martin Preisler <mpreisle@redhat.com> 2.0.2-1
- - update version
- * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-5.beta4
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
- * Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-4.beta4
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
- * Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-3.beta4
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
- * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-2.beta4
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
- * Wed Nov 23 2011 Stephen Beahm <stephenbeahm@comcast.net> - 2.0.0-1.beta4
- - update version.
- - spec review.
- - (rebased on top of the remaining 1.24 changes, original date was Nov 16 2010)
- * Wed Mar 23 2011 Dan Horák <dan@danny.cz> - 1.24-15
- - rebuilt for mysql 5.5.10 (soname bump in libmysqlclient)
- * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.24-14
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
- * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.24-13
- - rebuilt with new openssl
- * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.24-12
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
- * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.24-11
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
- * Sat Jan 24 2009 Aurelien Bompard <abompard@fedoraproject.org> 1.24-10
- - rebuild for mysql
- * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.24-9
- - Autorebuild for GCC 4.3
- * Wed Jan 9 2008 Leopold Aichinger <linuxtrainer@gmx.at> 1.24-8
- - Support for libpcap added
- * Thu Dec 06 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.24-7
- - Rebuild for deps
- * Tue Aug 14 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.24-5
- - Fix the deprecated way of getting the DSO initializers run, causing
- builds to fails with rpm-build > 4.4.2.1-3 (new find-debuginfo.sh script)
- * Sat Jul 14 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.24-4
- - add patch to fix bug 247345
- - update URL
- - fix initscript (bug 247083)
- - unmark init script as %%config (Fedora policy)
- * Sat Dec 09 2006 Aurelien Bompard <abompard@fedoraproject.org> 1.24-3
- - rebuild
- * Thu Aug 31 2006 Aurelien Bompard <abompard@fedoraproject.org> 1.24-2
- - rebuild
- * Wed Feb 22 2006 Aurelien Bompard <gauret[AT]free.fr> 1.24-1
- - version 1.24
- - drop patch3 (applied upstream)
- - drop patch4 (upstream uses mysql-config to detect libdir now)
- - drop patch5 (applied upstream)
- * Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 1.23-3
- - rebuild for FC5
- * Sun Jul 24 2005 Aurelien Bompard <gauret[AT]free.fr> 1.23-2
- - compress rotated logs
- - start after mysql in the init process
- - use dist tag
- * Tue Apr 19 2005 Aurelien Bompard <gauret[AT]free.fr> 1.23-1.fc4
- - version 1.23
- - change release tag for FC4
- - add patch for GCC4 (upstream bug #323)
- * Thu Apr 07 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
- - rebuilt
- * Wed Mar 09 2005 Aurelien Bompard <gauret[AT]free.fr> 1.22-1
- - version 1.22
- - add gpg signature to sources
- * Sun Feb 20 2005 Aurelien Bompard <gauret[AT]free.fr> 1.21-1
- - version 1.21
- * Fri Dec 17 2004 Michael Schwendt <mschwendt[AT]users.sf.net> 1.02-8
- - revise x86_64 patch to remove more hardcoded /lib badness
- * Fri Dec 17 2004 Michael Schwendt <mschwendt[AT]users.sf.net> 1.02-7
- - x86_64, patch configure to look for mysql/pgsql below %%_libdir.
- - delete undefined %%epoch in mysql/pgsql sub package dep.
- * Sun Oct 31 2004 Aurelien Bompard <gauret[AT]free.fr> 1.02-6
- - apply Michael Schwendt's suggestions in bug 1598
- * Wed Oct 20 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.02-0.fdr.5
- - enable MySQL and PostgreSQL in subpackages
- - add man page from Debian
- * Wed Oct 06 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.02-0.fdr.4
- - apply QA suggestions (bug 1598)
- * Sat Jul 10 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.02-0.fdr.3
- - disable parallel builds
- - add chkconfig to Requires(pre,post)
- - set the right mode for /etc/logrotate.d/ulogd
- - rotate weekly
- * Sun May 16 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.02-0.fdr.2
- - Add Epoch: 0
|