/[smeserver]/rpms/ulogd/sme10/ulogd.spec
ViewVC logotype

Contents of /rpms/ulogd/sme10/ulogd.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Thu Mar 4 19:46:47 2021 UTC (3 years, 8 months ago) by jpp
Branch: MAIN
CVS Tags: ulogd-2_0_7-1_el7_sme, HEAD
Changes since 1.2: +198 -104 lines
* Wed Mar 03 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.7-2.sme
- bump version to 2.0.7 [SME: 11248]
- remove init script, let integrator choose between systemd and init.

1 Summary: Userspace logging daemon for netfilter
2 Name: ulogd
3 Version: 2.0.7
4 Release: 1%{?dist}
5 License: GPLv2+
6 Group: System Environment/Daemons
7 URL: http://www.netfilter.org/projects/%{name}/
8 Source0: http://ftp.netfilter.org/pub/%{name}/%{name}-%{version}.tar.bz2
9 Source1: %{name}.init
10 Source2: %{name}.logrotate
11 Source3: %{name}2.service
12
13 BuildRequires: libnetfilter_conntrack-devel >= 0.0.95
14 BuildRequires: libnetfilter_log-devel >= 1.0.0
15 BuildRequires: libnfnetlink-devel >= 0.0.39
16 BuildRequires: libnetfilter_acct-devel >= 1.0.1
17 BuildRequires: sgml-tools
18 BuildRequires: libmnl-devel
19
20 Requires(post): /sbin/service
21 Requires(post): /sbin/chkconfig
22 Requires(preun): /sbin/chkconfig
23 Requires(preun): /sbin/service
24 Requires(postun): /sbin/service
25
26 %description
27 %{name} is a logging daemon that reads event messages coming from the Netfilter
28 connection tracking and the Netfilter packet logging subsystem. You have to
29 enable support for connection tracking event delivery; ctnetlink and the NFLOG
30 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
43 Summary: MySQL output plugin for %{name}
44 Group: System Environment/Daemons
45 BuildRequires: mysql-devel
46 #BuildRequires: openssl-devel
47 Requires: %{name} = %{version}
48 %description mysql
49 %{name}-mysql is a MySQL output plugin for %{name}. It enables logging of
50 firewall information into a MySQL database.
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
58 %{name}-pgsql is a PostgreSQL output plugin for %{name}. It enables logging of
59 firewall information into a PostgreSQL database.
60
61 %package pcap
62 Summary: PCAP output plugin for %{name}
63 Group: System Environment/Daemons
64 BuildRequires: libpcap-devel
65 Requires: %{name} = %{version}
66 %description pcap
67 %{name}-pcap is a output plugin for %{name} that saves packet logs as PCAP
68 file. PCAP is a standard format that can be later analyzed by a lot of tools
69 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
81 %setup -q
82
83 %{__sed} -i -e 's|/var/log/|%{_localstatedir}/log/%{name}/|g' %{name}.conf.in
84
85 %build
86 %configure \
87 --disable-static \
88 --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
97 %{__rm} -rf %{buildroot}
98 %{__make} DESTDIR=%{buildroot} install
99
100 %{__mkdir_p} -m 0755 %{buildroot}%{_localstatedir}/log/%{name}/
101
102 %{__mkdir_p} -m 0755 %{buildroot}%{_sysconfdir}/
103 %{__install} -m 0644 %{name}.conf %{buildroot}%{_sysconfdir}/
104
105 %{__mkdir_p} -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d/
106 %{__install} -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
107
108
109 %post
110 /sbin/chkconfig --add %{name}
111 /sbin/service %{name} condrestart >/dev/null 2>&1 || :
112
113 %preun
114 # if we are uninstalling...
115 if [ "$1" = 0 ]; then
116 /sbin/service %{name} stop > /dev/null 2>&1 ||:
117 /sbin/chkconfig --del %{name}
118 fi
119
120 %postun
121 # if we are upgrading...
122 if [ "$1" -ge "1" ]; then
123 /sbin/service %{name} condrestart >/dev/null 2>&1 || :
124 fi
125
126 %check
127 %{__make} %{?_smp_mflags} check
128
129 %clean
130 %{__rm} -rf %{buildroot}
131
132 %files
133 %defattr(0755,root,root,0755)
134 %{_sbindir}/%{name}
135 %{_libdir}/%{name}
136 %defattr(0644,root,root,0755)
137 %doc COPYING
138 %doc AUTHORS README
139 %doc doc/%{name}.txt doc/%{name}.ps doc/%{name}.html
140 %doc %{_mandir}/man?/*
141 %config(noreplace) %{_sysconfdir}/%{name}.conf
142 %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
143 %dir %{_localstatedir}/log/%{name}
144 %exclude %{_libdir}/%{name}/*.la
145 %exclude %{_libdir}/%{name}/%{name}_output_DBI.so
146 %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
158 %defattr(0755,root,root,0755)
159 %{_libdir}/%{name}/%{name}_output_MYSQL.so
160 %defattr(0644,root,root,0755)
161 %doc COPYING
162
163 %files pgsql
164 %defattr(0755,root,root,0755)
165 %{_libdir}/%{name}/%{name}_output_PGSQL.so
166 %defattr(0644,root,root,0755)
167 %doc COPYING
168
169 %files pcap
170 %defattr(0755,root,root,0755)
171 %{_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
182 * Wed Mar 03 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.7-2.sme
183 - 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
241 - rebuilt with new openssl
242
243 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.24-12
244 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
245
246 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.24-11
247 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
248
249 * Sat Jan 24 2009 Aurelien Bompard <abompard@fedoraproject.org> 1.24-10
250 - rebuild for mysql
251
252 * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.24-9
253 - Autorebuild for GCC 4.3
254
255 * Wed Jan 9 2008 Leopold Aichinger <linuxtrainer@gmx.at> 1.24-8
256 - Support for libpcap added
257
258 * Thu Dec 06 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.24-7
259 - Rebuild for deps
260
261 * Tue Aug 14 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.24-5
262 - Fix the deprecated way of getting the DSO initializers run, causing
263 builds to fails with rpm-build > 4.4.2.1-3 (new find-debuginfo.sh script)
264
265 * Sat Jul 14 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.24-4
266 - add patch to fix bug 247345
267 - update URL
268 - fix initscript (bug 247083)
269 - unmark init script as %%config (Fedora policy)
270
271 * Sat Dec 09 2006 Aurelien Bompard <abompard@fedoraproject.org> 1.24-3
272 - rebuild
273
274 * Thu Aug 31 2006 Aurelien Bompard <abompard@fedoraproject.org> 1.24-2
275 - rebuild
276
277 * Wed Feb 22 2006 Aurelien Bompard <gauret[AT]free.fr> 1.24-1
278 - version 1.24
279 - drop patch3 (applied upstream)
280 - drop patch4 (upstream uses mysql-config to detect libdir now)
281 - drop patch5 (applied upstream)
282
283 * Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 1.23-3
284 - rebuild for FC5
285
286 * Sun Jul 24 2005 Aurelien Bompard <gauret[AT]free.fr> 1.23-2
287 - compress rotated logs
288 - start after mysql in the init process
289 - use dist tag
290
291 * Tue Apr 19 2005 Aurelien Bompard <gauret[AT]free.fr> 1.23-1.fc4
292 - version 1.23
293 - change release tag for FC4
294 - add patch for GCC4 (upstream bug #323)
295
296 * Thu Apr 07 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
297 - rebuilt
298
299 * Wed Mar 09 2005 Aurelien Bompard <gauret[AT]free.fr> 1.22-1
300 - version 1.22
301 - add gpg signature to sources
302
303 * Sun Feb 20 2005 Aurelien Bompard <gauret[AT]free.fr> 1.21-1
304 - version 1.21
305
306 * Fri Dec 17 2004 Michael Schwendt <mschwendt[AT]users.sf.net> 1.02-8
307 - revise x86_64 patch to remove more hardcoded /lib badness
308
309 * Fri Dec 17 2004 Michael Schwendt <mschwendt[AT]users.sf.net> 1.02-7
310 - x86_64, patch configure to look for mysql/pgsql below %%_libdir.
311 - delete undefined %%epoch in mysql/pgsql sub package dep.
312
313 * Sun Oct 31 2004 Aurelien Bompard <gauret[AT]free.fr> 1.02-6
314 - apply Michael Schwendt's suggestions in bug 1598
315
316 * Wed Oct 20 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.02-0.fdr.5
317 - enable MySQL and PostgreSQL in subpackages
318 - add man page from Debian
319
320 * Wed Oct 06 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.02-0.fdr.4
321 - apply QA suggestions (bug 1598)
322
323 * Sat Jul 10 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.02-0.fdr.3
324 - disable parallel builds
325 - add chkconfig to Requires(pre,post)
326 - set the right mode for /etc/logrotate.d/ulogd
327 - rotate weekly
328
329 * Sun May 16 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.02-0.fdr.2
330 - Add Epoch: 0
331

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed