1 |
Name: ulogd |
Summary: Userspace logging daemon for netfilter |
2 |
Version: 2.0.7 |
Name: ulogd |
3 |
Release: 1%{?dist} |
Version: 2.0.7 |
4 |
Summary: The userspace logging daemon for netfilter |
Release: 1%{?dist} |
5 |
License: GPLv2 |
License: GPLv2+ |
6 |
Group: System Environment/Daemons |
Group: System Environment/Daemons |
7 |
URL: http://gnumonks.org/projects |
URL: http://www.netfilter.org/projects/%{name}/ |
8 |
Source0: http://ftp.netfilter.org/pub/ulogd/ulogd-%{version}.tar.bz2 |
Source0: http://ftp.netfilter.org/pub/%{name}/%{name}-%{version}.tar.bz2 |
9 |
Source1: ulogd.logrotate |
Source1: %{name}.init |
10 |
Source2: ulogd.8 |
Source2: %{name}.logrotate |
11 |
Patch1: ulogd-1.21-logdir.patch |
Source3: %{name}2.service |
12 |
Patch2: ulogd-1.02-init.patch |
|
13 |
# Bug 247345 |
BuildRequires: libnetfilter_conntrack-devel >= 0.0.95 |
14 |
Patch3: ulogd-1.24-fortify-source.patch |
BuildRequires: libnetfilter_log-devel >= 1.0.0 |
15 |
# The code uses a deprecated way of getting its DSO initializers run, |
BuildRequires: libnfnetlink-devel >= 0.0.39 |
16 |
# build fails with rpm-build > 4.4.2.1-3 (new find-debuginfo.sh script) |
BuildRequires: libnetfilter_acct-devel >= 1.0.1 |
17 |
Patch4: ulogd-1.24-initializers.patch |
BuildRequires: sgml-tools |
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
BuildRequires: libmnl-devel |
19 |
Requires(post): initscripts, chkconfig |
|
20 |
Requires(postun): initscripts, chkconfig |
Requires(post): /sbin/service |
21 |
BuildRequires: mysql-devel |
Requires(post): /sbin/chkconfig |
22 |
BuildRequires: postgresql-devel |
Requires(preun): /sbin/chkconfig |
23 |
BuildRequires: libpcap-devel |
Requires(preun): /sbin/service |
24 |
BuildRequires: openssl-devel |
Requires(postun): /sbin/service |
25 |
|
|
26 |
%description |
%description |
27 |
Ulogd is an universal logging daemon for the ULOG target of netfilter, the |
%{name} is a logging daemon that reads event messages coming from the Netfilter |
28 |
Linux 2.4+ firewalling subsystem. Ulogd is able to log packets in various |
connection tracking and the Netfilter packet logging subsystem. You have to |
29 |
formats to different targets (text files, databases, etc..). It has an |
enable support for connection tracking event delivery; ctnetlink and the NFLOG |
30 |
easy-to-use plugin interface to add new protocols and new output targets. |
target in your Linux kernel 2.6.x or load their respective modules. The |
31 |
|
deprecated ULOG target (which has been superseded by NFLOG) is also supported. |
32 |
|
|
33 |
|
%package libdbi |
34 |
|
Summary: Libdbi framework output plugin for %{name} |
35 |
|
Group: System Environment/Daemons |
36 |
|
BuildRequires: libdbi-devel |
37 |
|
Requires: %{name} = %{version} |
38 |
|
%description libdbi |
39 |
|
%{name}-libdbi is a libdbi output plugin for %{name}. It enables logging of |
40 |
|
firewall information through a libdbi interface. |
41 |
|
|
42 |
%package mysql |
%package mysql |
43 |
Summary: MySQL output plugin for ulogd |
Summary: MySQL output plugin for %{name} |
44 |
Group: System Environment/Daemons |
Group: System Environment/Daemons |
45 |
Requires: %{name} = %{version} |
BuildRequires: mysql-devel |
46 |
|
#BuildRequires: openssl-devel |
47 |
|
Requires: %{name} = %{version} |
48 |
%description mysql |
%description mysql |
49 |
Ulogd-mysql is a MySQL output plugin for ulogd. It enables logging of |
%{name}-mysql is a MySQL output plugin for %{name}. It enables logging of |
50 |
firewall information into a MySQL database. |
firewall information into a MySQL database. |
|
|
|
|
%package pgsql |
|
|
Summary: PostgreSQL output plugin for ulogd |
|
|
Group: System Environment/Daemons |
|
|
Requires: %{name} = %{version} |
|
51 |
|
|
52 |
|
%package pgsql |
53 |
|
Summary: PostgreSQL output plugin for %{name} |
54 |
|
Group: System Environment/Daemons |
55 |
|
BuildRequires: postgresql-devel |
56 |
|
Requires: %{name} = %{version} |
57 |
%description pgsql |
%description pgsql |
58 |
Ulogd-pgsql is a PostgreSQL output plugin for ulogd. It enables logging of |
%{name}-pgsql is a PostgreSQL output plugin for %{name}. It enables logging of |
59 |
firewall information into a PostgreSQL database. |
firewall information into a PostgreSQL database. |
60 |
|
|
61 |
%package pcap |
%package pcap |
62 |
Summary: PCAP output plugin for ulogd |
Summary: PCAP output plugin for %{name} |
63 |
Group: System Environment/Daemons |
Group: System Environment/Daemons |
64 |
Requires: %{name} = %{version} |
BuildRequires: libpcap-devel |
65 |
|
Requires: %{name} = %{version} |
66 |
%description pcap |
%description pcap |
67 |
ulogd-pcap is a output plugin for ulogd that saves packet logs as PCAP file. |
%{name}-pcap is a output plugin for %{name} that saves packet logs as PCAP |
68 |
PCAP is a standard format that can be later analyzed by a lot of tools such as |
file. PCAP is a standard format that can be later analyzed by a lot of tools |
69 |
tcpdump and wireshark. |
such as tcpdump and wireshark. |
70 |
|
|
71 |
|
%package sqlite |
72 |
|
Summary: SQLITE output plugin for %{name} |
73 |
|
Group: System Environment/Daemons |
74 |
|
BuildRequires: sqlite-devel |
75 |
|
Requires: %{name} = %{version} |
76 |
|
%description sqlite |
77 |
|
%{name}-sqlite is a SQLITE output plugin for %{name}. It enables logging of |
78 |
|
firewall information into an SQLITE database. |
79 |
|
|
80 |
%prep |
%prep |
81 |
%setup -q |
%setup -q |
|
%patch1 -p1 -b .logdir |
|
|
%patch2 -p1 -b .lsbinit |
|
|
%patch3 -p0 -b .fortify-source |
|
|
# Enable BuildID : |
|
|
# https://www.redhat.com/archives/fedora-devel-announce/2007-August/msg00007.html |
|
|
perl -pi -e 's/\(LD\) -shared/(CC) \$(CFLAGS) \$(LDFLAGS) -shared/g' */Makefile.in |
|
|
%patch4 -p1 -b .initializers |
|
82 |
|
|
83 |
|
%{__sed} -i -e 's|/var/log/|%{_localstatedir}/log/%{name}/|g' %{name}.conf.in |
84 |
|
|
85 |
%build |
%build |
86 |
%configure --with-mysql --with-pgsql |
%configure \ |
87 |
# Does not support parallel builds |
--disable-static \ |
88 |
make |
--enable-shared \ |
89 |
|
--with-dbi-lib=%{_libdir} \ |
90 |
|
--with-pcap-lib=%{_libdir} \ |
91 |
|
--with-sqlite3-lib=%{_libdir} |
92 |
|
|
93 |
|
%{__make} %{?_smp_mflags} |
94 |
|
%{__make} %{?_smp_mflags} -C doc |
95 |
|
|
96 |
%install |
%install |
97 |
rm -rf $RPM_BUILD_ROOT |
%{__rm} -rf %{buildroot} |
98 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} |
%{__make} DESTDIR=%{buildroot} install |
99 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ulogd |
|
100 |
mkdir -p $RPM_BUILD_ROOT%{_sbindir}/sbin |
%{__mkdir_p} -m 0755 %{buildroot}%{_localstatedir}/log/%{name}/ |
101 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
102 |
|
%{__mkdir_p} -m 0755 %{buildroot}%{_sysconfdir}/ |
103 |
mkdir -p $RPM_BUILD_ROOT%{_initrddir} |
%{__install} -m 0644 %{name}.conf %{buildroot}%{_sysconfdir}/ |
104 |
install -m755 ulogd.init $RPM_BUILD_ROOT%{_initrddir}/ulogd |
|
105 |
|
%{__mkdir_p} -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d/ |
106 |
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ulogd |
%{__install} -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} |
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d |
|
|
install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ulogd |
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8 |
|
|
sed -e 's/@VERSION@/%{version}/g' %{SOURCE2} > $RPM_BUILD_ROOT%{_mandir}/man8/ulogd.8 |
|
|
gzip $RPM_BUILD_ROOT%{_mandir}/man8/ulogd.8 |
|
107 |
|
|
108 |
|
|
109 |
%post |
%post |
110 |
/sbin/chkconfig --add ulogd |
/sbin/chkconfig --add %{name} |
111 |
|
/sbin/service %{name} condrestart >/dev/null 2>&1 || : |
112 |
|
|
113 |
%preun |
%preun |
114 |
if [ "$1" = 0 ]; then |
# if we are uninstalling... |
115 |
/sbin/service ulogd stop > /dev/null 2>&1 ||: |
if [ "$1" = 0 ]; then |
116 |
/sbin/chkconfig --del ulogd |
/sbin/service %{name} stop > /dev/null 2>&1 ||: |
117 |
|
/sbin/chkconfig --del %{name} |
118 |
fi |
fi |
119 |
|
|
120 |
%postun |
%postun |
121 |
if [ "$1" -ge "1" ]; then |
# if we are upgrading... |
122 |
/sbin/service ulogd reload > /dev/null 2>&1 ||: |
if [ "$1" -ge "1" ]; then |
123 |
|
/sbin/service %{name} condrestart >/dev/null 2>&1 || : |
124 |
fi |
fi |
125 |
|
|
126 |
|
%check |
127 |
|
%{__make} %{?_smp_mflags} check |
128 |
|
|
129 |
%clean |
%clean |
130 |
rm -rf $RPM_BUILD_ROOT |
%{__rm} -rf %{buildroot} |
131 |
|
|
132 |
%files |
%files |
133 |
%defattr(-,root,root,) |
%defattr(0755,root,root,0755) |
134 |
%doc COPYING AUTHORS README |
%{_sbindir}/%{name} |
135 |
%doc doc/ulogd.txt doc/ulogd.a4.ps doc/ulogd.html |
%{_libdir}/%{name} |
136 |
%doc doc/mysql.table* doc/pgsql.table |
%defattr(0644,root,root,0755) |
137 |
%{_sbindir}/ulogd |
%doc COPYING |
138 |
%config(noreplace) %{_sysconfdir}/ulogd.conf |
%doc AUTHORS README |
139 |
%{_sysconfdir}/rc.d/init.d/ulogd |
%doc doc/%{name}.txt doc/%{name}.ps doc/%{name}.html |
140 |
%{_libdir}/ulogd |
%doc %{_mandir}/man?/* |
141 |
%dir %{_localstatedir}/log/ulogd |
%config(noreplace) %{_sysconfdir}/%{name}.conf |
142 |
%config(noreplace) %{_sysconfdir}/logrotate.d/ulogd |
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} |
143 |
%{_mandir}/man8/ulogd.8.gz |
%dir %{_localstatedir}/log/%{name} |
144 |
%exclude %{_libdir}/ulogd/ulogd_MYSQL.so |
%exclude %{_libdir}/%{name}/*.la |
145 |
%exclude %{_libdir}/ulogd/ulogd_PGSQL.so |
%exclude %{_libdir}/%{name}/%{name}_output_DBI.so |
146 |
%exclude %{_libdir}/ulogd/ulogd_PCAP.so |
%exclude %{_libdir}/%{name}/%{name}_output_MYSQL.so |
147 |
|
%exclude %{_libdir}/%{name}/%{name}_output_PGSQL.so |
148 |
|
%exclude %{_libdir}/%{name}/%{name}_output_PCAP.so |
149 |
|
%exclude %{_libdir}/%{name}/%{name}_output_SQLITE3.so |
150 |
|
|
151 |
|
%files libdbi |
152 |
|
%defattr(0755,root,root,0755) |
153 |
|
%{_libdir}/%{name}/%{name}_output_DBI.so |
154 |
|
%defattr(0644,root,root,0755) |
155 |
|
%doc COPYING |
156 |
|
|
157 |
%files mysql |
%files mysql |
158 |
%defattr(0755,root,root) |
%defattr(0755,root,root,0755) |
159 |
%{_libdir}/ulogd/ulogd_MYSQL.so |
%{_libdir}/%{name}/%{name}_output_MYSQL.so |
160 |
|
%defattr(0644,root,root,0755) |
161 |
|
%doc COPYING |
162 |
|
|
163 |
%files pgsql |
%files pgsql |
164 |
%defattr(0755,root,root) |
%defattr(0755,root,root,0755) |
165 |
%{_libdir}/ulogd/ulogd_PGSQL.so |
%{_libdir}/%{name}/%{name}_output_PGSQL.so |
166 |
|
%defattr(0644,root,root,0755) |
167 |
|
%doc COPYING |
168 |
|
|
169 |
%files pcap |
%files pcap |
170 |
%defattr(0755,root,root) |
%defattr(0755,root,root,0755) |
171 |
%{_libdir}/ulogd/ulogd_PCAP.so |
%{_libdir}/%{name}/%{name}_output_PCAP.so |
172 |
|
%defattr(0644,root,root,0755) |
173 |
|
%doc COPYING |
174 |
|
|
175 |
|
%files sqlite |
176 |
|
%defattr(0755,root,root,0755) |
177 |
|
%{_libdir}/%{name}/%{name}_output_SQLITE3.so |
178 |
|
%defattr(0644,root,root,0755) |
179 |
|
%doc COPYING |
180 |
|
|
181 |
%changelog |
%changelog |
182 |
* Wed Mar 03 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.7-2.sme |
* Wed Mar 03 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.7-2.sme |
183 |
- bump version to 2.0.7 [SME: 11248] |
- bump version to 2.0.7 [SME: 11248] |
184 |
|
- remove init script, let integrator choose between systemd and init. |
185 |
|
|
186 |
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-2 |
187 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
188 |
|
|
189 |
|
* Tue Sep 22 2015 Martin Preisler <mpreisle@redhat.com> 2.0.5-1 |
190 |
|
- new upstream release |
191 |
|
|
192 |
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-4 |
193 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
194 |
|
|
195 |
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-3 |
196 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
197 |
|
|
198 |
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-2 |
199 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
200 |
|
|
201 |
|
* Tue Apr 15 2014 Martin Preisler <mpreisle@redhat.com> 2.0.4-1 |
202 |
|
- new upstream release |
203 |
|
|
204 |
|
* Mon Jan 27 2014 Martin Preisler <mpreisle@redhat.com> 2.0.3-2 |
205 |
|
- rebuilt because of libdbi ABI break |
206 |
|
|
207 |
|
* Fri Nov 29 2013 Martin Preisler <mpreisle@redhat.com> 2.0.3-1 |
208 |
|
- update version |
209 |
|
|
210 |
|
* Tue Sep 24 2013 Martin Preisler <mpreisle@redhat.com> 2.0.2-2 |
211 |
|
- added accidentaly removed dist suffix in release |
212 |
|
- fixed up bogus dates in changelog |
213 |
|
|
214 |
|
* Mon Sep 09 2013 Martin Preisler <mpreisle@redhat.com> 2.0.2-1 |
215 |
|
- update version |
216 |
|
|
217 |
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-5.beta4 |
218 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
219 |
|
|
220 |
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-4.beta4 |
221 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild |
222 |
|
|
223 |
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-3.beta4 |
224 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
225 |
|
|
226 |
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-2.beta4 |
227 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
228 |
|
|
229 |
|
* Wed Nov 23 2011 Stephen Beahm <stephenbeahm@comcast.net> - 2.0.0-1.beta4 |
230 |
|
- update version. |
231 |
|
- spec review. |
232 |
|
- (rebased on top of the remaining 1.24 changes, original date was Nov 16 2010) |
233 |
|
|
234 |
|
* Wed Mar 23 2011 Dan HorĂ¡k <dan@danny.cz> - 1.24-15 |
235 |
|
- rebuilt for mysql 5.5.10 (soname bump in libmysqlclient) |
236 |
|
|
237 |
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.24-14 |
238 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
239 |
|
|
240 |
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.24-13 |
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.24-13 |
241 |
- rebuilt with new openssl |
- rebuilt with new openssl |
293 |
- change release tag for FC4 |
- change release tag for FC4 |
294 |
- add patch for GCC4 (upstream bug #323) |
- add patch for GCC4 (upstream bug #323) |
295 |
|
|
296 |
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> |
* Thu Apr 07 2005 Michael Schwendt <mschwendt[AT]users.sf.net> |
297 |
- rebuilt |
- rebuilt |
298 |
|
|
299 |
* Wed Mar 09 2005 Aurelien Bompard <gauret[AT]free.fr> 1.22-1 |
* Wed Mar 09 2005 Aurelien Bompard <gauret[AT]free.fr> 1.22-1 |
328 |
|
|
329 |
* Sun May 16 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.02-0.fdr.2 |
* Sun May 16 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.02-0.fdr.2 |
330 |
- Add Epoch: 0 |
- Add Epoch: 0 |
331 |
|
|