]>
Commit | Line | Data |
---|---|---|
e591aab5 | 1 | Summary: ULOGD - the Userspace Logging Daemon for iptables |
1c6019ce | 2 | Summary(pl.UTF-8): Demon logujący w trybie użytkownika dla iptables |
e591aab5 | 3 | Name: ulogd |
a7f8bd2d | 4 | Version: 2.0.1 |
1751a89a | 5 | Release: 0.1 |
23e5c694 | 6 | License: GPL v2+ |
e591aab5 | 7 | Group: Networking/Daemons |
9144cd7c | 8 | Source0: ftp://ftp.netfilter.org/pub/ulogd/%{name}-%{version}.tar.bz2 |
a7f8bd2d | 9 | # Source0-md5: 2f4b1a58955fcad4ebf22f0d00885fc9 |
264b4e4b | 10 | Source1: %{name}.init |
11 | Source2: %{name}.sysconfig | |
12 | Source3: %{name}.logrotate | |
125558c8 | 13 | Patch0: %{name}-includes.patch |
1751a89a | 14 | Patch1: %{name}-ac.patch |
ea09d17d | 15 | URL: http://netfilter.org/projects/ulogd/ |
23e5c694 JB |
16 | BuildRequires: autoconf >= 2.50 |
17 | BuildRequires: automake >= 1:1.11 | |
1751a89a | 18 | BuildRequires: libdbi-devel |
a7f8bd2d JB |
19 | BuildRequires: libmnl-devel >= 1.0.3 |
20 | BuildRequires: libnetfilter_acct-devel >= 1.0.1 | |
21 | BuildRequires: libnetfilter_conntrack-devel >= 1.0.2 | |
23e5c694 | 22 | BuildRequires: libnetfilter_log-devel >= 1.0.0 |
a7f8bd2d | 23 | BuildRequires: libnfnetlink-devel >= 1.0.1 |
c019e55d | 24 | BuildRequires: libpcap-devel |
23e5c694 | 25 | BuildRequires: libtool |
864d9b85 | 26 | BuildRequires: mysql-devel |
b53e9612 | 27 | BuildRequires: postgresql-devel |
d277fbc6 | 28 | BuildRequires: rpmbuild(macros) >= 1.268 |
23e5c694 JB |
29 | BuildRequires: sgml-tools |
30 | BuildRequires: sqlite3-devel >= 3 | |
489f1be6 | 31 | Requires(post): fileutils |
d277fbc6 | 32 | Requires(post,preun): /sbin/chkconfig |
e591aab5 | 33 | Requires: iptables |
a7f8bd2d JB |
34 | Requires: libmnl >= 1.0.3 |
35 | Requires: libnetfilter_acct >= 1.0.1 | |
36 | Requires: libnetfilter_conntrack >= 1.0.2 | |
23e5c694 | 37 | Requires: libnetfilter_log >= 1.0.0 |
a7f8bd2d | 38 | Requires: libnfnetlink >= 1.0.1 |
d277fbc6 | 39 | Requires: rc-scripts |
e591aab5 JR |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
e591aab5 | 42 | %description |
264b4e4b | 43 | This packages is intended for passing packets from the kernel to |
44 | userspace to do some logging there. It should work like that: | |
6b8250e8 | 45 | - register a target called ULOG with netfilter |
e591aab5 | 46 | - if the target is hit: |
6b8250e8 | 47 | - send the packet out using netlink multicast facility |
0a968105 | 48 | - return NF_CONTINUE immediately. |
6b8250e8 | 49 | |
f5250371 JR |
50 | %description -l pl.UTF-8 |
51 | Ten pakiet ma służyć do wysyłania pakietów z jądra do przestrzeni | |
52 | użytkownika w celu logowania. Powinien działać tak: | |
53 | - zarejestrować w netfilterze cel o nazwie ULOG | |
54 | - jeżeli cel został osiągnięty: | |
55 | - wysłać pakiet poprzez netlink | |
0a968105 | 56 | - zwrócić natychmiast NF_CONTINUE. |
e591aab5 | 57 | |
1751a89a SP |
58 | %package dbi |
59 | Summary: DBI plugin for ulogd | |
60 | Summary(pl.UTF-8): Wtyczka DBI dla ulogd | |
61 | Group: Networking/Daemons | |
23e5c694 | 62 | Requires: %{name} = %{version}-%{release} |
1751a89a SP |
63 | |
64 | %description dbi | |
65 | DBI plugin for ulogd. | |
66 | ||
67 | %description dbi -l pl.UTF-8 | |
68 | Wtyczka DBI dla ulogd. | |
69 | ||
e591aab5 | 70 | %package mysql |
6b8250e8 | 71 | Summary: MySQL plugin for ulogd |
1c6019ce | 72 | Summary(pl.UTF-8): Wtyczka MySQL dla ulogd |
e591aab5 | 73 | Group: Networking/Daemons |
e591aab5 | 74 | Obsoletes: iptables-ulogd-mysql |
23e5c694 | 75 | Requires: %{name} = %{version}-%{release} |
e591aab5 JR |
76 | |
77 | %description mysql | |
6b8250e8 JB |
78 | MySQL plugin for ulogd. |
79 | ||
f5250371 | 80 | %description mysql -l pl.UTF-8 |
6b8250e8 | 81 | Wtyczka MySQL dla ulogd. |
e591aab5 | 82 | |
1751a89a SP |
83 | %package pcap |
84 | Summary: PCAP plugin for ulogd | |
85 | Summary(pl.UTF-8): Wtyczka PCAP dla ulogd | |
86 | Group: Networking/Daemons | |
23e5c694 | 87 | Requires: %{name} = %{version}-%{release} |
1751a89a SP |
88 | |
89 | %description pcap | |
90 | PCAP plugin for ulogd. | |
91 | ||
92 | %description pcap -l pl.UTF-8 | |
93 | Wtyczka PCAP dla ulogd. | |
94 | ||
b53e9612 TP |
95 | %package pgsql |
96 | Summary: PostgreSQL plugin for ulogd | |
97 | Summary(pl.UTF-8): Wtyczka PostgreSQL dla ulogd | |
98 | Group: Networking/Daemons | |
23e5c694 | 99 | Requires: %{name} = %{version}-%{release} |
b53e9612 TP |
100 | |
101 | %description pgsql | |
102 | PostgreSQL plugin for ulogd. | |
103 | ||
104 | %description pgsql -l pl.UTF-8 | |
105 | Wtyczka PostgreSQL dla ulogd. | |
106 | ||
107 | %package sqlite | |
108 | Summary: SQLite plugin for ulogd | |
109 | Summary(pl.UTF-8): Wtyczka SQLite dla ulogd | |
110 | Group: Networking/Daemons | |
23e5c694 | 111 | Requires: %{name} = %{version}-%{release} |
b53e9612 TP |
112 | |
113 | %description sqlite | |
114 | SQLite plugin for ulogd. | |
115 | ||
116 | %description sqlite -l pl.UTF-8 | |
117 | Wtyczka SQLite dla ulogd. | |
118 | ||
e591aab5 JR |
119 | %prep |
120 | %setup -q | |
125558c8 | 121 | %patch0 -p1 |
b53e9612 | 122 | %patch1 -p0 |
e591aab5 JR |
123 | |
124 | %build | |
23e5c694 JB |
125 | %{__libtoolize} |
126 | %{__aclocal} | |
756cea0e | 127 | %{__autoconf} |
23e5c694 JB |
128 | %{__autoheader} |
129 | %{__automake} | |
264b4e4b | 130 | %configure \ |
23e5c694 | 131 | --disable-silent-rules \ |
1751a89a SP |
132 | --with-dbi \ |
133 | --with-dbi-lib=%{_libdir} \ | |
b53e9612 | 134 | --with-mysql \ |
1751a89a | 135 | --with-pgsql |
e00d9c09 | 136 | %{__make} -j1 |
e591aab5 | 137 | |
23e5c694 JB |
138 | cd doc |
139 | sgml2html -s 0 ulogd.sgml | |
140 | ||
e591aab5 JR |
141 | %install |
142 | rm -rf $RPM_BUILD_ROOT | |
2d74e793 | 143 | install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/{sysconfig,logrotate.d,rc.d/init.d,ulogd}} \ |
264b4e4b | 144 | $RPM_BUILD_ROOT/var/log |
e591aab5 | 145 | |
e00d9c09 | 146 | %{__make} install -j1 \ |
c03f2abf | 147 | DESTDIR=$RPM_BUILD_ROOT |
e591aab5 | 148 | |
264b4e4b | 149 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ulogd |
150 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ulogd | |
151 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/ulogd | |
1751a89a | 152 | install %{name}.conf $RPM_BUILD_ROOT/etc/%{name}.conf |
23e5c694 JB |
153 | |
154 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ulogd/*.la | |
e591aab5 | 155 | |
e591aab5 JR |
156 | touch $RPM_BUILD_ROOT/var/log/ulogd{,.pktlog} |
157 | ||
158 | %clean | |
159 | rm -rf $RPM_BUILD_ROOT | |
160 | ||
161 | %post | |
162 | if [ ! -f /var/log/ulogd ]; then | |
163 | touch /var/log/ulogd{,.pktlog} | |
164 | chmod 640 /var/log/ulogd{,.pktlog} | |
165 | fi | |
250be24e | 166 | |
167 | /sbin/chkconfig --add ulogd | |
d277fbc6 | 168 | %service ulogd restart "ulogd daemon" |
e591aab5 JR |
169 | |
170 | %preun | |
250be24e | 171 | if [ "$1" = "0" ]; then |
d277fbc6 | 172 | %service ulogd stop |
250be24e | 173 | /sbin/chkconfig --del ulogd |
174 | fi | |
e591aab5 JR |
175 | |
176 | %files | |
177 | %defattr(644,root,root,755) | |
23e5c694 | 178 | %doc AUTHORS README TODO doc/ulogd.html |
125558c8 JB |
179 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ulogd |
180 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ulogd.conf | |
181 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ulogd | |
7052bb1c | 182 | %attr(750,root,root) %dir %{_sysconfdir}/ulogd |
e591aab5 JR |
183 | %attr(754,root,root) /etc/rc.d/init.d/ulogd |
184 | ||
23e5c694 | 185 | %attr(755,root,root) %{_sbindir}/ulogd |
125558c8 | 186 | %dir %{_libdir}/ulogd |
1751a89a SP |
187 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_filter_HWHDR.so |
188 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_filter_IFINDEX.so | |
189 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_filter_IP2BIN.so | |
190 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_filter_IP2HBIN.so | |
191 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_filter_IP2STR.so | |
192 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_filter_MARK.so | |
193 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_filter_PRINTFLOW.so | |
194 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_filter_PRINTPKT.so | |
195 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_filter_PWSNIFF.so | |
196 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_inpflow_NFACCT.so | |
197 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_inpflow_NFCT.so | |
198 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_inppkt_NFLOG.so | |
199 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_inppkt_ULOG.so | |
200 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_inppkt_UNIXSOCK.so | |
201 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_output_GPRINT.so | |
202 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_output_LOGEMU.so | |
203 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_output_NACCT.so | |
204 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_output_OPRINT.so | |
205 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_output_SYSLOG.so | |
206 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_output_XML.so | |
207 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_raw2packet_BASE.so | |
e591aab5 | 208 | |
23e5c694 JB |
209 | %attr(640,root,root) %ghost /var/log/ulogd |
210 | %attr(640,root,root) %ghost /var/log/ulogd.pktlog | |
211 | %{_mandir}/man8/ulogd.8* | |
1751a89a SP |
212 | |
213 | %files dbi | |
214 | %defattr(644,root,root,755) | |
215 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_output_DBI.so | |
e591aab5 JR |
216 | |
217 | %files mysql | |
264b4e4b | 218 | %defattr(644,root,root,755) |
23e5c694 | 219 | %doc doc/mysql*.sql |
1751a89a SP |
220 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_output_MYSQL.so |
221 | ||
222 | %files pcap | |
223 | %defattr(644,root,root,755) | |
224 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_output_PCAP.so | |
b53e9612 TP |
225 | |
226 | %files pgsql | |
227 | %defattr(644,root,root,755) | |
23e5c694 | 228 | %doc doc/pgsql*.sql |
1751a89a | 229 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_output_PGSQL.so |
b53e9612 TP |
230 | |
231 | %files sqlite | |
232 | %defattr(644,root,root,755) | |
23e5c694 | 233 | %doc doc/sqlite3.table |
1751a89a | 234 | %attr(755,root,root) %{_libdir}/ulogd/ulogd_output_SQLITE3.so |