editted bat.pro instead of bat.pro.in and it was lost.
kes Apply CentOS patches someone sent me. Checks for /var/run/subsys,
the /var/lock/subsys for subsysdir. Also corrects typos in the
doc.
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4655
91ce42f0-d328-0410-95d8-
f526ca767f89
# ------------------------------------
# Where to place subsys "lock file"
# ------------------------------------
-subsysdir=/var/run/subsys
+ubsysdir=/var/run/subsys
+if test -d /var/run/subsys; then
+ subsysdir=/var/run/subsys
+elif test -d /var/lock/subsys; then
+ subsysdir=/var/lock/subsys
+else
+ subsysdir=/var/run/subsys
+fi
AC_ARG_WITH(subsys-dir,
[ --with-subsys-dir=PATH specify location of Bacula subsys file],
[
# ------------------------------------
# Where to place subsys "lock file"
# ------------------------------------
-subsysdir=/var/run/subsys
+ubsysdir=/var/run/subsys
+if test -d /var/run/subsys; then
+ subsysdir=/var/run/subsys
+elif test -d /var/lock/subsys; then
+ subsysdir=/var/lock/subsys
+else
+ subsysdir=/var/run/subsys
+fi
# Check whether --with-subsys-dir was given.
if test "${with_subsys_dir+set}" = set; then
char ec1[50], ec2[50];
fsize = blseek(ofd, 0, SEEK_END);
bclose(ofd); /* first close file */
- if (attr->type == FT_REG && fsize > 0 && fsize != (boffset_t)attr->statp.st_size) {
+ if (attr->type == FT_REG && fsize > 0 && attr->statp.st_size > 0 &&
+ fsize != (boffset_t)attr->statp.st_size) {
Jmsg3(jcr, M_ERROR, 0, _("File size of restored file %s not correct. Original %s, restored %s.\n"),
attr->ofname, edit_uint64(attr->statp.st_size, ec1),
edit_uint64(fsize, ec2));
-/*
- * Lexical scanner for Bacula configuration file
- *
- * Kern Sibbald, 2000
- *
- * Version $Id$
- *
- */
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2000-2006 Free Software Foundation Europe e.V.
+ Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
(FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
Switzerland, email:ftf@fsfeurope.org.
*/
+/*
+ * Lexical scanner for Bacula configuration file
+ *
+ * Kern Sibbald, 2000
+ *
+ * Version $Id$
+ *
+ */
#include "bacula.h"
#include "lex.h"
bins.path = /$(DESTDIR)@sbindir@
bins.files = ./bat
confs.path = /$(DESTDIR)@sysconfdir@
-confs.files = ./bat.conf
+confs.commands = ./install_conf_file
TEMPLATE = app
TARGET = bat
Technical notes on version 2.1
General:
+29Apr07
+kes Reapply my bat.conf install script in qt-console. I think I
+ editted bat.pro instead of bat.pro.in and it was lost.
+kes Apply CentOS patches someone sent me. Checks for /var/run/subsys,
+ the /var/lock/subsys for subsysdir. Also corrects typos in the
+ doc.
28Apr07
kes First cut update job.
kes Correct configure to include qmake of src/qt-console directory.