]>
Commit | Line | Data |
---|---|---|
5aa38709 | 1 | # |
cec64641 | 2 | # TODO: |
cc1675a4 JB |
3 | # - relies on libs in /usr which is wrong |
4 | # (well, for modules bringing additional functionality it's acceptable IMO --q) | |
cec64641 | 5 | # |
8eca2e89 | 6 | # Conditional build: |
cc1675a4 | 7 | %bcond_with dynamic # link dynamically with glib, eventlog, pcre (modules are always linked dynamically) |
306cd2c9 | 8 | %if "%{pld_release}" == "ac" |
544d8db5 | 9 | %bcond_with sql # build with support for logging to SQL DB |
306cd2c9 | 10 | %else |
808ca97e | 11 | %bcond_without sql # build without support for logging to SQL DB |
306cd2c9 | 12 | %endif |
f3688193 | 13 | %bcond_without tests |
18bd7ab6 JK |
14 | %bcond_without json # build without support for JSON template formatting |
15 | %bcond_without mongodb # build without support for mongodb destination | |
5461d50b | 16 | |
306cd2c9 | 17 | %if "%{pld_release}" == "ac" |
4c650c71 | 18 | %define glib2_ver 1:2.16.0 |
306cd2c9 | 19 | %else |
4c650c71 | 20 | %define glib2_ver 1:2.24.0 |
306cd2c9 | 21 | %endif |
80a87a81 | 22 | Summary: Syslog-ng - new generation of the system logger |
cc1675a4 | 23 | Summary(pl.UTF-8): Syslog-ng - systemowy demon logujący nowej generacji |
f7affeae | 24 | Summary(pt_BR.UTF-8): Daemon de log nova geração |
db55bc6c | 25 | Name: syslog-ng |
cc4f69c0 | 26 | Version: 3.3.9 |
4b94cfad | 27 | Release: 1 |
4c650c71 | 28 | License: GPL v2+ with OpenSSL exception |
db55bc6c | 29 | Group: Daemons |
5fe1f11f | 30 | Source0: http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/%{version}/source/%{name}_%{version}.tar.gz |
cc4f69c0 | 31 | # Source0-md5: 52ae8f46f16d42fac7232226adb40b7d |
70c1937a | 32 | Source1: %{name}.init |
33 | Source2: %{name}.conf | |
e0f9b227 | 34 | Source3: %{name}.logrotate |
10bd4849 AM |
35 | Source4: http://www.balabit.com/support/documentation/syslog-ng-ose-3.3-guides/en/syslog-ng-ose-v3.3-guide-admin-en/pdf/syslog-ng-ose-v3.3-guide-admin-en.pdf |
36 | # Source4-md5: 56815d4e7bfda361cb614f3330f4589f | |
0872fe7c | 37 | Source5: %{name}-simple.conf |
c3d7f31f | 38 | Source6: %{name}.upstart |
35907845 | 39 | Patch0: %{name}-datadir.patch |
5fe1f11f | 40 | Patch1: cap_syslog-vserver-workaround.patch |
38883b2f | 41 | Patch2: %{name}-nolibs.patch |
17524264 | 42 | Patch3: %{name}-systemd.patch |
42a0f185 | 43 | Patch4: %{name}-am.patch |
34c905de | 44 | URL: http://www.balabit.com/products/syslog_ng/ |
96ef1ac7 | 45 | BuildRequires: autoconf >= 2.53 |
53500332 | 46 | BuildRequires: automake |
4a7ca8b7 | 47 | BuildRequires: bison >= 2.4 |
cc1675a4 | 48 | BuildRequires: eventlog-devel >= 0.2.12 |
b7fea326 | 49 | %{?with_tests:BuildRequires: findutils} |
ac9ca8e0 | 50 | BuildRequires: flex |
4c650c71 | 51 | BuildRequires: glib2-devel >= %{glib2_ver} |
18bd7ab6 | 52 | %{?with_json:BuildRequires: json-c-devel >= 0.7} |
cc1675a4 JB |
53 | BuildRequires: libcap-devel |
54 | %{?with_sql:BuildRequires: libdbi-devel >= 0.8.3-2} | |
4c3de3cf | 55 | BuildRequires: libivykis-devel >= 0.30.1 |
18bd7ab6 | 56 | %{?with_mongodb:BuildRequires: libmongo-client-devel >= 0.1.0} |
cc1675a4 | 57 | BuildRequires: libnet-devel >= 1:1.1.2.1-3 |
4a7ca8b7 | 58 | BuildRequires: libtool >= 2:2.0 |
cc1675a4 JB |
59 | BuildRequires: libwrap-devel |
60 | BuildRequires: openssl-devel >= 0.9.8 | |
61 | BuildRequires: pcre-devel >= 6.1 | |
bf8c4b27 | 62 | BuildRequires: pkgconfig |
306cd2c9 | 63 | BuildRequires: rpm >= 4.4.9-56 |
6d708cb5 | 64 | BuildRequires: rpmbuild(macros) >= 1.623 |
24642adc | 65 | BuildRequires: which |
bc708ef6 | 66 | %if %{with tests} |
306cd2c9 | 67 | %{?with_sql:BuildRequires: libdbi-drivers-sqlite3} |
24642adc | 68 | BuildRequires: python |
69 | BuildRequires: python-modules | |
bc708ef6 AF |
70 | BuildRequires: tzdata |
71 | %endif | |
cc1675a4 | 72 | %if %{without dynamic} |
d132f512 | 73 | BuildRequires: eventlog-static >= 0.2.12 |
4c650c71 | 74 | BuildRequires: glib2-static >= %{glib2_ver} |
b7fea326 | 75 | BuildRequires: libivykis-static >= 0.30.1 |
585ae33b | 76 | BuildRequires: pcre-static >= 6.1 |
808ca97e | 77 | BuildRequires: zlib-static |
8eca2e89 | 78 | %endif |
768882cc | 79 | Requires(post): fileutils |
cc4597b5 | 80 | Requires(post,preun): /sbin/chkconfig |
b3030031 | 81 | Requires(post,preun,postun): systemd-units >= 38 |
cc1675a4 JB |
82 | Requires: %{name}-libs = %{version}-%{release} |
83 | Requires: eventlog >= 0.2.12 | |
4c650c71 | 84 | Requires: glib2 >= %{glib2_ver} |
cc1675a4 | 85 | Requires: pcre >= 6.1 |
0471c4e3 | 86 | Requires: psmisc >= 20.1 |
622aa91c | 87 | Requires: rc-scripts >= 0.4.3.0 |
b3030031 | 88 | Requires: systemd-units >= 38 |
ceea8d15 JB |
89 | # for afsocket |
90 | Requires: libnet >= 1:1.1.2.1-7 | |
91 | # for afsocket and dbparser | |
92 | Requires: openssl >= 0.9.8 | |
34031399 JR |
93 | Provides: service(klogd) |
94 | Provides: service(syslog) | |
18a2d4ea | 95 | Provides: syslogdaemon |
ceea8d15 JB |
96 | Obsoletes: syslog-ng-module-afsocket |
97 | Obsoletes: syslog-ng-module-dbparser | |
c0bb099a | 98 | Obsoletes: syslog-ng-systemd |
5db3c127 | 99 | Conflicts: klogd |
1a409b7d | 100 | Conflicts: msyslog |
240bc451 | 101 | Conflicts: rsyslog |
0baee825 | 102 | Conflicts: syslog |
8a78073d | 103 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
db55bc6c | 104 | |
35907845 AM |
105 | # syslog-ng has really crazy linking rules (see their bugzilla). |
106 | # Some rules, according to syslog-ng devs, are like this: | |
107 | # - libsyslog-ng.so has undefined symbols for third party libraries | |
108 | # and these symbols should go via main syslog-ng binary | |
109 | # - same applies for modules | |
cc1675a4 JB |
110 | # In dynamic case tests are forcily linked with dynamic modules, which doesn't work with as-needed. |
111 | %define filterout_ld -Wl,--as-needed -Wl,--no-copy-dt-needed-entries | |
bb38cad4 JR |
112 | %if %{without dynamic} |
113 | %define no_install_post_check_so 1 | |
114 | %define _sbindir /sbin | |
115 | %define _libdir /%{_lib} | |
116 | %endif | |
117 | ||
db55bc6c | 118 | %description |
a42dcc7c | 119 | syslog-ng is a syslogd replacement for Unix and Unix-like systems. It |
70c1937a | 120 | has been tested on Solaris, BSDi and Linux, and were found to run |
121 | reliably. syslog-ng gives you a much enhanced configuration scheme, | |
122 | which lets you filter messages based on not only priority/facility | |
123 | pairs, but also on message content. You can use regexps to direct log | |
124 | stream to different destinations. A destination can be anything from a | |
125 | simple file to a network connection. syslog-ng supports TCP | |
126 | logforwarding, together with hashing to prevent unauthorized | |
127 | modification on the line. | |
db55bc6c | 128 | |
6ab9000c JR |
129 | %description -l pl.UTF-8 |
130 | Syslog-ng jest zamiennikiem dla standardowo używanych programów typu | |
a42dcc7c | 131 | syslog. Działa w systemie SunOS, BSD, Linux. Daje znacznie większe |
6ab9000c | 132 | możliwości logowania i kontrolowania zbieranych informacji. |
db55bc6c | 133 | |
6ab9000c JR |
134 | %description -l pt_BR.UTF-8 |
135 | Syslog-ng é um substituto para o syslog tradicional, mas com diversas | |
02e7b20a | 136 | melhorias, como, por exemplo, a habilidade de filtrar mensagens de log |
6ab9000c | 137 | por seu conteúdo (usando expressões regulares) e não apenas pelo par |
02e7b20a | 138 | facility/prioridade como o syslog original. |
139 | ||
c3d7f31f JK |
140 | %package upstart |
141 | Summary: Upstart job description for syslog-ng | |
4a7ca8b7 | 142 | Summary(pl.UTF-8): Opis zadania Upstart dla demona syslog-ng |
c3d7f31f JK |
143 | Group: Daemons |
144 | Requires: %{name} = %{version}-%{release} | |
145 | Requires: upstart >= 0.6 | |
528e8fc2 JK |
146 | Conflicts: avahi-upstart < 0.6.30-2 |
147 | Conflicts: openssh-server-upstart < 2:5.8p2-2 | |
148 | Conflicts: postgresql-upstart < 9.0.4-2 | |
c3d7f31f JK |
149 | |
150 | %description upstart | |
151 | Upstart job description for syslog-ng. | |
152 | ||
153 | %description upstart -l pl.UTF-8 | |
4a7ca8b7 | 154 | Opis zadania Upstart dla demona syslog-ng. |
c3d7f31f | 155 | |
4c650c71 JB |
156 | %package module-afmongodb |
157 | Summary: MongoDB destination support module for syslog-ng | |
158 | Summary(pl.UTF-8): Moduł sysloga-ng do obsługi zapisu logów w bazie MongoDB | |
159 | Group: Libraries | |
160 | Requires: %{name} = %{version}-%{release} | |
161 | Requires: libmongo-client >= 0.1.0 | |
162 | ||
163 | %description module-afmongodb | |
164 | MongoDB destination support module for syslog-ng. | |
165 | ||
166 | %description module-afmongodb -l pl.UTF-8 | |
167 | Moduł sysloga-ng do obsługi zapisu logów w bazie MongoDB. | |
168 | ||
4c650c71 JB |
169 | %package module-afsql |
170 | Summary: SQL destination support module for syslog-ng | |
171 | Summary(pl.UTF-8): Moduł sysloga-ng do obsługi zapisu logów w bazach SQL | |
172 | Group: Libraries | |
173 | Requires: %{name} = %{version}-%{release} | |
174 | Requires: libdbi >= 0.8.3-2 | |
175 | Requires: openssl >= 0.9.8 | |
176 | ||
177 | %description module-afsql | |
178 | SQL destination support module for syslog-ng (via libdbi). | |
179 | ||
180 | %description module-afsql -l pl.UTF-8 | |
181 | Moduł sysloga-ng do obsługi zapisu logów w bazach SQL (poprzez | |
182 | libdbi). | |
183 | ||
4c650c71 JB |
184 | %package module-tfjson |
185 | Summary: JSON formatting template function for syslog-ng | |
186 | Summary(pl.UTF-8): Moduł sysloga-ng do obsługi szablonów z formatowaniem JSON | |
187 | Group: Libraries | |
188 | Requires: %{name} = %{version}-%{release} | |
189 | Requires: json-c >= 0.7 | |
190 | ||
191 | %description module-tfjson | |
192 | JSON formatting template function for syslog-ng. | |
193 | ||
194 | %description module-tfjson -l pl.UTF-8 | |
195 | Moduł sysloga-ng do obsługi szablonów z formatowaniem JSON. | |
196 | ||
cc1675a4 JB |
197 | %package libs |
198 | Summary: Shared library for syslog-ng | |
199 | Summary(pl.UTF-8): Biblioteka współdzielona sysloga-ng | |
200 | Group: Libraries | |
201 | %if %{with dynamic} | |
202 | Requires: eventlog >= 0.2.12 | |
4c650c71 | 203 | Requires: glib2 >= %{glib2_ver} |
4c3de3cf | 204 | Requires: libivykis >= 0.30.1 |
cc1675a4 JB |
205 | Requires: pcre >= 6.1 |
206 | %endif | |
207 | Conflicts: syslog-ng < 3.3.1-3 | |
208 | ||
209 | %description libs | |
210 | Shared library for syslog-ng. | |
211 | ||
212 | %description libs -l pl.UTF-8 | |
213 | Biblioteka współdzielona sysloga-ng. | |
214 | ||
215 | %package devel | |
216 | Summary: Header files for syslog-ng modules development | |
217 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia modułów dla sysloga-ng | |
218 | Group: Development/Libraries | |
219 | Requires: %{name}-libs = %{version}-%{release} | |
220 | %if %{with dynamic} | |
221 | Requires: eventlog-devel >= 0.2.12 | |
4c650c71 | 222 | Requires: glib2-devel >= %{glib2_ver} |
4c3de3cf | 223 | Requires: libivykis-devel >= 0.30.1 |
cc1675a4 JB |
224 | Requires: pcre-devel >= 6.1 |
225 | %endif | |
226 | ||
227 | %description devel | |
228 | Header files for syslog-ng modules development. | |
229 | ||
230 | %description devel -l pl.UTF-8 | |
231 | Pliki nagłówkowe do tworzenia modułów dla sysloga-ng. | |
232 | ||
db55bc6c | 233 | %prep |
40b3220e | 234 | %setup -q |
489ceddf | 235 | %patch0 -p1 |
3b8a2194 | 236 | %patch1 -p1 |
38883b2f | 237 | %patch2 -p1 |
17524264 | 238 | %patch3 -p1 |
42a0f185 | 239 | %patch4 -p1 |
0872fe7c | 240 | cp -a %{SOURCE4} doc |
f83d4749 | 241 | cp -a %{SOURCE5} contrib/syslog-ng.conf.simple |
b6fee34c | 242 | |
cec64641 JR |
243 | %{__sed} -i -e 's|/usr/bin/awk|/bin/awk|' scl/syslogconf/convert-syslogconf.awk |
244 | ||
db55bc6c | 245 | %build |
5fe1f11f AM |
246 | for i in . lib/ivykis; do |
247 | cd $i | |
248 | %{__libtoolize} | |
4b94cfad | 249 | %{__aclocal} `[ -d m4 ] && echo '-I m4'` |
5fe1f11f | 250 | %{__autoconf} |
585ae33b | 251 | %{__autoheader} |
5fe1f11f AM |
252 | %{__automake} |
253 | cd - | |
254 | done | |
c67bc54f | 255 | %configure \ |
8eca2e89 | 256 | --sysconfdir=%{_sysconfdir}/syslog-ng \ |
303be384 | 257 | --datadir=%{_datadir}/syslog-ng \ |
7e54a951 | 258 | --with-default-modules=affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat \ |
18bd7ab6 JK |
259 | %if %{with mongodb} |
260 | --enable-mongodb \ | |
752e2969 | 261 | --with-libmongo-client=system \ |
18bd7ab6 JK |
262 | %else |
263 | --disable-mongodb \ | |
264 | %endif | |
4c3de3cf | 265 | --with-ivykis=system \ |
bb38cad4 | 266 | --with-module-dir=%{_libdir}/syslog-ng \ |
808ca97e | 267 | --with-pidfile-dir=/var/run \ |
4a7ca8b7 | 268 | --with-timezone-dir=%{_datadir}/zoneinfo \ |
17524264 | 269 | --enable-systemd \ |
6d708cb5 | 270 | --with-systemdsystemunitdir=%{systemdunitdir} \ |
808ca97e | 271 | --enable-ipv6 \ |
808ca97e | 272 | --enable-linux-caps \ |
1fe2e76c | 273 | --enable-pacct \ |
4a7ca8b7 JB |
274 | --enable-pcre \ |
275 | --enable-spoof-source \ | |
276 | --enable-ssl \ | |
277 | --enable-tcp-wrapper \ | |
18bd7ab6 JK |
278 | %if %{with json} |
279 | --enable-json \ | |
280 | %else | |
281 | --disable-json \ | |
282 | %endif | |
808ca97e JR |
283 | %if %{with sql} |
284 | --enable-sql \ | |
285 | %endif | |
8eca2e89 JB |
286 | %if %{with dynamic} |
287 | --enable-dynamic-linking | |
bb38cad4 JR |
288 | %else |
289 | --enable-mixed-linking | |
8eca2e89 | 290 | %endif |
4298f6c0 | 291 | |
84ad47e7 | 292 | %{__make} |
db55bc6c | 293 | |
cc1675a4 | 294 | %if %{with tests} |
b7fea326 AM |
295 | LD_LIBRARY_PATH=$(find $PWD -name '*.so*' -printf "%h:") |
296 | PYTHONPATH=$(pwd)/tests/functional | |
297 | export LD_LIBRARY_PATH PYTHONPATH | |
cc1675a4 JB |
298 | %{__make} check |
299 | %endif | |
f3688193 | 300 | |
db55bc6c | 301 | %install |
db55bc6c | 302 | rm -rf $RPM_BUILD_ROOT |
303be384 JR |
303 | install -d $RPM_BUILD_ROOT/etc/{init,sysconfig,logrotate.d,rc.d/init.d} \ |
304 | $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/patterndb.d \ | |
cd6284ba | 305 | $RPM_BUILD_ROOT/var/{log,lib/%{name}/xsd} |
db55bc6c | 306 | |
1fe2e76c | 307 | %{__make} -j1 install \ |
80a5deba | 308 | pkgconfigdir=%{_pkgconfigdir} \ |
4d7c194a | 309 | DESTDIR=$RPM_BUILD_ROOT |
db55bc6c | 310 | |
544d8db5 | 311 | %{__sed} -e 's|@@SBINDIR@@|%{_sbindir}|g' %{SOURCE1} > $RPM_BUILD_ROOT/etc/rc.d/init.d/syslog-ng |
306cd2c9 ER |
312 | cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/syslog-ng.conf |
313 | cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/syslog-ng | |
db55bc6c | 314 | |
306cd2c9 | 315 | for n in daemon debug iptables kernel lpr maillog messages secure spooler syslog user xferlog; do |
3fb60e3b JR |
316 | > $RPM_BUILD_ROOT/var/log/$n |
317 | done | |
2a14aff2 | 318 | touch $RPM_BUILD_ROOT/etc/sysconfig/%{name} |
db55bc6c | 319 | |
bb38cad4 | 320 | %{__rm} $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}/loggen* |
04316877 | 321 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
bb38cad4 | 322 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/syslog-ng/*.la |
f2972fae | 323 | |
306cd2c9 | 324 | %if "%{pld_release}" == "th" |
59aab0b4 | 325 | %{__sed} -e 's|@@SBINDIR@@|%{_sbindir}|g' %{SOURCE6} > $RPM_BUILD_ROOT/etc/init/%{name}.conf |
306cd2c9 | 326 | %endif |
c3d7f31f | 327 | |
80a87a81 JB |
328 | %clean |
329 | rm -rf $RPM_BUILD_ROOT | |
330 | ||
db55bc6c | 331 | %post |
1519c9ad ER |
332 | if [ "$1" = "1" ]; then |
333 | # disable /proc/kmsg from config on first install on vserver | |
334 | { | |
335 | while read f ctx; do | |
336 | [ "$f" = "VxID:" -o "$f" = "s_context:" ] && break | |
337 | done </proc/self/status | |
338 | } 2>/dev/null | |
339 | if [ -z "$ctx" -o "$ctx" = "0" ]; then | |
340 | VSERVER=no | |
341 | else | |
342 | VSERVER=yes | |
343 | fi | |
344 | if [ "$VSERVER" = "yes" ]; then | |
345 | %{__sed} -i -e '/\/proc\/kmsg/ s/^[^#]/#&/' %{_sysconfdir}/%{name}/%{name}.conf | |
346 | fi | |
347 | fi | |
348 | ||
0b833f9b | 349 | /sbin/chkconfig --add syslog-ng |
da4f5bde | 350 | %service syslog-ng restart "syslog-ng daemon" |
db55bc6c | 351 | |
34031399 JR |
352 | %systemd_post syslog-ng.service |
353 | ||
db55bc6c | 354 | %preun |
0b833f9b | 355 | if [ "$1" = "0" ]; then |
da4f5bde | 356 | %service syslog-ng stop |
0b833f9b | 357 | /sbin/chkconfig --del syslog-ng |
358 | fi | |
34031399 JR |
359 | %systemd_preun syslog-ng.service |
360 | ||
361 | %postun | |
362 | %systemd_reload | |
363 | ||
364 | %triggerpostun -- syslog-ng < 3.3.4-3 | |
365 | %systemd_trigger syslog-ng.service | |
db55bc6c | 366 | |
31446e62 | 367 | %triggerun -- syslog-ng < 3.0 |
60bdc15a | 368 | sed -i -e 's#sync(\(.*\))#flush_lines(\1)#g' /etc/syslog-ng/syslog-ng.conf |
31446e62 AM |
369 | sed -i -e 's#pipe ("/proc/kmsg"#file ("/proc/kmsg"#g' /etc/syslog-ng/syslog-ng.conf |
370 | sed -i -e 's#log_prefix#program_override#g' /etc/syslog-ng/syslog-ng.conf | |
371 | sed -i -e 's#^destination #destination d_#g' /etc/syslog-ng/syslog-ng.conf | |
372 | sed -i -e 's#destination(#destination(d_#g' /etc/syslog-ng/syslog-ng.conf | |
01113c19 | 373 | sed -i -e 's,\bstats\b,stats_freq,' /etc/syslog-ng/syslog-ng.conf |
31446e62 AM |
374 | sed -i -e 's#match("IN\=\[A-Za-z0-9\]\* OUT=\[A-Za-z0-9\]\*");#match("IN=[A-Za-z0-9]* OUT=[A-Za-z0-9]*" value("MESSAGE"));#g' /etc/syslog-ng/syslog-ng.conf |
375 | sed -i -e "1 s#\(.*\)\$#@version: 3.0\n\1#g" /etc/syslog-ng/syslog-ng.conf | |
376 | rm -f %{_var}/lib/%{name}/syslog-ng.persist | |
e3a52627 | 377 | %service -q syslog-ng restart |
31446e62 AM |
378 | exit 0 |
379 | ||
cc1675a4 JB |
380 | %post upstart |
381 | %upstart_post %{name} | |
382 | ||
383 | %postun upstart | |
384 | %upstart_postun %{name} | |
385 | ||
386 | %triggerun upstart -- syslog-ng-upstart < 3.2.4-3 | |
387 | # use SERVICE_syslog=y in upstart job environment instead of SERVICE=syslog | |
388 | %{__sed} -i -e 's,SERVICE=syslog,SERVICE_syslog=y,' /etc/init/*.conf || : | |
389 | ||
390 | %post libs -p /sbin/ldconfig | |
391 | %postun libs -p /sbin/ldconfig | |
392 | ||
db55bc6c | 393 | %files |
a25388f3 | 394 | %defattr(644,root,root,755) |
0091ccbb | 395 | %doc AUTHORS ChangeLog NEWS debian/syslog-ng.conf* contrib/relogger.pl |
04316877 AM |
396 | %doc contrib/syslog-ng.conf.{doc,simple,RedHat} |
397 | %doc contrib/{apparmor,selinux,syslog2ng} doc/syslog-ng-ose-v3.3-guide-admin-en.pdf | |
2a14aff2 | 398 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} |
a25388f3 | 399 | %attr(750,root,root) %dir %{_sysconfdir}/syslog-ng |
303be384 | 400 | %attr(750,root,root) %dir %{_sysconfdir}/syslog-ng/patterndb.d |
bb38cad4 JR |
401 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/syslog-ng/modules.conf |
402 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/syslog-ng/scl.conf | |
cc4597b5 ER |
403 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/syslog-ng/syslog-ng.conf |
404 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/syslog-ng | |
a25388f3 | 405 | %attr(754,root,root) /etc/rc.d/init.d/syslog-ng |
34031399 | 406 | %{systemdunitdir}/syslog-ng.service |
bb38cad4 | 407 | %dir %{_libdir}/syslog-ng |
4c650c71 JB |
408 | %attr(755,root,root) %{_libdir}/syslog-ng/libaffile.so |
409 | %attr(755,root,root) %{_libdir}/syslog-ng/libafprog.so | |
ceea8d15 JB |
410 | %attr(755,root,root) %{_libdir}/syslog-ng/libafsocket.so |
411 | %attr(755,root,root) %{_libdir}/syslog-ng/libafsocket-notls.so | |
412 | %attr(755,root,root) %{_libdir}/syslog-ng/libafsocket-tls.so | |
4c650c71 JB |
413 | %attr(755,root,root) %{_libdir}/syslog-ng/libafuser.so |
414 | %attr(755,root,root) %{_libdir}/syslog-ng/libbasicfuncs.so | |
415 | %attr(755,root,root) %{_libdir}/syslog-ng/libconfgen.so | |
416 | %attr(755,root,root) %{_libdir}/syslog-ng/libconvertfuncs.so | |
417 | %attr(755,root,root) %{_libdir}/syslog-ng/libcsvparser.so | |
ceea8d15 | 418 | %attr(755,root,root) %{_libdir}/syslog-ng/libdbparser.so |
4c650c71 JB |
419 | %attr(755,root,root) %{_libdir}/syslog-ng/libdummy.so |
420 | %attr(755,root,root) %{_libdir}/syslog-ng/libpacctformat.so | |
421 | %attr(755,root,root) %{_libdir}/syslog-ng/libsyslog-ng-crypto.so | |
422 | %attr(755,root,root) %{_libdir}/syslog-ng/libsyslogformat.so | |
302dff3f | 423 | %attr(755,root,root) %{_sbindir}/syslog-ng |
bb38cad4 | 424 | %attr(755,root,root) %{_sbindir}/syslog-ng-ctl |
ceea8d15 | 425 | %attr(755,root,root) %{_bindir}/pdbtool |
303be384 | 426 | %attr(755,root,root) %{_bindir}/update-patterndb |
a0237816 | 427 | |
a0237816 JR |
428 | %dir %{_datadir}/syslog-ng/include |
429 | %dir %{_datadir}/syslog-ng/include/scl | |
430 | %dir %{_datadir}/syslog-ng/include/scl/pacct | |
431 | %{_datadir}/syslog-ng/include/scl/pacct/plugin.conf | |
432 | %dir %{_datadir}/syslog-ng/include/scl/syslogconf | |
433 | %{_datadir}/syslog-ng/include/scl/syslogconf/README | |
434 | %attr(755,root,root) %{_datadir}/syslog-ng/include/scl/syslogconf/convert-syslogconf.awk | |
435 | %{_datadir}/syslog-ng/include/scl/syslogconf/plugin.conf | |
436 | %dir %{_datadir}/syslog-ng/include/scl/system | |
437 | %attr(755,root,root) %{_datadir}/syslog-ng/include/scl/system/generate-system-source.sh | |
438 | %{_datadir}/syslog-ng/include/scl/system/plugin.conf | |
439 | %dir %{_datadir}/syslog-ng/xsd | |
440 | %{_datadir}/syslog-ng/xsd/patterndb-*.xsd | |
441 | ||
4d910d4c | 442 | %dir %{_var}/lib/%{name} |
cd6284ba | 443 | %dir %{_var}/lib/%{name}/xsd |
ceea8d15 | 444 | %{_mandir}/man1/pdbtool.1* |
bb38cad4 | 445 | %{_mandir}/man1/syslog-ng-ctl.1* |
81f47e04 JB |
446 | %{_mandir}/man5/syslog-ng.conf.5* |
447 | %{_mandir}/man8/syslog-ng.8* | |
822b8fbf | 448 | |
cc1675a4 JB |
449 | %attr(640,root,root) %ghost /var/log/daemon |
450 | %attr(640,root,root) %ghost /var/log/debug | |
451 | %attr(640,root,root) %ghost /var/log/iptables | |
452 | %attr(640,root,root) %ghost /var/log/kernel | |
453 | %attr(640,root,root) %ghost /var/log/lpr | |
454 | %attr(640,root,root) %ghost /var/log/maillog | |
455 | %attr(640,root,root) %ghost /var/log/messages | |
456 | %attr(640,root,root) %ghost /var/log/secure | |
457 | %attr(640,root,root) %ghost /var/log/spooler | |
458 | %attr(640,root,root) %ghost /var/log/syslog | |
459 | %attr(640,root,root) %ghost /var/log/user | |
460 | %attr(640,root,root) %ghost /var/log/xferlog | |
c3d7f31f | 461 | |
306cd2c9 | 462 | %if "%{pld_release}" == "th" |
c3d7f31f JK |
463 | %files upstart |
464 | %defattr(644,root,root,755) | |
465 | %config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf | |
306cd2c9 | 466 | %endif |
cc1675a4 | 467 | |
18bd7ab6 | 468 | %if %{with mongodb} |
4c650c71 JB |
469 | %files module-afmongodb |
470 | %defattr(644,root,root,755) | |
471 | %doc modules/afmongodb/TODO | |
472 | %attr(755,root,root) %{_libdir}/syslog-ng/libafmongodb.so | |
18bd7ab6 | 473 | %endif |
4c650c71 | 474 | |
5f709b4d | 475 | %if %{with sql} |
4c650c71 JB |
476 | %files module-afsql |
477 | %defattr(644,root,root,755) | |
478 | %attr(755,root,root) %{_libdir}/syslog-ng/libafsql.so | |
5f709b4d | 479 | %endif |
4c650c71 | 480 | |
18bd7ab6 | 481 | %if %{with json} |
4c650c71 JB |
482 | %files module-tfjson |
483 | %defattr(644,root,root,755) | |
484 | %attr(755,root,root) %{_libdir}/syslog-ng/libtfjson.so | |
18bd7ab6 | 485 | %endif |
4c650c71 | 486 | |
cc1675a4 JB |
487 | %files libs |
488 | %defattr(644,root,root,755) | |
489 | %attr(755,root,root) %{_libdir}/libsyslog-ng-%{version}.so | |
490 | %dir %{_datadir}/syslog-ng | |
491 | ||
492 | %files devel | |
493 | %defattr(644,root,root,755) | |
494 | %attr(755,root,root) %{_libdir}/libsyslog-ng.so | |
495 | %{_includedir}/syslog-ng | |
496 | %{_datadir}/syslog-ng/tools | |
497 | %{_pkgconfigdir}/syslog-ng.pc |