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