[Erp5-report] r7859 - /spec/mandriva/2006.0/bacula/

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jun 19 17:20:21 CEST 2006


Author: kevin
Date: Mon Jun 19 17:20:15 2006
New Revision: 7859

URL: http://svn.erp5.org?rev=7859&view=rev
Log:
Commit bacula-1.36.2-2mdk spec files and patches

Added:
    spec/mandriva/2006.0/bacula/
    spec/mandriva/2006.0/bacula/bacula-1.34-updatedb.diff
    spec/mandriva/2006.0/bacula/bacula-1.36.1-config.diff
    spec/mandriva/2006.0/bacula/bacula-1.36.1-pidfile.diff
    spec/mandriva/2006.0/bacula/bacula.spec

Added: spec/mandriva/2006.0/bacula/bacula-1.34-updatedb.diff
URL: http://svn.erp5.org/spec/mandriva/2006.0/bacula/bacula-1.34-updatedb.diff?rev=7859&view=auto
==============================================================================
--- spec/mandriva/2006.0/bacula/bacula-1.34-updatedb.diff (added)
+++ spec/mandriva/2006.0/bacula/bacula-1.34-updatedb.diff Mon Jun 19 17:20:15 2006
@@ -1,0 +1,84 @@
+--- bacula-1.34.1/updatedb/update_mysql_tables_4_to_5.update	2004-02-18 22:23:04.000000000 +0100
++++ bacula-1.34.1/updatedb/update_mysql_tables_4_to_5	2004-04-18 19:50:30.000000000 +0200
+@@ -37,7 +37,8 @@
+ 	    'Busy', 'Used') NOT NULL;
+ ALTER TABLE Media CHANGE VolMaxBytes MaxVolBytes BIGINT UNSIGNED NOT NULL;
+ 
+-UPDATE Version SET VersionId=5;
++DELETE FROM Version;
++INSERT INTO Version (VersionId) VALUES (5);
+ 
+ END-OF-DATA
+ then
+--- bacula-1.34.1/updatedb/update_mysql_tables_5_to_6.update	2004-02-18 22:23:04.000000000 +0100
++++ bacula-1.34.1/updatedb/update_mysql_tables_5_to_6	2004-04-18 19:50:38.000000000 +0200
+@@ -86,7 +86,8 @@
+    PRIMARY KEY (Counter(128))
+    );
+ 
+-UPDATE Version SET VersionId=6;
++DELETE FROM Version;
++INSERT INTO Version (VersionId) VALUES (6);
+ 
+ END-OF-DATA
+ then
+--- bacula-1.34.1/updatedb/update_sqlite_tables_4_to_5.update	2004-02-18 22:23:04.000000000 +0100
++++ bacula-1.34.1/updatedb/update_sqlite_tables_4_to_5	2004-04-18 19:53:10.000000000 +0200
+@@ -9,9 +9,9 @@
+ echo " "
+ 
+ # The location of the sqlite program
+-bindir=/usr/lib/sqlite
++bindir=/usr/bin
+ # The location of your bacula working directory
+-cd /var/bacula
++cd /var/lib/bacula
+ 
+ if [ -s bacula.db ];then
+ 	DB_VER=`echo "select * from Version;" | $bindir/sqlite bacula.db | tail -n 1 2>/dev/null`
+@@ -140,6 +140,7 @@
+ DROP TABLE Pool_backup;
+ COMMIT;
+ 
+-UPDATE Version SET VersionId=5;
++DELETE FROM Version;
++INSERT INTO Version (VersionId) VALUES (5);
+ 
+ END-OF-DATA
+--- bacula-1.34.1/updatedb/update_sqlite_tables_5_to_6.update	2004-02-18 22:23:04.000000000 +0100
++++ bacula-1.34.1/updatedb/update_sqlite_tables_5_to_6	2004-04-18 19:53:25.000000000 +0200
+@@ -9,9 +9,9 @@
+ echo " "
+ 
+ # The location of the sqlite program
+-bindir=/usr/lib/sqlite
++bindir=/usr/bin
+ # The location of your bacula working directory
+-cd /var/bacula
++cd /var/lib/bacula
+ 
+ if [ -s bacula.db ];then
+ 	DB_VER=`echo "select * from Version;" | $bindir/sqlite bacula.db | tail -n 1 2>/dev/null`
+@@ -170,6 +170,7 @@
+    PRIMARY KEY (Counter)
+    );
+ 
+-UPDATE Version SET VersionId=6;
++DELETE FROM Version;
++INSERT INTO Version (VersionId) VALUES (6);
+ 
+ END-OF-DATA
+--- bacula-1.34.1/updatedb/update_sqlite_tables_6_to_7.update	2004-04-09 18:59:25.000000000 +0200
++++ bacula-1.34.1/updatedb/update_sqlite_tables_6_to_7	2004-04-18 19:53:43.000000000 +0200
+@@ -9,9 +9,9 @@
+ echo " "
+ 
+ # The location of the sqlite program
+-bindir=/usr/lib/sqlite
++bindir=/usr/bin
+ # The location of your bacula working directory
+-cd /var/bacula
++cd /var/lib/bacula
+ 
+ if [ -s bacula.db ];then
+         DB_VER=`echo "select * from Version;" | $bindir/sqlite bacula.db | tail -n 1 2>/dev/null`

Added: spec/mandriva/2006.0/bacula/bacula-1.36.1-config.diff
URL: http://svn.erp5.org/spec/mandriva/2006.0/bacula/bacula-1.36.1-config.diff?rev=7859&view=auto
==============================================================================
--- spec/mandriva/2006.0/bacula/bacula-1.36.1-config.diff (added)
+++ spec/mandriva/2006.0/bacula/bacula-1.36.1-config.diff Mon Jun 19 17:20:15 2006
@@ -1,0 +1,293 @@
+--- bacula-1.36.1/autoconf/Make.common.in.config	2004-06-15 14:11:25.000000000 +0200
++++ bacula-1.36.1/autoconf/Make.common.in	2005-01-15 22:15:23.990534762 +0100
+@@ -53,7 +53,7 @@
+ CPPFLAGS = @CPPFLAGS@
+ LDFLAGS = @LDFLAGS@
+ TTOOL_LDFLAGS = @TTOOL_LDFLAGS@
+-#DEFS = @DEFS@
++DEFS = -DCONFIG_DIR="\"@sysconfdir@\""
+ LIBS = @LIBS@
+ DINCLUDE = @DINCLUDE@
+ DLIB = @DLIB@
+--- bacula-1.36.1/autoconf/configure.in.config	2004-11-18 23:14:05.000000000 +0100
++++ bacula-1.36.1/autoconf/configure.in	2005-01-15 22:15:23.992534789 +0100
+@@ -1835,6 +1835,7 @@
+   ;;
+ esac  
+ 
++hostname=localhost
+ AC_SUBST(hostname)
+ 
+ LIBS="$PTHREAD_LIB $LIBS"
+--- bacula-1.36.1/platforms/mandrake/bacula-dir.in.config	2004-10-19 15:35:08.000000000 +0200
++++ bacula-1.36.1/platforms/mandrake/bacula-dir.in	2005-01-15 22:15:23.993534803 +0100
+@@ -16,7 +16,7 @@
+ case "$1" in
+     start)
+        echo -n "Starting the Bacula Director: "
+-       daemon @sbindir@/bacula-dir $2 -c @sysconfdir@/bacula-dir.conf
++       daemon @sbindir@/bacula-dir -u bacula -g bacula -c @sysconfdir@/bacula-dir.conf
+        RETVAL=$?
+        echo
+        [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-dir
+@@ -26,9 +26,10 @@
+        killproc @sbindir@/bacula-dir
+        RETVAL=$?
+        echo
++       [ $RETVAL -eq 0 ] && rm -f /var/run/bacula-dir.pid
+        [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-dir
+        ;;
+-    restart)
++    restart|reload)
+        $0 stop
+        sleep 5
+        $0 start
+@@ -37,7 +38,7 @@
+        status @sbindir@/bacula-dir
+        ;;
+     *)
+-       echo "Usage: $0 {start|stop|restart|status}"
++       echo "Usage: $0 {start|stop|restart|reload|status}"
+        exit 1
+        ;;
+ esac
+--- bacula-1.36.1/platforms/mandrake/bacula-fd.in.config	2004-10-19 15:35:08.000000000 +0200
++++ bacula-1.36.1/platforms/mandrake/bacula-fd.in	2005-01-15 22:15:23.993534803 +0100
+@@ -15,7 +15,7 @@
+ case "$1" in
+     start)
+        echo -n "Starting the Bacula File daemon: "
+-       daemon @sbindir@/bacula-fd $2 -c @sysconfdir@/bacula-fd.conf
++       daemon @sbindir@/bacula-fd -c @sysconfdir@/bacula-fd.conf
+        RETVAL=$?
+        echo
+        [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-fd
+@@ -25,9 +25,10 @@
+        killproc @sbindir@/bacula-fd
+        RETVAL=$?
+        echo
++       [ $RETVAL -eq 0 ] && rm -f /var/run/bacula-fd.pid
+        [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-fd
+        ;;
+-    restart)
++    restart|reload)
+        $0 stop
+        sleep 5
+        $0 start
+@@ -36,7 +37,7 @@
+        status @sbindir@/bacula-fd
+        ;;
+     *)
+-       echo "Usage: $0 {start|stop|restart|status}"
++       echo "Usage: $0 {start|stop|restart|reload|status}"
+        exit 1
+        ;;
+ esac
+--- bacula-1.36.1/platforms/mandrake/bacula-sd.in.config	2004-10-19 15:35:08.000000000 +0200
++++ bacula-1.36.1/platforms/mandrake/bacula-sd.in	2005-01-15 22:15:23.994534816 +0100
+@@ -15,7 +15,7 @@
+ case "$1" in
+     start)
+        echo -n "Starting the Bacula Storage daemon: "
+-       daemon @sbindir@/bacula-sd $2 -c @sysconfdir@/bacula-sd.conf
++       daemon @sbindir@/bacula-sd -u bacula -g bacula -c @sysconfdir@/bacula-sd.conf
+        RETVAL=$?
+        echo
+        [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-sd
+@@ -25,9 +25,10 @@
+        killproc @sbindir@/bacula-sd
+        RETVAL=$?
+        echo
++       [ $RETVAL -eq 0 ] && rm -f /var/run/bacula-sd.pid
+        [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-sd
+        ;;
+-    restart)
++    restart|reload)
+        $0 stop
+        sleep 5
+        $0 start
+@@ -36,7 +37,7 @@
+        status @sbindir@/bacula-sd
+        ;;
+     *)
+-       echo "Usage: $0 {start|stop|restart|status}"
++       echo "Usage: $0 {start|stop|restart|reload|status}"
+        exit 1
+        ;;
+ esac
+--- bacula-1.36.1/scripts/Makefile.in.config	2004-11-17 23:48:21.000000000 +0100
++++ bacula-1.36.1/scripts/Makefile.in	2005-01-15 22:18:10.391830272 +0100
+@@ -32,30 +32,13 @@
+ 	$(MKDIR) $(DESTDIR)$(scriptdir)
+ 
+ install: installdirs
+-	$(INSTALL_SCRIPT) startmysql $(DESTDIR)$(scriptdir)/startmysql
+-	$(INSTALL_SCRIPT) stopmysql $(DESTDIR)$(scriptdir)/stopmysql
+-	$(INSTALL_SCRIPT) bconsole $(DESTDIR)$(scriptdir)/bconsole
+-	$(INSTALL_SCRIPT) gconsole $(DESTDIR)$(scriptdir)/gconsole
+-	$(INSTALL_SCRIPT) bacula $(DESTDIR)$(scriptdir)/bacula
+-	@if  test -f ${DESTDIR}${scriptdir}/mtx-changer; then \
+-	   echo "  ==> Saving existing mtx-changer to mtx-changer.old"; \
+-	   $(MV) -f ${DESTDIR}${scriptdir}/mtx-changer ${DESTDIR}${scriptdir}/mtx-changer.old; \
+-	fi
+ 	$(INSTALL_SCRIPT) mtx-changer $(DESTDIR)$(scriptdir)/mtx-changer
+ 	$(INSTALL_DATA)   btraceback.gdb $(DESTDIR)$(scriptdir)/btraceback.gdb
+-	$(INSTALL_DATA)   btraceback.dbx $(DESTDIR)$(scriptdir)/btraceback.dbx
+ 	$(INSTALL_SCRIPT) btraceback $(DESTDIR)$(sbindir)/btraceback
+ 
+ uninstall:
+-	(cd $(DESTDIR)$(scriptdir); $(RMF) startmysql)
+-	(cd $(DESTDIR)$(scriptdir); $(RMF) stopmysql)
+-	(cd $(DESTDIR)$(scriptdir); $(RMF) bconsole)
+-	(cd $(DESTDIR)$(scriptdir); $(RMF) gconsole)
+-	(cd $(DESTDIR)$(scriptdir); $(RMF) bacula)
+-	(cd $(DESTDIR)$(scriptdir); $(RMF) fd)
+ 	(cd $(DESTDIR)$(scriptdir); $(RMF) mtx-changer)
+ 	(cd $(DESTDIR)$(scriptdir); $(RMF) btraceback.gdb)
+-	(cd $(DESTDIR)$(scriptdir); $(RMF) btraceback.dbx)
+ 	(cd $(DESTDIR)$(sbindir); $(RMF) btraceback)
+ 
+ Makefile: Makefile.in
+--- bacula-1.36.1/src/console/console.c.config	2004-08-03 12:01:05.000000000 +0200
++++ bacula-1.36.1/src/console/console.c	2005-01-15 22:15:23.996534843 +0100
+@@ -97,7 +97,7 @@
+ static int sleepcmd(FILE *input, BSOCK *UA_sock);
+ 
+ 
+-#define CONFIG_FILE "./bconsole.conf"   /* default configuration file */
++#define CONFIG_FILE CONFIG_DIR "/bconsole.conf"   /* default configuration file */
+ 
+ static void usage()
+ {
+--- bacula-1.36.1/src/dird/dird.c.config	2004-11-11 18:30:32.000000000 +0100
++++ bacula-1.36.1/src/dird/dird.c	2005-01-15 22:15:23.996534843 +0100
+@@ -69,7 +69,7 @@
+ extern URES res_all;
+ 
+ 
+-#define CONFIG_FILE "./bacula-dir.conf" /* default configuration file */
++#define CONFIG_FILE CONFIG_DIR "/bacula-dir.conf" /* default configuration file */
+ 
+ static void usage()
+ {
+--- bacula-1.36.1/src/filed/filed.c.config	2004-10-18 17:28:59.000000000 +0200
++++ bacula-1.36.1/src/filed/filed.c	2005-01-15 22:15:23.996534843 +0100
+@@ -51,7 +51,7 @@
+ #endif
+ 
+ 
+-#define CONFIG_FILE "./bacula-fd.conf" /* default config file */
++#define CONFIG_FILE CONFIG_DIR "/bacula-fd.conf" /* default config file */
+ 
+ static char *configfile = NULL;
+ static bool foreground = false;
+--- bacula-1.36.1/src/gnome-console/console.c.config	2004-07-28 11:42:49.000000000 +0200
++++ bacula-1.36.1/src/gnome-console/console.c	2005-01-15 22:15:23.997534857 +0100
+@@ -75,7 +75,7 @@
+ static bool quit = FALSE;
+ static guint initial;
+ 
+-#define CONFIG_FILE "./gnome-console.conf"   /* default configuration file */
++#define CONFIG_FILE CONFIG_DIR "/gnome-console.conf"   /* default configuration file */
+ 
+ static void usage()
+ {
+--- bacula-1.36.1/src/gnome2-console/console.c.config	2004-07-28 11:42:50.000000000 +0200
++++ bacula-1.36.1/src/gnome2-console/console.c	2005-01-15 22:15:23.998534870 +0100
+@@ -80,7 +80,7 @@
+ static bool quit = false;
+ static guint initial;
+ 
+-#define CONFIG_FILE "./gnome-console.conf"   /* default configuration file */
++#define CONFIG_FILE CONFIG_DIR "/gnome-console.conf"   /* default configuration file */
+ 
+ static void usage()
+ {
+--- bacula-1.36.1/src/stored/bcopy.c.config	2004-09-19 20:56:27.000000000 +0200
++++ bacula-1.36.1/src/stored/bcopy.c	2005-01-15 22:15:23.998534870 +0100
+@@ -46,7 +46,7 @@
+ static uint32_t jobs = 0;
+ static DEV_BLOCK *out_block;
+ 
+-#define CONFIG_FILE "bacula-sd.conf"
++#define CONFIG_FILE CONFIG_DIR "/bacula-sd.conf"
+ char *configfile;
+ bool forge_on = true;
+ 
+--- bacula-1.36.1/src/stored/bls.c.config	2004-09-19 20:56:27.000000000 +0200
++++ bacula-1.36.1/src/stored/bls.c	2005-01-15 22:15:23.999534884 +0100
+@@ -53,7 +53,7 @@
+ static uint32_t num_files = 0;
+ static ATTR *attr;
+ 
+-#define CONFIG_FILE "bacula-sd.conf"
++#define CONFIG_FILE CONFIG_DIR "/bacula-sd.conf"
+ char *configfile;
+ bool forge_on = false;
+ 
+--- bacula-1.36.1/src/stored/bextract.c.config	2004-09-19 20:56:27.000000000 +0200
++++ bacula-1.36.1/src/stored/bextract.c	2005-01-15 22:15:24.000534898 +0100
+@@ -63,7 +63,7 @@
+ static uint32_t wsize;		      /* write size */
+ static uint64_t fileAddr = 0;	      /* file write address */
+ 
+-#define CONFIG_FILE "bacula-sd.conf"
++#define CONFIG_FILE CONFIG_DIR "/bacula-sd.conf"
+ char *configfile;
+ bool forge_on = false;
+ 
+--- bacula-1.36.1/src/stored/bscan.c.config	2004-10-15 19:09:05.000000000 +0200
++++ bacula-1.36.1/src/stored/bscan.c	2005-01-15 22:15:24.000534898 +0100
+@@ -98,7 +98,7 @@
+ static int num_media = 0;
+ static int num_files = 0;
+ 
+-#define CONFIG_FILE "bacula-sd.conf"
++#define CONFIG_FILE CONFIG_DIR "/bacula-sd.conf"
+ char *configfile;
+ bool forge_on = false;
+ 
+--- bacula-1.36.1/src/stored/btape.c.config	2004-11-12 18:37:03.000000000 +0100
++++ bacula-1.36.1/src/stored/btape.c	2005-01-15 22:15:24.002534925 +0100
+@@ -85,7 +85,7 @@
+ 
+ 
+ /* Static variables */
+-#define CONFIG_FILE "bacula-sd.conf"
++#define CONFIG_FILE CONFIG_DIR "/bacula-sd.conf"
+ char *configfile;
+ 
+ #define MAX_CMD_ARGS 30
+--- bacula-1.36.1/src/stored/stored.c.config	2004-10-18 17:29:00.000000000 +0200
++++ bacula-1.36.1/src/stored/stored.c	2005-01-15 22:15:24.003534938 +0100
+@@ -43,7 +43,7 @@
+ 
+ 
+ 
+-#define CONFIG_FILE "bacula-sd.conf"  /* Default config file */
++#define CONFIG_FILE CONFIG_DIR "/bacula-sd.conf"  /* Default config file */
+ 
+ 
+ /* Global variables exported */
+--- bacula-1.36.1/src/wx-console/wxbmainframe.cpp.config	2004-11-15 17:49:53.000000000 +0100
++++ bacula-1.36.1/src/wx-console/wxbmainframe.cpp	2005-01-15 22:15:24.004534952 +0100
+@@ -373,7 +373,7 @@
+                configfile += '/';
+             configfile += "Library/Preferences/org.bacula.wxconsole.conf";
+ #else
+-            wxFileName filename(::wxGetCwd(), "wx-console.conf");
++            wxFileName filename(CONFIG_DIR, "wx-console.conf");
+             filename.MakeAbsolute();
+             configfile = filename.GetLongPath();
+ #ifdef HAVE_WIN32
+--- bacula-1.36.1/configure.config	2004-11-18 23:14:02.000000000 +0100
++++ bacula-1.36.1/configure	2005-01-15 22:15:24.016535114 +0100
+@@ -20173,7 +20173,7 @@
+ s, at WCFLAGS@,$WCFLAGS,;t t
+ s, at WLDFLAGS@,$WLDFLAGS,;t t
+ s, at OBJLIST@,$OBJLIST,;t t
+-s, at hostname@,$hostname,;t t
++s, at hostname@,localhost,;t t
+ s, at TAPEDRIVE@,$TAPEDRIVE,;t t
+ s, at PSCMD@,$PSCMD,;t t
+ s, at WIN32@,$WIN32,;t t

Added: spec/mandriva/2006.0/bacula/bacula-1.36.1-pidfile.diff
URL: http://svn.erp5.org/spec/mandriva/2006.0/bacula/bacula-1.36.1-pidfile.diff?rev=7859&view=auto
==============================================================================
--- spec/mandriva/2006.0/bacula/bacula-1.36.1-pidfile.diff (added)
+++ spec/mandriva/2006.0/bacula/bacula-1.36.1-pidfile.diff Mon Jun 19 17:20:15 2006
@@ -1,0 +1,20 @@
+--- bacula-1.36.1/src/lib/bsys.c.pidfile	2004-10-13 18:10:09.000000000 +0200
++++ bacula-1.36.1/src/lib/bsys.c	2005-01-15 22:08:03.392918588 +0100
+@@ -310,7 +310,7 @@
+    POOLMEM *fname = get_pool_memory(PM_FNAME);
+    struct stat statp;
+ 
+-   Mmsg(&fname, "%s/%s.%d.pid", dir, progname, port);
++   Mmsg(&fname, "%s/%s.pid", dir, progname);
+    if (stat(fname, &statp) == 0) {
+       /* File exists, see what we have */
+       *pidbuf = 0;
+@@ -354,7 +354,7 @@
+       return 0;
+    }
+    del_pid_file_ok = FALSE;
+-   Mmsg(&fname, "%s/%s.%d.pid", dir, progname, port);
++   Mmsg(&fname, "%s/%s.pid", dir, progname);
+    unlink(fname);
+    free_pool_memory(fname);
+ #endif

Added: spec/mandriva/2006.0/bacula/bacula.spec
URL: http://svn.erp5.org/spec/mandriva/2006.0/bacula/bacula.spec?rev=7859&view=auto
==============================================================================
--- spec/mandriva/2006.0/bacula/bacula.spec (added)
+++ spec/mandriva/2006.0/bacula/bacula.spec Mon Jun 19 17:20:15 2006
@@ -1,0 +1,663 @@
+# compatability macros
+%{?!mkrel:%define mkrel(c:) %{-c:0.%{-c*}.}%{!?_with_unstable:%(perl -e '$_="%{1}";m/(.\*)(\\d+)$/;$rel=${2}-1;re;print "$1$rel";').%{?subrel:%subrel}%{!?subrel:1}.%{?distversion:%distversion}%{?!distversion:%(echo $[%{mdkversion}/10])}}%{?_with_unstable:%{1}}%{?distsuffix:%distsuffix}%{?!distsuffix:mdk}}
+
+%{?!_with_unstable: %{error:%(echo -e "\n\n\nYou are building package for a stable release, please see \nhttp://qa.mandrakesoft.com/twiki/bin/view/Main/DistroSpecificReleaseTag\nif you think this is incorrect\n\n\n ")}%(sleep 2)}
+
+%define name bacula
+%define version 1.36.2
+%define release %mkrel 2
+
+%define MYSQL 1
+%define PGSQL 0
+%define GNOME 0
+%define WXWINDOWS 0
+%define TCPW 1
+
+%{?_with_mysql: %{expand: %%global MYSQL 1}}
+%{?_without_mysql: %{expand: %%global MYSQL 0}}
+%{?_with_pgsql: %{expand: %%global PGSQL 1}}
+%{?_without_pgsql: %{expand: %%global PGSQL 0}}
+%{?_with_gnome: %{expand: %%global GNOME 1}}
+%{?_without_gnome: %{expand: %%global GNOME 0}}
+%{?_with_wx: %{expand: %%global WXWINDOWS 1}}
+%{?_without_wx: %{expand: %%global WXWINDOWS 0}}
+%{?_with_wrap: %{expand: %%global TCPW 1}}
+%{?_without_wrap: %{expand: %%global TCPW 0}}
+
+%if %{MYSQL} && %{PGSQL}
+%{error: You must specify only one database database support.}
+exit 1
+%endif
+
+%define blurb Bacula - It comes by night and sucks the vital essence from your computers.
+
+# fixes passwords in configuration files
+# removing "SubSys Directory" is needed if upgrading from 1.30a or lower
+%define post_fix_config() umask 0037; if [ -s %{_sysconfdir}/%{name}/.pw.sed ]; then for i in %{_sysconfdir}/%{name}/%{1}.conf %{_sysconfdir}/%{name}/%{1}.conf.rpmnew; do if [ -s $i ]; then sed -f %{_sysconfdir}/%{name}/.pw.sed $i > $i.tmp; sed -e '/SubSys[[:space:]]*Directory/I d' $i.tmp > $i; rm -f $i.tmp; fi; done; fi;
+
+Summary: Bacula - The Network Backup Solution
+Name:		%{name}
+Version:	%{version}
+Release:	%{release}
+Epoch:		1
+Group:		Archiving/Backup
+License:	GPL
+#Source:		http://prdownloads.sourceforge.net/bacula/%{name}-%{version}.tar.bz2
+Source:		%{name}-%{version}.tar.bz2
+Source1:	%{name}-icons.tar.bz2
+Source2:	%{name}-manpages.tar.bz2
+BuildRoot:	%{_tmppath}/%{name}-root
+URL:		http://www.bacula.org/
+BuildRequires: perl-base, zlib-devel
+%if %{TCPW}
+BuildRequires: tcp_wrappers-devel
+%endif
+Patch0:		bacula-1.36.1-config.diff.bz2
+Patch2:		bacula-1.36.1-pidfile.diff.bz2
+Patch3:		bacula-1.34-updatedb.diff.bz2
+
+%description
+%{blurb}
+Bacula is a set of computer programs that permit you (or the system
+administrator) to manage backup, recovery, and verification of computer
+data across a network of computers of different kinds. In technical terms,
+it is a network client/server based backup program. Bacula is relatively
+easy to use and efficient, while offering many advanced storage management
+features that make it easy to find and recover lost or damaged files.
+
+%package common
+Summary:	Common files for bacula package
+Group:		Archiving/Backup
+Prereq:		rpm-helper
+Conflicts:	bacula-dir < %epoch:%version-%release
+Conflicts:	bacula-fd < %epoch:%version-%release
+Conflicts:	bacula-sd < %epoch:%version-%release
+Conflicts:	bacula-console < %epoch:%version-%release
+Conflicts:	bacula-console-gnome < %epoch:%version-%release
+
+%description common
+%{blurb}
+Bacula is a set of computer programs that permit you (or the system
+administrator) to manage backup, recovery, and verification of computer
+data across a network of computers of different kinds. In technical terms,
+it is a network client/server based backup program. Bacula is relatively
+easy to use and efficient, while offering many advanced storage management
+features that make it easy to find and recover lost or damaged files.
+
+%package dir
+Summary:	Bacula Director and Catalog services
+Group:		Archiving/Backup
+Prereq:		rpm-helper, perl-base, sed
+Prereq:		bacula-common = %epoch:%version-%release
+%if %{MYSQL}
+Requires:	MySQL-client
+BuildRequires:	libmysql15-devel
+%else
+%if %{PGSQL}
+Requires:	postgresql
+BuildRequires:	postgresql-devel
+%else
+Requires:	sqlite-tools
+BuildRequires:	sqlite-devel
+%endif
+%endif
+
+%description dir
+%{blurb}
+Bacula Director is the program that supervises all the backup, restore, verify
+and archive operations. The system administrator uses the Bacula Director to
+schedule backups and to recover files.
+Catalog services are comprised of the software programs responsible for
+maintaining the file indexes and volume databases for all files backed up.
+The Catalog services permit the System Administrator or user to quickly locate
+and restore any desired file, since it maintains a record of all Volumes used,
+all Jobs run, and all Files saved.
+%if %{MYSQL}
+This build requires MySQL to be installed separately as the catalog database.
+%else
+This build requires sqlite to be installed separately as the catalog database.
+%endif
+
+%package console
+Summary:	Bacula Console
+Group:		Archiving/Backup
+Prereq:		sed
+Prereq:		bacula-common = %epoch:%version-%release
+BuildRequires:	termcap-devel
+Requires:	usermode-consoleonly
+
+%description console
+%{blurb}
+Bacula Console is the program that allows the administrator or user to
+communicate with the Bacula Director.
+This is the text only console interface.
+
+%if %{GNOME}
+%package console-gnome
+Summary:	Bacula Gnome Console
+Group:		Archiving/Backup
+BuildRequires: libgnomeui2-devel
+Prereq:		sed
+Prereq:		bacula-common = %epoch:%version-%release
+Requires:	usermode, usermode-consoleonly
+
+%description console-gnome
+%{blurb}
+Bacula Console is the program that allows the administrator or user to
+communicate with the Bacula Director.
+This is the GNOME GUI interface.
+%endif
+
+%if %{WXWINDOWS}
+%package console-wx
+Summary:	Bacula wxWindows Console
+Group:		Archiving/Backup
+%if %{mdkversion} >= 1020
+BuildRequires:	wxGTK2.5-devel
+%else
+BuildRequires:	wxGTK2.4-devel
+%endif
+Prereq:		sed
+Prereq:		bacula-common = %epoch:%version-%release
+Requires:	usermode, usermode-consoleonly
+
+%description console-wx
+%{blurb}
+Bacula Console is the program that allows the administrator or user to
+communicate with the Bacula Director.
+This is the wxWindows GUI interface.
+%endif
+
+%package fd
+Summary:	Bacula File services (Client)
+Group:		Archiving/Backup
+Prereq:		rpm-helper, sed
+Prereq:		bacula-common = %epoch:%version-%release
+
+%description fd
+%{blurb}
+Bacula File services (or Client program) is the software program that is
+installed on the machine to be backed up. It is specific to the operating
+system on which it runs and is responsible for providing the file attributes
+and data when requested by the Director. The File services are also responsible
+for the file system dependent part of restoring the file attributes and data
+during a recovery operation.
+This program runs as a daemon on the machine to be backed up, and in some of
+the documentation, the File daemon is referred to as the Client (for example in
+Bacula configuration file). 
+
+%package sd
+Summary:	Bacula Storage services
+Group:		Archiving/Backup
+Prereq:		rpm-helper, sed
+Prereq:		bacula-common = %epoch:%version-%release
+
+%description sd
+%{blurb}
+Bacula Storage services consist of the software programs that perform the
+storage and recovery of the file attributes and data to the physical backup
+media or volumes. In other words, the Storage daemon is responsible for reading
+and writing your tapes (or other storage media, e.g. files).
+The Storage services runs as a daemon on the machine that has the backup
+device (usually a tape drive).
+
+%prep
+%setup -q
+%patch0 -p1 -b .config
+%patch2 -p1 -b .pidfile
+%patch3 -p1 -b .updatedb
+mkdir doc/manual
+mv doc/html-manual/*.html doc/manual
+mv doc/html-manual/*.css doc/manual
+mv doc/html-manual/*.gif doc/manual
+
+%build
+%serverbuild
+%configure \
+	--enable-smartalloc \
+%if %{MYSQL}
+	--with-mysql \
+%else
+%if %{PGSQL}
+	--with-postgresql \
+%else
+   	--with-sqlite \
+%endif
+%endif
+%if %{GNOME}
+	--enable-gnome \
+%endif
+%if %{WXWINDOWS}
+	--enable-wx-console \
+%endif
+%if %{TCPW}
+	--with-tcp-wrappers \
+%endif
+	--sysconfdir=%{_sysconfdir}/%{name} \
+	--with-scriptdir=%{_libexecdir}/%{name} \
+	--with-working-dir=%{_localstatedir}/%{name} \
+	--with-subsys-dir=/var/lock/subsys \
+	--with-dir-password="#FAKE#DIR#PASSWORD#" \
+	--with-fd-password="#FAKE#FD#PASSWORD#" \
+	--with-sd-password="#FAKE#SD#PASSWORD#"
+
+%make
+
+%install
+rm -rf %{buildroot}
+%makeinstall sysconfdir=%{buildroot}%{_sysconfdir}/%{name} scriptdir=%{buildroot}%{_libexecdir}/%{name} working_dir=%{buildroot}%{_localstatedir}/%{name}
+
+# install the upgrade scripts
+%if %{MYSQL}
+install -m 755 updatedb/update_mysql_tables_?_to_? %{buildroot}%{_libexecdir}/%{name}
+%else
+%if %{PGSQL}
+install -m 755 updatedb/update_postgresql_tables_?_to_? %{buildroot}%{_libexecdir}/%{name}
+%else
+install -m 755 updatedb/update_sqlite_tables_?_to_? %{buildroot}%{_libexecdir}/%{name}
+%endif
+%endif
+
+# install the init scripts
+mkdir -p %{buildroot}%{_initrddir}
+install -m 755 platforms/mandrake/bacula-dir %{buildroot}%{_initrddir}/bacula-dir
+install -m 755 platforms/mandrake/bacula-fd %{buildroot}%{_initrddir}/bacula-fd
+install -m 755 platforms/mandrake/bacula-sd %{buildroot}%{_initrddir}/bacula-sd
+
+# install the logrotate file
+mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
+cp scripts/logrotate %{buildroot}%{_sysconfdir}/logrotate.d/bacula-dir
+
+mkdir -p %{buildroot}%{_localstatedir}/%{name}
+
+mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
+mkdir -p %{buildroot}%{_sysconfdir}/pam.d
+mkdir -p %{buildroot}%{_bindir}
+
+cat << EOF > %{buildroot}%{_sysconfdir}/security/console.apps/bconsole
+USER=root
+PROGRAM=%{_sbindir}/bconsole
+SESSION=true
+EOF
+cp -p scripts/gnome-console.pamd %{buildroot}%{_sysconfdir}/pam.d/bconsole
+ln -s consolehelper %{buildroot}%{_bindir}/bconsole
+
+# install the man pages
+mkdir -p %{buildroot}%{_mandir}
+tar jxvf %{SOURCE2} -C %{buildroot}%{_mandir}
+
+# install the menu stuff
+%if %{GNOME} || %{WXWINDOWS}
+mkdir -p %{buildroot}%{_menudir}
+mkdir -p %{buildroot}%{_iconsdir}
+tar jxvf %{SOURCE1} -C %{buildroot}%{_iconsdir}
+%endif
+%if %{GNOME}
+cat << EOF > %{buildroot}%{_menudir}/%{name}-console-gnome
+?package(%{name}-console-gnome): command="%{_bindir}/gnome-console" icon="%{name}.png" needs="x11" title="Bacula Console (gnome)" longtitle="Bacula Director Console" section="System/Archiving/Backup"
+EOF
+cat << EOF > %{buildroot}%{_sysconfdir}/security/console.apps/gnome-console
+USER=root
+PROGRAM=%{_sbindir}/gnome-console
+SESSION=true
+EOF
+cp -p scripts/gnome-console.pamd %{buildroot}%{_sysconfdir}/pam.d/gnome-console
+ln -s consolehelper %{buildroot}%{_bindir}/gnome-console
+%endif
+%if %{WXWINDOWS}
+cat << EOF > %{buildroot}%{_menudir}/%{name}-console-wx
+?package(%{name}-console-wx): command="%{_bindir}/wx-console" icon="%{name}.png" needs="x11" title="Bacula Console (wxWindows)" longtitle="Bacula Director Console" section="System/Archiving/Backup"
+EOF
+cat << EOF > %{buildroot}%{_sysconfdir}/security/console.apps/wx-console
+USER=root
+PROGRAM=%{_sbindir}/wx-console
+SESSION=true
+EOF
+cp -p scripts/gnome-console.pamd %{buildroot}%{_sysconfdir}/pam.d/wx-console
+ln -s consolehelper %{buildroot}%{_bindir}/wx-console
+# we need to install the program files as well
+#install -m 755 src/wx-console/wx-console %{buildroot}%{_sbindir}
+#cp -p src/console/bconsole.conf %{buildroot}%{_sysconfdir}/%{name}/wx-console.conf
+%endif
+
+perl -spi -e 's/"#FAKE#(\w+)#PASSWORD#"/#YOU MUST SET THE $1 PASSWORD#/' %{buildroot}%{_sysconfdir}/%{name}/*.conf
+touch %{buildroot}%{_sysconfdir}/%{name}/.pw.sed
+
+%clean
+rm -rf %{buildroot}
+
+%files common
+%defattr(644, root, root, 755)
+%dir %{_sysconfdir}/%{name}
+%attr(755, root, root) %{_sbindir}/btraceback
+%attr(755, root, root) %{_sbindir}/bsmtp
+%dir %{_libexecdir}/%{name}
+%{_libexecdir}/%{name}/btraceback.gdb
+%attr(700, bacula, bacula) %dir %{_localstatedir}/%{name}
+
+%pre common
+%_pre_useradd bacula %{_localstatedir}/%{name} /bin/false
+#__pre_groupadd TAPE_GROUP bacula
+
+%postun common
+%_postun_userdel bacula
+
+%files dir
+%defattr(644, root, root, 755)
+%doc ChangeLog CheckList ReleaseNotes kernstodo
+%doc doc/*.pdf doc/manual examples
+%attr(600, root, root) %config(noreplace) %{_sysconfdir}/%{name}/bacula-dir.conf
+%ghost %{_sysconfdir}/%{name}/.pw.sed
+%config(noreplace) %{_sysconfdir}/logrotate.d/bacula-dir
+%{_mandir}/man8/bacula-dir.8*
+%{_mandir}/man1/dbcheck.1*
+%defattr (755, root, root)
+%config(noreplace) %{_initrddir}/bacula-dir
+%{_sbindir}/bacula-dir
+%{_sbindir}/dbcheck
+%if %{MYSQL}
+%{_libexecdir}/%{name}/create_mysql_database
+%{_libexecdir}/%{name}/drop_mysql_database
+%{_libexecdir}/%{name}/drop_mysql_tables
+%{_libexecdir}/%{name}/grant_mysql_privileges
+%{_libexecdir}/%{name}/make_mysql_tables
+%{_libexecdir}/%{name}/update_mysql_tables*
+%else
+%if %{PGSQL}
+%{_libexecdir}/%{name}/create_postgresql_database
+%{_libexecdir}/%{name}/drop_postgresql_database
+%{_libexecdir}/%{name}/grant_postgresql_privileges
+%{_libexecdir}/%{name}/make_postgresql_tables
+%{_libexecdir}/%{name}/drop_postgresql_tables
+%{_libexecdir}/%{name}/update_postgresql_tables*
+%else
+%{_libexecdir}/%{name}/create_sqlite_database
+%{_libexecdir}/%{name}/drop_sqlite_database
+%{_libexecdir}/%{name}/drop_sqlite_tables
+%{_libexecdir}/%{name}/grant_sqlite_privileges
+%{_libexecdir}/%{name}/make_sqlite_tables
+%{_libexecdir}/%{name}/update_sqlite_tables*
+%endif
+%endif
+%{_libexecdir}/%{name}/create_bacula_database
+%{_libexecdir}/%{name}/drop_bacula_database
+%{_libexecdir}/%{name}/drop_bacula_tables
+%{_libexecdir}/%{name}/grant_bacula_privileges
+%{_libexecdir}/%{name}/make_bacula_tables
+%{_libexecdir}/%{name}/update_bacula_tables
+%{_libexecdir}/%{name}/make_catalog_backup
+%{_libexecdir}/%{name}/delete_catalog_backup
+%attr(644, root, root) %{_libexecdir}/%{name}/query.sql
+%if ! %{GNOME}
+%exclude %{_mandir}/man1/gnome-console.1*
+%endif
+%if ! %{WXWINDOWS}
+%exclude %{_mandir}/man1/wx-console.1*
+%endif
+
+%pre dir
+/usr/bin/perl -e '
+exit 0 if ( -f "%{_sysconfdir}/%{name}/.pw.sed");
+mkdir("%{_sysconfdir}/%{name}");
+umask(0077);
+open(IN, "/dev/random") or die "$!";
+open(OUT, ">%{_sysconfdir}/%{name}/.pw.sed") or die "$!";
+foreach $c ("DIR","SD","FD") {
+read(IN, $buf, 32);
+my $res = pack("u", $buf);
+$res =~ s/^.//mg;
+$res =~ s/\n//g;
+$res =~ tr|` -_|AA-Za-z0-9+/|;
+	print OUT "s!#YOU MUST SET THE $c PASSWORD#!\"$res\"!\n";
+}
+close (IN);
+close (OUT);
+'
+
+%post dir
+umask 077
+%if %{MYSQL}
+# NOTE: IF THIS FAILS DUE TO MYSQL/PGSQL NEEDING A PASSWORD YOU ARE ON YOUR OWN
+DB_VER=`mysql bacula -e 'select * from Version;' | tail -n 1 2>/dev/null`
+%else
+%if %{PGSQL}
+DB_VER=`psql bacula -c 'select * from Version;' | tail -n 1 2>/dev/null`
+%else
+[ -s %{_localstatedir}/%{name}/bacula.db ] && \
+	DB_VER=`echo "select * from Version;" | \
+		sqlite %{_localstatedir}/%{name}/bacula.db | tail -n 1 2>/dev/null`
+%endif
+%endif
+if [ -z "$DB_VER" ]; then
+# grant privileges and create tables
+	%{_libexecdir}/%{name}/grant_bacula_privileges > dev/null
+	%{_libexecdir}/%{name}/create_bacula_database > dev/null
+	%{_libexecdir}/%{name}/make_bacula_tables > dev/null
+elif [ "$DB_VER" -lt "8" ]; then
+	echo "Backing up bacula tables"
+%if %{MYSQL}
+	mysqldump -f --opt bacula | bzip2 > %{_localstatedir}/%{name}/bacula_backup.sql.bz2
+	type=mysql
+%else
+%if %{PGSQL}
+	exit -1
+%else
+	echo ".dump" | sqlite %{_localstatedir}/%{name}/bacula.db | bzip2 > %{_localstatedir}/%{name}/bacula_backup.sql.bz2
+	type=sqlite
+%endif
+%endif
+	echo "Upgrading bacula tables"
+	if [ "$DB_VER" -lt "7" ]; then
+		if [ "$DB_VER" -lt "6" ]; then
+			if [ "$DB_VER" -lt "5" ]; then
+				%{_libexecdir}/%{name}/update_${type}_tables_4_to_5
+			fi
+			%{_libexecdir}/%{name}/update_${type}_tables_5_to_6
+		fi
+		%{_libexecdir}/%{name}/update_${type}_tables_6_to_7
+	fi
+	%{_libexecdir}/%{name}/update_bacula_tables
+	echo "If bacula works correctly you can remove the backup file %{_localstatedir}/%{name}/bacula_backup.sql.bz2"
+fi
+chown -R bacula:bacula %{_localstatedir}/%{name}
+chmod -R u+rX,go-rwx %{_localstatedir}/%{name}
+%post_fix_config *
+%_post_service bacula-dir
+
+%preun dir
+%_preun_service bacula-dir
+
+%files fd
+%defattr(755, root, root)
+%attr(600, root, root) %config(noreplace) %{_sysconfdir}/%{name}/bacula-fd.conf
+%config(noreplace) %{_initrddir}/bacula-fd
+%{_sbindir}/bacula-fd
+%attr(644, root, root) %{_mandir}/man8/bacula-fd.8*
+
+%post fd
+%post_fix_config bacula-fd
+%_post_service bacula-fd
+
+%preun fd
+%_preun_service bacula-fd
+
+%files sd
+%defattr(755, root, root)
+%dir %{_sysconfdir}/%{name}
+%attr(600, root, root) %config(noreplace) %{_sysconfdir}/%{name}/bacula-sd.conf
+%config(noreplace) %{_initrddir}/bacula-sd
+%{_sbindir}/bacula-sd
+%{_sbindir}/bcopy
+%{_sbindir}/bextract
+%{_sbindir}/bls
+%{_sbindir}/bscan
+%{_sbindir}/btape
+%{_libexecdir}/%{name}/mtx-changer
+%defattr(644, root,root, 755)
+%{_mandir}/man8/bacula-sd.8*
+%{_mandir}/man1/bcopy.1*
+%{_mandir}/man1/bextract.1*
+%{_mandir}/man1/bls.1*
+%{_mandir}/man1/bscan.1*
+%{_mandir}/man1/btape.1*
+
+%post sd
+%post_fix_config bacula-sd
+%_post_service bacula-sd
+
+%preun sd
+%_preun_service bacula-sd
+
+%files console
+%defattr(644, root, root, 755)
+%attr(600, root, root) %config(noreplace) %{_sysconfdir}/%{name}/bconsole.conf
+%attr(755, root, root) %{_sbindir}/bconsole
+%config(noreplace) %{_sysconfdir}/security/console.apps/bconsole
+%config(noreplace) %{_sysconfdir}/pam.d/bconsole
+%verify(link) %{_bindir}/bconsole
+%{_mandir}/man1/bconsole.1*
+
+%pre console
+if [ -e %{_sysconfdir}/%{name}/console.conf -a ! -e %{_sysconfdir}/%{name}/bconsole.conf ]; then
+	mv %{_sysconfdir}/%{name}/console.conf %{_sysconfdir}/%{name}/bconsole.conf
+fi
+
+%post console
+%post_fix_config bconsole
+
+%if %{GNOME}
+%files console-gnome
+%defattr(644, root, root, 755)
+%{_iconsdir}/%{name}.png
+%{_miconsdir}/%{name}.png
+%{_liconsdir}/%{name}.png
+%{_menudir}/bacula-console-gnome
+%attr(600, root, root) %config(noreplace) %{_sysconfdir}/%{name}/gnome-console.conf
+%attr(755, root, root) %{_sbindir}/gnome-console
+%config(noreplace) %{_sysconfdir}/security/console.apps/gnome-console
+%config(noreplace) %{_sysconfdir}/pam.d/gnome-console
+%verify(link) %{_bindir}/gnome-console
+%{_mandir}/man1/gnome-console.1*
+
+%post console-gnome
+%post_fix_config gnome-console
+%update_menus
+		
+%postun console-gnome
+%clean_menus
+
+%endif
+
+%if %{WXWINDOWS}
+%files console-wx
+%defattr(644, root, root, 755)
+%{_iconsdir}/%{name}.png
+%{_miconsdir}/%{name}.png
+%{_liconsdir}/%{name}.png
+%{_menudir}/bacula-console-wx
+%attr(600, root, root) %config(noreplace) %{_sysconfdir}/%{name}/wx-console.conf
+%attr(755, root, root) %{_sbindir}/wx-console
+%config(noreplace) %{_sysconfdir}/security/console.apps/wx-console
+%config(noreplace) %{_sysconfdir}/pam.d/wx-console
+%verify(link) %{_bindir}/wx-console
+%{_mandir}/man1/wx-console.1*
+
+%post console-wx
+%post_fix_config wx-console
+%update_menus
+		
+%postun console-wx
+%clean_menus
+
+%endif
+
+%changelog
+* Thu Mar 23 2006 Christophe Dumez <christophe at nexedi.com> 1.36.2-2mdk
+- added MySQL5 support
+- removed gnome & WX support
+
+* Fri Mar 18 2005 Luca Berra <bluca at vodka.it> 1.36.2-1mdk
+- 1.36.2
+
+* Sat Jan 15 2005 Luca Berra <bluca at vodka.it> 1.36.1-1mdk 
+- 1.36.1
+- use distro specific release tags
+- rediff p0, p1
+- fix non existent macro %%elsf (Pascal Cavy)
+- do not require MySQL server but MySQL-client (Pascal Cavy)
+- require postgresql
+- use wxGTK2.5
+
+* Sun Jun 27 2004 Luca Berra <bluca at vodka.it> 1.34.5-1mdk 
+- 1.34.5
+- added manpages (stolen from debian package)
+
+* Mon Jun 21 2004 Luca Berra <bluca at vodka.it> 1.34.4-1mdk 
+- 1.34.4
+- switched back to wxWindows-2.4
+
+* Fri Jun 04 2004 Luca Berra <bluca at vodka.it> 1.34.3-0.cvs.20040604mdk 
+- 1.34.2 cvs
+
+* Tue Apr 27 2004 Luca Berra <bluca at vodka.it> 1.34.2-1mdk 
+- 1.34.2 release
+- dropped p4, p5
+
+* Sat Apr 24 2004 Luca Berra <bluca at vodka.it> 1.34.1-1 
+- 1.34.1 release
+- bscan fix from cvs
+
+* Sun Apr 18 2004 Luca Berra <bluca at vodka.it> 1.34.1-0.cvs.20040418mdk 
+- update to 1.34.1 from cvs
+- rediffed p0, p2 added p3
+- readline is not used anymore, so remove p1
+- termcap-devel BuildRequires for console
+- console binary was renamed to bconsole
+- tools can be run with usermode consolehelper
+- reworked db update logic
+- added wxWindows gui
+
+* Thu Feb 26 2004 Luca Berra <bluca at vodka.it> 1.32f-2mdk 
+- added patches 1 to 4 from upstream
+- split bacula-common package to ease upgrades
+- some cleanups
+- use epochs in requires
+
+* Thu Jan 01 2004 Luca Berra <bluca at vodka.it> 1.32f-1mdk
+- 1.32f
+- revert .rpmnew change (it was not working anyway)
+- DIRM: include directory %%{_sysconfig}/%%{name}
+- use a macro to change passwords in config files in %%post
+- removed subdir creation in %%setup
+- added prereq sed to dir package
+- changed default user for dir and sd daemons
+- changed name of pid files, so killproc finds them
+- more conflicts
+
+* Tue Nov 04 2003 Luca Berra <bluca at vodka.it> 1.32d-1mdk
+- 1.32d
+- use gnome2 for console
+- use tcp_wrappers
+- try not to create unneeded .rpmnew in configuration
+
+* Fri Aug 12 2003 Luca Berra <bluca at vodka.it> 1.31a-1mdk
+- 1.31a
+- modified %%post script to upgrade database if needed and do not try to create if it already exists.
+- %%post_service should be last in %%post script
+- changed sql upgrade script to remove multiple Version rows introduced by %%post
+- trying to create the tables multiple times in previous releases.
+- smtp is required by btraceback which is required by every daemon.
+- added conflicts for lower version
+
+* Wed Aug  6 2003 Luca Berra <bluca at vodka.it> 1.30a-3mdk
+- changed sqlite requires to match package in contrib
+- set passwords for single components to produce an error until user changes them
+- try to change passwords automatically if dir package is installed
+
+* Sun Aug  3 2003 Luca Berra <bluca at vodka.it> 1.30a-2mdk
+- many spec changes
+- almost please rpmlint
+- fixed readline eats last message bug in console
+
+* Fri Aug  1 2003 Luca Berra <bluca at vodka.it> 1.30a-1mdk
+- Initial spec file from spec by D. Scott Barninger <barninger at fairfieldcomputers.com>




More information about the Erp5-report mailing list