packages: syslog-ng/syslog-ng.spec - mongodb and json bconds added
jajcus
jajcus at pld-linux.org
Tue Jan 24 12:12:59 CET 2012
Author: jajcus Date: Tue Jan 24 11:12:59 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- mongodb and json bconds added
---- Files affected:
packages/syslog-ng:
syslog-ng.spec (1.236 -> 1.237)
---- Diffs:
================================================================
Index: packages/syslog-ng/syslog-ng.spec
diff -u packages/syslog-ng/syslog-ng.spec:1.236 packages/syslog-ng/syslog-ng.spec:1.237
--- packages/syslog-ng/syslog-ng.spec:1.236 Mon Jan 23 12:23:15 2012
+++ packages/syslog-ng/syslog-ng.spec Tue Jan 24 12:12:54 2012
@@ -13,6 +13,8 @@
%bcond_without sql # build without support for logging to SQL DB
%endif
%bcond_without tests
+%bcond_without json # build without support for JSON template formatting
+%bcond_without mongodb # build without support for mongodb destination
%if "%{pld_release}" == "ac"
%define glib2_ver 1:2.16.0
@@ -47,10 +49,10 @@
BuildRequires: eventlog-devel >= 0.2.12
BuildRequires: flex
BuildRequires: glib2-devel >= %{glib2_ver}
-BuildRequires: json-c-devel >= 0.7
+%{?with_json:BuildRequires: json-c-devel >= 0.7}
BuildRequires: libcap-devel
%{?with_sql:BuildRequires: libdbi-devel >= 0.8.3-2}
-BuildRequires: libmongo-client-devel >= 0.1.0
+%{?with_mongodb:BuildRequires: libmongo-client-devel >= 0.1.0}
BuildRequires: libnet-devel >= 1:1.1.2.1-3
BuildRequires: libtool >= 2:2.0
BuildRequires: libwrap-devel
@@ -258,7 +260,12 @@
--sysconfdir=%{_sysconfdir}/syslog-ng \
--datadir=%{_datadir}/syslog-ng \
--with-default-modules=affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat \
+%if %{with mongodb}
+ --enable-mongodb \
--with-libmongo-client=system \
+%else
+ --disable-mongodb \
+%endif
--with-module-dir=%{_libdir}/syslog-ng \
--with-pidfile-dir=/var/run \
--with-timezone-dir=%{_datadir}/zoneinfo \
@@ -271,6 +278,11 @@
--enable-spoof-source \
--enable-ssl \
--enable-tcp-wrapper \
+%if %{with json}
+ --enable-json \
+%else
+ --disable-json \
+%endif
%if %{with sql}
--enable-sql \
%endif
@@ -457,18 +469,22 @@
%defattr(644,root,root,755)
%{systemdunitdir}/syslog-ng.service
+%if %{with mongodb}
%files module-afmongodb
%defattr(644,root,root,755)
%doc modules/afmongodb/TODO
%attr(755,root,root) %{_libdir}/syslog-ng/libafmongodb.so
+%endif
%files module-afsql
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/syslog-ng/libafsql.so
+%if %{with json}
%files module-tfjson
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/syslog-ng/libtfjson.so
+%endif
%files libs
%defattr(644,root,root,755)
@@ -488,6 +504,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.237 2012/01/24 11:12:54 jajcus
+- mongodb and json bconds added
+
Revision 1.236 2012/01/23 11:23:15 arekm
- up to 3.3.4
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/syslog-ng/syslog-ng.spec?r1=1.236&r2=1.237&f=u
More information about the pld-cvs-commit
mailing list