pkgsrc-wip/bacula/Makefile
Sergey Svishchev 5c0ccc8b69 Summary of changes from 1.34.6 to 1.36.2 released 28Feb05:
- Fix seg fault if debug level 900 set in SD.
- Fix deadlock in multiple simultaneous jobs.
- Add a number of new features from 1.37, and apply fixes
  for all known bugs. See ReleaseNotes for details.
- Fix mutex deadlock in dequeue of messages.
- Correct crash after "list nextvol" "list media" bug 160
- Fix Seg Fault with -D100 in bpipe.c.
- Fix Seg Fault in run specifying a JobId.
- Add patch to force Linux LD_ASSUME_KERNEL to avoid using the
  new /lib/tls. This is done in the startup scripts.
- Fix segfault in lsmark command in restore tree.
- Fix segfault in editing numbers in count command of restore tree.
- Fix bug where SD crashes on label if drive is not open
  (i.e. Always Open = no).
- Added "Rerun Failed Levels = yes/no"
- Attempt to fix Solaris crash in SD during status command.
- Fix Win32 so that it can backup files that are opened by programs
  such as Word (certain open system files cannot be backed up).
- Fix initialization and copying of the storage resource when
  starting jobs (and in jobq.c when restarting). In some cases
  jcr->store was not set causing a segfault -- bug 116
- Incremented the release number because this version requires
  an update to the database.
  Use:
    cd src/cats
    ./update_bacula_tables
  to update an existing database.
- Integrate Phil Stracchino's code (thanks for Matt's help).
  It permits lists and ranges of jobids on the delete as in:
  delete job jobid=1,3,5,11-16
- Added Ignore FileSet Changes = yes
- Fixed a mutex deadlock between the job queue scheduler and the
  watchdog.
- If block header is destroyed, read the next block. Probably
  should return with new status similar to the SHORT block
  return.
- Correct a crash reported (with patch) by Jonathan Soong
  when attempting to backup an ACL on a symlinked file.
- Modify spooling code to handle write error (e.g. spooling disk full)
  more gracefully. Previously despooling would fail.
- Correct socket close on Win32 in bnet.c (in addition to compat.cpp).
  Caused fd leak in Win32 for each connection.
- Close socket in SD when connection rejected. Caused fd leaks.
2005-08-23 20:08:41 +00:00

91 lines
2.8 KiB
Makefile

# $NetBSD: Makefile,v 1.13 2005/08/23 20:08:41 shattered Exp $
#
DISTNAME= bacula-1.36.2
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bacula/}
MAINTAINER= shattered@users.sourceforge.net
HOMEPAGE= http://www.bacula.org/
COMMENT= Network Backup Solution
USE_PKGLOCALEDIR= yes
USE_PKGINSTALL= yes
GNU_CONFIGURE= yes
PKG_SYSCONFSUBDIR?= bacula
BACULA_PIDDIR?= ${VARBASE}/run
BACULA_WORKINGDIR?= ${VARBASE}/spool/bacula
BACULA_GROUP?= bacula
BACULA_DIR_USER?= bacula-dir
BACULA_SD_USER?= bacula-sd
BACULA_DB?= sqlite
.include "../../mk/bsd.prefs.mk"
OWN_DIRS_PERMS= ${BACULA_PIDDIR} root ${BACULA_GROUP} 770
OWN_DIRS_PERMS+= ${BACULA_WORKINGDIR} root ${BACULA_GROUP} 770
FILES_SUBST+= BACULA_ETCDIR=${PKG_SYSCONFDIR}
FILES_SUBST+= BACULA_PIDDIR=${BACULA_PIDDIR}
FILES_SUBST+= BACULA_GROUP=${BACULA_GROUP}
FILES_SUBST+= BACULA_DIR_USER=${BACULA_DIR_USER}
FILES_SUBST+= BACULA_SD_USER=${BACULA_SD_USER}
CONFIGURE_ARGS+= --with-sbin-perm=0755
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-scriptdir=${PREFIX}/libexec/bacula
CONFIGURE_ARGS+= --with-working-dir=${BACULA_WORKINGDIR}
CONFIGURE_ARGS+= --with-pid-dir=${BACULA_PIDDIR}
CONFIGURE_ARGS+= --with-readline=${PREFIX}/include/readline
CONFIGURE_ARGS+= --with-dir-user=${BACULA_DIR_USER} \
--with-dir-group=${BACULA_GROUP}
CONFIGURE_ARGS+= --with-sd-user=${BACULA_SD_USER} \
--with-sd-group=${BACULA_GROUP}
CONFIGURE_ARGS+= --with-tcp-wrappers=${PREFIX}
.if ${BACULA_DB} == "sqlite"
CONFIGURE_ARGS+= --with-sqlite=${PREFIX}
.endif
.if defined(BACULA_STATIC) && ${BACULA_STATIC} == "YES"
CONFIGURE_ARGS+= --enable-static-tools --enable-static-fd --enable-static-sd
CONFIGURE_ARGS+= --enable-static-dir --enable-static-cons
PLIST_SUBST+= BACULA_STATIC=""
.else
PLIST_SUBST+= BACULA_STATIC="@comment "
.endif
.if ${OPSYS} == "Linux"
CONFIGURE_ARGS+= --enable-smartalloc
.endif
PTHREAD_OPTS+= require
BUILD_DEFS= BACULA_DIR_USER BACULA_SD_USER BACULA_GROUP BACULA_DB
BUILD_DEFS+= BACULA_ETCDIR BACULA_PIDDIR
PKG_GROUPS= ${BACULA_GROUP}
PKG_USERS= ${BACULA_DIR_USER}:${BACULA_GROUP}
PKG_USERS+= ${BACULA_SD_USER}:${BACULA_GROUP}
PLIST_SUBST+= BACULA_DB=${BACULA_DB}
EXAMPLESDIR= ${PREFIX}/share/examples/bacula
CONF_FILES= ${EXAMPLESDIR}/bacula-dir.conf \
${PKG_SYSCONFDIR}/bacula-dir.conf
CONF_FILES+= ${EXAMPLESDIR}/bacula-fd.conf ${PKG_SYSCONFDIR}/bacula-fd.conf
CONF_FILES+= ${EXAMPLESDIR}/bacula-sd.conf ${PKG_SYSCONFDIR}/bacula-sd.conf
CONF_FILES+= ${EXAMPLESDIR}/bconsole.conf ${PKG_SYSCONFDIR}/bconsole.conf
RCD_SCRIPTS= bacula bacula-dir bacula-sd bacula-fd
pre-install:
${MKDIR} ${EXAMPLESDIR}
.if ${BACULA_DB} == "sqlite"
. include "../../databases/sqlite/buildlink3.mk"
.endif
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"