pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/bacula Initial import of bacula 1.36.0, based...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6a4a59e8cae7
branches: trunk
changeset: 483038:6a4a59e8cae7
user: mjl <mjl%pkgsrc.org@localhost>
date: Sat Nov 06 16:17:38 2004 +0000
description:
Initial import of bacula 1.36.0, based on the older version in
pkgsrc-wip.
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. Bacula source
code has been released under the GPL version 2 license.
To Do: Split client/server package, add a frontend (gnome) package.
diffstat:
sysutils/bacula/DESCR | 7 +++
sysutils/bacula/Makefile | 3 +
sysutils/bacula/Makefile.common | 86 +++++++++++++++++++++++++++++++++++++
sysutils/bacula/Makefile.options | 22 +++++++++
sysutils/bacula/PLIST | 42 ++++++++++++++++++
sysutils/bacula/distinfo | 8 +++
sysutils/bacula/files/bacula-dir.sh | 23 +++++++++
sysutils/bacula/files/bacula-fd.sh | 23 +++++++++
sysutils/bacula/files/bacula-sd.sh | 23 +++++++++
sysutils/bacula/files/bacula.sh | 52 ++++++++++++++++++++++
sysutils/bacula/patches/patch-aa | 22 +++++++++
sysutils/bacula/patches/patch-ac | 29 ++++++++++++
sysutils/bacula/patches/patch-ae | 22 +++++++++
sysutils/bacula/patches/patch-af | 22 +++++++++
14 files changed, 384 insertions(+), 0 deletions(-)
diffs (truncated from 440 to 300 lines):
diff -r a0ff102d834d -r 6a4a59e8cae7 sysutils/bacula/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/bacula/DESCR Sat Nov 06 16:17:38 2004 +0000
@@ -0,0 +1,7 @@
+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. Bacula source
+code has been released under the GPL version 2 license.
diff -r a0ff102d834d -r 6a4a59e8cae7 sysutils/bacula/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/bacula/Makefile Sat Nov 06 16:17:38 2004 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/11/06 16:17:38 mjl Exp $
+
+.include "Makefile.common"
diff -r a0ff102d834d -r 6a4a59e8cae7 sysutils/bacula/Makefile.common
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/bacula/Makefile.common Sat Nov 06 16:17:38 2004 +0000
@@ -0,0 +1,86 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2004/11/06 16:17:38 mjl Exp $
+#
+
+DISTNAME= bacula-1.36.0
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bacula/}
+
+MAINTAINER= mjl%netbsd.org@localhost
+HOMEPAGE= http://www.bacula.org/
+COMMENT= Network Backup Solution
+
+.include "Makefile.options"
+
+USE_BUILDLINK3= yes
+USE_PKGLOCALEDIR= yes
+USE_PKGINSTALL= yes
+GNU_CONFIGURE= yes
+
+PKG_SYSCONFSUBDIR?= bacula
+BACULA_PIDDIR?= /var/run/bacula
+BACULA_WORKINGDIR?= /var/spool/bacula
+BACULA_GROUP?= bacula
+BACULA_DIR_USER?= bacula-dir
+BACULA_SD_USER?= bacula-sd
+
+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+= --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}
+.if !empty(PKG_OPTIONS:Mcatalog-sqlite)
+CONFIGURE_ARGS+= --with-sqlite=${PREFIX}
+BACULA_DB= sqlite
+.endif
+.if !empty(PKG_OPTIONS:Mcatalog-pgsql)
+CONFIGURE_ARGS+= -with-postgresql=${PREFIX}
+BACULA_DB= postgresql
+.endif
+
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "Linux"
+CONFIGURE_ARGS+= --enable-smartalloc
+.endif
+
+PTHREAD_OPTS+= require
+
+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 !empty(PKG_OPTIONS:Mcatalog-sqlite)
+.include "../../databases/sqlite/buildlink3.mk"
+.endif
+.if !empty(PKG_OPTIONS:Mcatalog-pgsql)
+.include "../../databases/postgresql74-lib/buildlink3.mk"
+.endif
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/tcp_wrappers/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.install.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r a0ff102d834d -r 6a4a59e8cae7 sysutils/bacula/Makefile.options
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/bacula/Makefile.options Sat Nov 06 16:17:38 2004 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile.options,v 1.1.1.1 2004/11/06 16:17:38 mjl Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.bacula
+PKG_SUPPORTED_OPTIONS= catalog-sqlite catalog-pgsql
+PKG_DEFAULT_OPTIONS?= catalog-sqlite
+
+.include "../../mk/bsd.options.mk"
+
+# Too bad -1-6's make doesn't have :[#] modifier
+.for _option_ in catalog
+. if empty(PKG_OPTIONS:M${_option_}-*)
+PKG_FAIL_REASON+= "There must one and only one ${_option_} defined."
+. endif
+.endfor
+
+# Other options
+
+BACULA_GROUP?= bacula
+BACULA_DIR_USER?= bacula-dir
+BACULA_SD_USER?= bacula-sd
+
+BUILD_DEFS= BACULA_DIR_USER BACULA_SD_USER BACULA_GROUP
diff -r a0ff102d834d -r 6a4a59e8cae7 sysutils/bacula/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/bacula/PLIST Sat Nov 06 16:17:38 2004 +0000
@@ -0,0 +1,42 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/06 16:17:38 mjl Exp $
+share/examples/bacula/bacula-dir.conf
+share/examples/bacula/bacula-fd.conf
+share/examples/bacula/bacula-sd.conf
+share/examples/bacula/bconsole.conf
+libexec/bacula/query.sql
+libexec/bacula/bacula
+libexec/bacula/bconsole
+libexec/bacula/btraceback.gdb
+libexec/bacula/btraceback.dbx
+libexec/bacula/create_${BACULA_DB}_database
+libexec/bacula/create_bacula_database
+libexec/bacula/delete_catalog_backup
+libexec/bacula/drop_${BACULA_DB}_database
+libexec/bacula/drop_${BACULA_DB}_tables
+libexec/bacula/drop_bacula_database
+libexec/bacula/drop_bacula_tables
+libexec/bacula/gconsole
+libexec/bacula/grant_${BACULA_DB}_privileges
+libexec/bacula/grant_bacula_privileges
+libexec/bacula/make_${BACULA_DB}_tables
+libexec/bacula/make_bacula_tables
+libexec/bacula/make_catalog_backup
+libexec/bacula/mtx-changer
+libexec/bacula/startmysql
+libexec/bacula/stopmysql
+libexec/bacula/update_${BACULA_DB}_tables
+libexec/bacula/update_bacula_tables
+sbin/bacula-dir
+sbin/bacula-fd
+sbin/bacula-sd
+sbin/bconsole
+sbin/bcopy
+sbin/bextract
+sbin/bls
+sbin/bscan
+sbin/bsmtp
+sbin/btape
+sbin/btraceback
+sbin/dbcheck
+@dirrm share/examples/bacula
+@dirrm libexec/bacula
diff -r a0ff102d834d -r 6a4a59e8cae7 sysutils/bacula/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/bacula/distinfo Sat Nov 06 16:17:38 2004 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/11/06 16:17:38 mjl Exp $
+
+SHA1 (bacula-1.36.0.tar.gz) = 022606a36bb5c094a8e212c57c0f41d83b458172
+Size (bacula-1.36.0.tar.gz) = 6806740 bytes
+SHA1 (patch-aa) = 3369d0c37108f05828ea7c33b7aabc287e0213fd
+SHA1 (patch-ac) = 295dbf7fc6d1f5104b13d37a8ff32ea8580d4019
+SHA1 (patch-ae) = ad4b7d5cb83f021235c11504a034def897fffcac
+SHA1 (patch-af) = 926e74b83a09f4620672ffb8419d9ea22983d231
diff -r a0ff102d834d -r 6a4a59e8cae7 sysutils/bacula/files/bacula-dir.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/bacula/files/bacula-dir.sh Sat Nov 06 16:17:38 2004 +0000
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# PROVIDE: bacula-dir
+# REQUIRE: DAEMON
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="baculadir"
+rcvar=$name
+command="@PREFIX@/sbin/bacula-dir"
+required_files="@BACULA_ETCDIR@/bacula-dir.conf"
+pidfile="@BACULA_PIDDIR@/bacula-dir.9101.pid"
+command_args="-c ${required_files} -u @BACULA_DIR_USER@ -g @BACULA_GROUP@"
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n " ${name}"
+ ${command} ${baculadir_flags} -c ${required_files}
+fi
diff -r a0ff102d834d -r 6a4a59e8cae7 sysutils/bacula/files/bacula-fd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/bacula/files/bacula-fd.sh Sat Nov 06 16:17:38 2004 +0000
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# PROVIDE: bacula-fd
+# REQUIRE: DAEMON
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="baculafd"
+rcvar=$name
+command="@PREFIX@/sbin/bacula-fd"
+required_files="@BACULA_ETCDIR@/bacula-fd.conf"
+pidfile="@BACULA_PIDDIR@/bacula-fd.9102.pid"
+command_args="-c ${required_files}"
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n " ${name}"
+ ${command} ${baculafd_flags} -c ${required_files}
+fi
diff -r a0ff102d834d -r 6a4a59e8cae7 sysutils/bacula/files/bacula-sd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/bacula/files/bacula-sd.sh Sat Nov 06 16:17:38 2004 +0000
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# PROVIDE: bacula-sd
+# REQUIRE: DAEMON
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="baculasd"
+rcvar=$name
+command="@PREFIX@/sbin/bacula-sd"
+required_files="@BACULA_ETCDIR@/bacula-sd.conf"
+pidfile="@BACULA_PIDDIR@/bacula-sd.9103.pid"
+command_args="-c ${required_files} -u @BACULA_SD_USER@ -g @BACULA_GROUP@"
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n " ${name}"
+ ${command} ${baculasd_flags} -c ${required_files}
+fi
diff -r a0ff102d834d -r 6a4a59e8cae7 sysutils/bacula/files/bacula.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/bacula/files/bacula.sh Sat Nov 06 16:17:38 2004 +0000
@@ -0,0 +1,52 @@
+#!/bin/sh
+#
+# KEYWORD: nostart
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+rcd_dir=`/usr/bin/dirname $0`
+
+# NOTE: run_rc_command sets $rc_arg
+#
+forward_commands()
+{
+ # Backward compat with NetBSD <1.6:
+ [ -z "$rc_arg" ] && rc_arg=$_arg
+
+ for file in $COMMAND_LIST; do
+ $rcd_dir/$file $rc_arg
+ done
+}
+
+reverse_commands()
Home |
Main Index |
Thread Index |
Old Index