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