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