SPECS: bacula.spec - mysql support

areq areq at pld-linux.org
Fri Apr 20 22:25:13 CEST 2007


Author: areq                         Date: Fri Apr 20 20:25:13 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- mysql support

---- Files affected:
SPECS:
   bacula.spec (1.63 -> 1.64) 

---- Diffs:

================================================================
Index: SPECS/bacula.spec
diff -u SPECS/bacula.spec:1.63 SPECS/bacula.spec:1.64
--- SPECS/bacula.spec:1.63	Fri Apr 20 20:54:16 2007
+++ SPECS/bacula.spec	Fri Apr 20 22:25:07 2007
@@ -7,10 +7,17 @@
 # Conditional build:
 %bcond_without	console_wx	# wx-console program
 %bcond_without	gnome		# gnome-console program
+%bcond_without	mysql		# use mysql
 %bcond_with	python
 %bcond_with	rescue
+%bcond_with	sqlite		# use sqlite
 %bcond_with	sqlite3		# use sqlite3 insted sqlite
 %bcond_with	sqlite3_sync_off	# makes sqlite3 backend much faster, but less reliable
+%if %{with mysql}
+%undefine       with_sqlite
+%undefine       with_sqlite3
+%undefine       with_sqlite3_sync_off
+%endif
 #
 Summary:	Bacula - The Network Backup Solution
 Summary(pl.UTF-8):	Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci
@@ -62,11 +69,9 @@
 BuildRequires:	readline-devel
 BuildRequires:	rpmbuild(macros) >= 1.268
 BuildRequires:	sed >= 4.0
-%if %{with sqlite3}
-BuildRequires:	sqlite3-devel
-%else
-BuildRequires:	sqlite-devel
-%endif
+%{?with_sqlite3:BuildRequires:  sqlite3-devel}
+%{?with_sqlite:BuildRequires:  sqlite-devel}
+%{?with_mysql:BuildRequires:  mysql-devel}
 %if %{with console_wx}
 BuildRequires:	wxGTK2-unicode-devel >= 2.4.0
 %endif
@@ -412,7 +417,9 @@
 	--with-smtp-host=localhost \
 	--with-pid-dir=/var/run \
 	--with-subsys-dir=/var/lock/subsys \
-	--with-sqlite%{?with_sqlite3:3} \
+	%{?with_mysql:--with-mysql} \
+	%{?with_sqlite:--with-sqlite} \
+	%{?with_sqlite3:--with-sqlite3} \
 	%{?with_sqlite3_sync_off:--enable-extra-sqlite3-init="pragma synchronous=0;"} \
 	--with-dir-password="#FAKE-dir-password#" \
 	--with-fd-password="#FAKE-fd-password#" \
@@ -538,7 +545,8 @@
 		if [ "$DB_VER" -lt "9" ]; then
 			%{_libexecdir}/%{name}/update_${type}_tables_8_to_9
 		fi
-	%else
+	%endif
+	%if %{with sqlite}
 		type=sqlite
 		if [ "$DB_VER" -lt "9" ]; then
 			if [ "$DB_VER" -lt "8" ]; then
@@ -715,7 +723,8 @@
 %attr(755,root,root) %{_libexecdir}/%{name}/grant_sqlite3_privileges
 %attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite3_tables
 %attr(755,root,root) %{_libexecdir}/%{name}/update_sqlite3_*
-%else
+%endif
+%if %{with sqlite}
 %attr(755,root,root) %{_libexecdir}/%{name}/create_sqlite_database
 %attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite_database
 %attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite_tables
@@ -723,6 +732,14 @@
 %attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite_tables
 %attr(755,root,root) %{_libexecdir}/%{name}/update_sqlite_*
 %endif
+%if %{with mysql}
+%attr(755,root,root) %{_libexecdir}/%{name}/create_mysql_database
+%attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_database
+%attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_tables
+%attr(755,root,root) %{_libexecdir}/%{name}/grant_mysql_privileges
+%attr(755,root,root) %{_libexecdir}/%{name}/make_mysql_tables
+%attr(755,root,root) %{_libexecdir}/%{name}/update_mysql_*
+%endif
 %attr(755,root,root) %{_libexecdir}/%{name}/create_bacula_database
 %attr(755,root,root) %{_libexecdir}/%{name}/drop_bacula_database
 %attr(755,root,root) %{_libexecdir}/%{name}/drop_bacula_tables
@@ -827,6 +844,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.64  2007/04/20 20:25:07  areq
+- mysql support
+
 Revision 1.63  2007/04/20 18:54:16  areq
 - 2.0.3
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/bacula.spec?r1=1.63&r2=1.64&f=u



More information about the pld-cvs-commit mailing list