[12383] | 1 | %bcond_with systemd |
---|
[12121] | 2 | %bcond_with doc |
---|
| 3 | |
---|
[8624] | 4 | Summary: Userspace logging daemon for netfilter |
---|
| 5 | Name: ulogd |
---|
[12121] | 6 | Version: 2.0.7 |
---|
[12383] | 7 | Release: 2%{?_dist_release}%{?with_systemd:.systemd} |
---|
| 8 | Group: System Environment/Daemons |
---|
| 9 | Vendor: Project Vine |
---|
| 10 | Distribution: Vine Linux |
---|
| 11 | |
---|
[8624] | 12 | License: GPLv2+ |
---|
[12383] | 13 | URL: https://netfilter.org/projects/ulogd/ |
---|
| 14 | Source0: https://netfilter.org/projects/ulogd/files/%{name}-%{version}.tar.bz2 |
---|
[8624] | 15 | Source1: %{name}.init |
---|
[12121] | 16 | Source2: %{name}.logrotate |
---|
[12383] | 17 | Source3: %{name}.service |
---|
[8624] | 18 | |
---|
| 19 | BuildRequires: libnetfilter_conntrack-devel >= 0.0.95 |
---|
| 20 | BuildRequires: libnetfilter_log-devel >= 1.0.0 |
---|
| 21 | BuildRequires: libnfnetlink-devel >= 0.0.39 |
---|
| 22 | BuildRequires: libnetfilter_acct-devel >= 1.0.1 |
---|
| 23 | BuildRequires: libmnl-devel |
---|
[12121] | 24 | %if %{with doc} |
---|
[8624] | 25 | BuildRequires: linuxdoc-tools |
---|
| 26 | BuildRequires: texlive-collection-fontsrecommended |
---|
[12121] | 27 | %endif |
---|
[8624] | 28 | |
---|
[12383] | 29 | %if %{with systemd} |
---|
| 30 | %{?systemd_requires} |
---|
| 31 | %else |
---|
[8624] | 32 | Requires(post): /sbin/service |
---|
| 33 | Requires(post): /sbin/chkconfig |
---|
| 34 | Requires(preun): /sbin/chkconfig |
---|
| 35 | Requires(preun): /sbin/service |
---|
| 36 | Requires(postun): /sbin/service |
---|
[12383] | 37 | %endif |
---|
[8624] | 38 | |
---|
| 39 | %description |
---|
| 40 | %{name} is a logging daemon that reads event messages coming from the Netfilter |
---|
| 41 | connection tracking and the Netfilter packet logging subsystem. You have to |
---|
| 42 | enable support for connection tracking event delivery; ctnetlink and the NFLOG |
---|
| 43 | target in your Linux kernel 2.6.x or load their respective modules. The |
---|
| 44 | deprecated ULOG target (which has been superseded by NFLOG) is also supported. |
---|
| 45 | |
---|
| 46 | %package libdbi |
---|
| 47 | Summary: Libdbi framework output plugin for %{name} |
---|
| 48 | Group: System Environment/Daemons |
---|
| 49 | BuildRequires: libdbi-devel |
---|
| 50 | Requires: %{name} = %{version} |
---|
| 51 | %description libdbi |
---|
| 52 | %{name}-libdbi is a libdbi output plugin for %{name}. It enables logging of |
---|
| 53 | firewall information through a libdbi interface. |
---|
| 54 | |
---|
| 55 | %package mysql |
---|
| 56 | Summary: MySQL output plugin for %{name} |
---|
| 57 | Group: System Environment/Daemons |
---|
[12121] | 58 | BuildRequires: libmariadb-devel |
---|
[8624] | 59 | Requires: %{name} = %{version} |
---|
| 60 | %description mysql |
---|
| 61 | %{name}-mysql is a MySQL output plugin for %{name}. It enables logging of |
---|
| 62 | firewall information into a MySQL database. |
---|
| 63 | |
---|
| 64 | %package pgsql |
---|
| 65 | Summary: PostgreSQL output plugin for %{name} |
---|
| 66 | Group: System Environment/Daemons |
---|
| 67 | BuildRequires: libpq-devel |
---|
| 68 | Requires: %{name} = %{version} |
---|
| 69 | %description pgsql |
---|
| 70 | %{name}-pgsql is a PostgreSQL output plugin for %{name}. It enables logging of |
---|
| 71 | firewall information into a PostgreSQL database. |
---|
| 72 | |
---|
| 73 | %package pcap |
---|
| 74 | Summary: PCAP output plugin for %{name} |
---|
| 75 | Group: System Environment/Daemons |
---|
| 76 | BuildRequires: libpcap-devel |
---|
| 77 | Requires: %{name} = %{version} |
---|
| 78 | %description pcap |
---|
| 79 | %{name}-pcap is a output plugin for %{name} that saves packet logs as PCAP |
---|
| 80 | file. PCAP is a standard format that can be later analyzed by a lot of tools |
---|
| 81 | such as tcpdump and wireshark. |
---|
| 82 | |
---|
| 83 | %package sqlite |
---|
| 84 | Summary: SQLITE output plugin for %{name} |
---|
| 85 | Group: System Environment/Daemons |
---|
| 86 | BuildRequires: sqlite3-devel |
---|
| 87 | Requires: %{name} = %{version} |
---|
| 88 | %description sqlite |
---|
| 89 | %{name}-sqlite is a SQLITE output plugin for %{name}. It enables logging of |
---|
| 90 | firewall information into an SQLITE database. |
---|
| 91 | |
---|
| 92 | %prep |
---|
| 93 | %setup -q |
---|
| 94 | |
---|
| 95 | %{__sed} -i -e 's|/var/log/|%{_localstatedir}/log/%{name}/|g' %{name}.conf.in |
---|
| 96 | |
---|
| 97 | %build |
---|
| 98 | %configure \ |
---|
| 99 | --disable-static \ |
---|
| 100 | --enable-shared \ |
---|
| 101 | --with-dbi-lib=%{_libdir} \ |
---|
| 102 | --with-pcap-lib=%{_libdir} \ |
---|
| 103 | --with-sqlite3-lib=%{_libdir} |
---|
| 104 | |
---|
| 105 | %{__make} %{?_smp_mflags} |
---|
[12121] | 106 | %if %{with doc} |
---|
[8624] | 107 | %{__make} %{?_smp_mflags} -C doc |
---|
[12121] | 108 | %endif |
---|
[8624] | 109 | |
---|
| 110 | %install |
---|
| 111 | %{__rm} -rf %{buildroot} |
---|
| 112 | %{__make} DESTDIR=%{buildroot} install |
---|
| 113 | |
---|
| 114 | %{__mkdir_p} -m 0755 %{buildroot}%{_localstatedir}/log/%{name}/ |
---|
| 115 | |
---|
| 116 | %{__mkdir_p} -m 0755 %{buildroot}%{_sysconfdir}/ |
---|
| 117 | %{__install} -m 0644 %{name}.conf %{buildroot}%{_sysconfdir}/ |
---|
| 118 | |
---|
| 119 | %{__mkdir_p} -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d/ |
---|
[12121] | 120 | %{__install} -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} |
---|
[8624] | 121 | |
---|
[12383] | 122 | %if %{with systemd} |
---|
| 123 | %{__mkdir_p} -m 0755 %{buildroot}%{_unitdir}/ |
---|
| 124 | %{__install} -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service |
---|
| 125 | %else |
---|
[8624] | 126 | %{__mkdir_p} -m 0755 %{buildroot}%{_initrddir}/ |
---|
| 127 | %{__install} -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name} |
---|
[12383] | 128 | %endif |
---|
[8624] | 129 | |
---|
[12383] | 130 | |
---|
[8624] | 131 | %post |
---|
[12383] | 132 | %if %{with systemd} |
---|
| 133 | %systemd_post %{name}.service |
---|
| 134 | %else |
---|
[8624] | 135 | /sbin/chkconfig --add %{name} |
---|
| 136 | /sbin/service %{name} condrestart >/dev/null 2>&1 || : |
---|
[12383] | 137 | %endif |
---|
[8624] | 138 | |
---|
| 139 | %preun |
---|
[12383] | 140 | %if %{with systemd} |
---|
| 141 | %systemd_preun %{name}.service |
---|
| 142 | %else |
---|
[8624] | 143 | # if we are uninstalling... |
---|
[12383] | 144 | if [ "$1" = 0 -o -x /bin/systemctl ]; then |
---|
[8624] | 145 | /sbin/service %{name} stop > /dev/null 2>&1 ||: |
---|
| 146 | /sbin/chkconfig --del %{name} |
---|
| 147 | fi |
---|
[12383] | 148 | %endif |
---|
[8624] | 149 | |
---|
| 150 | %postun |
---|
[12383] | 151 | %if %{with systemd} |
---|
| 152 | %systemd_postun_with_restart %{name}.service |
---|
| 153 | %else |
---|
[8624] | 154 | # if we are upgrading... |
---|
| 155 | if [ "$1" -ge "1" ]; then |
---|
| 156 | /sbin/service %{name} condrestart >/dev/null 2>&1 || : |
---|
| 157 | fi |
---|
[12383] | 158 | %endif |
---|
[8624] | 159 | |
---|
[12383] | 160 | |
---|
[8624] | 161 | %check |
---|
| 162 | %{__make} %{?_smp_mflags} check |
---|
| 163 | |
---|
[12383] | 164 | |
---|
[8624] | 165 | %clean |
---|
| 166 | %{__rm} -rf %{buildroot} |
---|
| 167 | |
---|
[12383] | 168 | |
---|
[8624] | 169 | %files |
---|
| 170 | %defattr(0755,root,root,0755) |
---|
| 171 | %{_sbindir}/%{name} |
---|
[12383] | 172 | %if %{with systemd} |
---|
| 173 | %{_unitdir}/%{name}.service |
---|
| 174 | %else |
---|
[8624] | 175 | %{_initrddir}/%{name} |
---|
[12383] | 176 | %endif |
---|
[8624] | 177 | %{_libdir}/%{name} |
---|
| 178 | %defattr(0644,root,root,0755) |
---|
[12121] | 179 | %license COPYING |
---|
[8624] | 180 | %doc AUTHORS README |
---|
[12121] | 181 | %if %{with doc} |
---|
[8624] | 182 | %doc doc/%{name}.txt doc/%{name}.ps doc/%{name}.html |
---|
[12121] | 183 | %endif |
---|
[8624] | 184 | %doc %{_mandir}/man?/* |
---|
| 185 | %config(noreplace) %{_sysconfdir}/%{name}.conf |
---|
| 186 | %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} |
---|
| 187 | %dir %{_localstatedir}/log/%{name} |
---|
| 188 | %exclude %{_libdir}/%{name}/*.la |
---|
| 189 | %exclude %{_libdir}/%{name}/%{name}_output_DBI.so |
---|
| 190 | %exclude %{_libdir}/%{name}/%{name}_output_MYSQL.so |
---|
| 191 | %exclude %{_libdir}/%{name}/%{name}_output_PGSQL.so |
---|
| 192 | %exclude %{_libdir}/%{name}/%{name}_output_PCAP.so |
---|
| 193 | %exclude %{_libdir}/%{name}/%{name}_output_SQLITE3.so |
---|
| 194 | |
---|
| 195 | %files libdbi |
---|
| 196 | %defattr(0755,root,root,0755) |
---|
| 197 | %{_libdir}/%{name}/%{name}_output_DBI.so |
---|
| 198 | %defattr(0644,root,root,0755) |
---|
[12121] | 199 | %license COPYING |
---|
[8624] | 200 | |
---|
| 201 | %files mysql |
---|
| 202 | %defattr(0755,root,root,0755) |
---|
| 203 | %{_libdir}/%{name}/%{name}_output_MYSQL.so |
---|
| 204 | %defattr(0644,root,root,0755) |
---|
[12121] | 205 | %license COPYING |
---|
[8624] | 206 | |
---|
| 207 | %files pgsql |
---|
| 208 | %defattr(0755,root,root,0755) |
---|
| 209 | %{_libdir}/%{name}/%{name}_output_PGSQL.so |
---|
| 210 | %defattr(0644,root,root,0755) |
---|
[12121] | 211 | %license COPYING |
---|
[8624] | 212 | |
---|
| 213 | %files pcap |
---|
| 214 | %defattr(0755,root,root,0755) |
---|
| 215 | %{_libdir}/%{name}/%{name}_output_PCAP.so |
---|
| 216 | %defattr(0644,root,root,0755) |
---|
[12121] | 217 | %license COPYING |
---|
[8624] | 218 | |
---|
| 219 | %files sqlite |
---|
| 220 | %defattr(0755,root,root,0755) |
---|
| 221 | %{_libdir}/%{name}/%{name}_output_SQLITE3.so |
---|
| 222 | %defattr(0644,root,root,0755) |
---|
[12121] | 223 | %license COPYING |
---|
[8624] | 224 | |
---|
| 225 | %changelog |
---|
[12383] | 226 | * Sat Apr 18 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.7-2 |
---|
| 227 | - added systemd support (disabled as default). |
---|
| 228 | |
---|
[12121] | 229 | * Sun Aug 25 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.7-1 |
---|
| 230 | - new upstream release. |
---|
| 231 | - added Source2: dropped in upstream. |
---|
| 232 | - disabled to build documents: raised tooooo many errors. |
---|
| 233 | |
---|
[11545] | 234 | * Sun Feb 25 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.5-1 |
---|
| 235 | - new upstream release. |
---|
| 236 | |
---|
[9291] | 237 | * Sun Jan 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.4-3 |
---|
| 238 | - rebuild with libdbi-0.9.0 |
---|
| 239 | |
---|
[8860] | 240 | * Mon Jul 14 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.4-2 |
---|
| 241 | - fixed configuration for logrotate. |
---|
| 242 | |
---|
[8624] | 243 | * Sun Jun 29 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.4-1 |
---|
| 244 | - new upstream release. |
---|
| 245 | - initial build for Vine Linux. |
---|
| 246 | |
---|
| 247 | * Tue Sep 24 2013 Martin Preisler <mpreisle@redhat.com> 2.0.2-2 |
---|
| 248 | - added accidentaly removed dist suffix in release |
---|
| 249 | - fixed up bogus dates in changelog |
---|
| 250 | |
---|
| 251 | * Mon Sep 09 2013 Martin Preisler <mpreisle@redhat.com> 2.0.2-1 |
---|
| 252 | - update version |
---|
| 253 | |
---|
| 254 | * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-5.beta4 |
---|
| 255 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
---|
| 256 | |
---|
| 257 | * Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-4.beta4 |
---|
| 258 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild |
---|
| 259 | |
---|
| 260 | * Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-3.beta4 |
---|
| 261 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
---|
| 262 | |
---|
| 263 | * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-2.beta4 |
---|
| 264 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
| 265 | |
---|
| 266 | * Wed Nov 23 2011 Stephen Beahm <stephenbeahm@comcast.net> - 2.0.0-1.beta4 |
---|
| 267 | - update version. |
---|
| 268 | - spec review. |
---|
| 269 | - (rebased on top of the remaining 1.24 changes, original date was Nov 16 2010) |
---|
| 270 | |
---|
| 271 | * Wed Mar 23 2011 Dan Horák <dan@danny.cz> - 1.24-15 |
---|
| 272 | - rebuilt for mysql 5.5.10 (soname bump in libmysqlclient) |
---|
| 273 | |
---|
| 274 | * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.24-14 |
---|
| 275 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 276 | |
---|
| 277 | * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.24-13 |
---|
| 278 | - rebuilt with new openssl |
---|
| 279 | |
---|
| 280 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.24-12 |
---|
| 281 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 282 | |
---|
| 283 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.24-11 |
---|
| 284 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 285 | |
---|
| 286 | * Sat Jan 24 2009 Aurelien Bompard <abompard@fedoraproject.org> 1.24-10 |
---|
| 287 | - rebuild for mysql |
---|
| 288 | |
---|
| 289 | * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.24-9 |
---|
| 290 | - Autorebuild for GCC 4.3 |
---|
| 291 | |
---|
| 292 | * Wed Jan 9 2008 Leopold Aichinger <linuxtrainer@gmx.at> 1.24-8 |
---|
| 293 | - Support for libpcap added |
---|
| 294 | |
---|
| 295 | * Thu Dec 06 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.24-7 |
---|
| 296 | - Rebuild for deps |
---|
| 297 | |
---|
| 298 | * Tue Aug 14 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.24-5 |
---|
| 299 | - Fix the deprecated way of getting the DSO initializers run, causing |
---|
| 300 | builds to fails with rpm-build > 4.4.2.1-3 (new find-debuginfo.sh script) |
---|
| 301 | |
---|
| 302 | * Sat Jul 14 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.24-4 |
---|
| 303 | - add patch to fix bug 247345 |
---|
| 304 | - update URL |
---|
| 305 | - fix initscript (bug 247083) |
---|
| 306 | - unmark init script as %%config (Fedora policy) |
---|
| 307 | |
---|
| 308 | * Sat Dec 09 2006 Aurelien Bompard <abompard@fedoraproject.org> 1.24-3 |
---|
| 309 | - rebuild |
---|
| 310 | |
---|
| 311 | * Thu Aug 31 2006 Aurelien Bompard <abompard@fedoraproject.org> 1.24-2 |
---|
| 312 | - rebuild |
---|
| 313 | |
---|
| 314 | * Wed Feb 22 2006 Aurelien Bompard <gauret[AT]free.fr> 1.24-1 |
---|
| 315 | - version 1.24 |
---|
| 316 | - drop patch3 (applied upstream) |
---|
| 317 | - drop patch4 (upstream uses mysql-config to detect libdir now) |
---|
| 318 | - drop patch5 (applied upstream) |
---|
| 319 | |
---|
| 320 | * Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 1.23-3 |
---|
| 321 | - rebuild for FC5 |
---|
| 322 | |
---|
| 323 | * Sun Jul 24 2005 Aurelien Bompard <gauret[AT]free.fr> 1.23-2 |
---|
| 324 | - compress rotated logs |
---|
| 325 | - start after mysql in the init process |
---|
| 326 | - use dist tag |
---|
| 327 | |
---|
| 328 | * Tue Apr 19 2005 Aurelien Bompard <gauret[AT]free.fr> 1.23-1.fc4 |
---|
| 329 | - version 1.23 |
---|
| 330 | - change release tag for FC4 |
---|
| 331 | - add patch for GCC4 (upstream bug #323) |
---|
| 332 | |
---|
| 333 | * Thu Apr 07 2005 Michael Schwendt <mschwendt[AT]users.sf.net> |
---|
| 334 | - rebuilt |
---|
| 335 | |
---|
| 336 | * Wed Mar 09 2005 Aurelien Bompard <gauret[AT]free.fr> 1.22-1 |
---|
| 337 | - version 1.22 |
---|
| 338 | - add gpg signature to sources |
---|
| 339 | |
---|
| 340 | * Sun Feb 20 2005 Aurelien Bompard <gauret[AT]free.fr> 1.21-1 |
---|
| 341 | - version 1.21 |
---|
| 342 | |
---|
| 343 | * Fri Dec 17 2004 Michael Schwendt <mschwendt[AT]users.sf.net> 1.02-8 |
---|
| 344 | - revise x86_64 patch to remove more hardcoded /lib badness |
---|
| 345 | |
---|
| 346 | * Fri Dec 17 2004 Michael Schwendt <mschwendt[AT]users.sf.net> 1.02-7 |
---|
| 347 | - x86_64, patch configure to look for mysql/pgsql below %%_libdir. |
---|
| 348 | - delete undefined %%epoch in mysql/pgsql sub package dep. |
---|
| 349 | |
---|
| 350 | * Sun Oct 31 2004 Aurelien Bompard <gauret[AT]free.fr> 1.02-6 |
---|
| 351 | - apply Michael Schwendt's suggestions in bug 1598 |
---|
| 352 | |
---|
| 353 | * Wed Oct 20 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.02-0.fdr.5 |
---|
| 354 | - enable MySQL and PostgreSQL in subpackages |
---|
| 355 | - add man page from Debian |
---|
| 356 | |
---|
| 357 | * Wed Oct 06 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.02-0.fdr.4 |
---|
| 358 | - apply QA suggestions (bug 1598) |
---|
| 359 | |
---|
| 360 | * Sat Jul 10 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.02-0.fdr.3 |
---|
| 361 | - disable parallel builds |
---|
| 362 | - add chkconfig to Requires(pre,post) |
---|
| 363 | - set the right mode for /etc/logrotate.d/ulogd |
---|
| 364 | - rotate weekly |
---|
| 365 | |
---|
| 366 | * Sun May 16 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.02-0.fdr.2 |
---|
| 367 | - Add Epoch: 0 |
---|