diff options
author | mjl <mjl> | 2004-11-06 16:17:38 +0000 |
---|---|---|
committer | mjl <mjl> | 2004-11-06 16:17:38 +0000 |
commit | 14c665d9823bd60943934c966c8d973f5a060042 (patch) | |
tree | 2e6a197608cce0971798f09fea981ad1b93e6e3f /sysutils | |
parent | a13198d1bd5130060fe3a49684420467f395b90e (diff) | |
download | pkgsrc-14c665d9823bd60943934c966c8d973f5a060042.tar.gz |
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 (limited to 'sysutils')
-rw-r--r-- | sysutils/bacula/DESCR | 7 | ||||
-rw-r--r-- | sysutils/bacula/Makefile | 3 | ||||
-rw-r--r-- | sysutils/bacula/Makefile.common | 86 | ||||
-rw-r--r-- | sysutils/bacula/Makefile.options | 22 | ||||
-rw-r--r-- | sysutils/bacula/PLIST | 42 | ||||
-rw-r--r-- | sysutils/bacula/distinfo | 8 | ||||
-rw-r--r-- | sysutils/bacula/files/bacula-dir.sh | 23 | ||||
-rw-r--r-- | sysutils/bacula/files/bacula-fd.sh | 23 | ||||
-rw-r--r-- | sysutils/bacula/files/bacula-sd.sh | 23 | ||||
-rw-r--r-- | sysutils/bacula/files/bacula.sh | 52 | ||||
-rw-r--r-- | sysutils/bacula/patches/patch-aa | 22 | ||||
-rw-r--r-- | sysutils/bacula/patches/patch-ac | 29 | ||||
-rw-r--r-- | sysutils/bacula/patches/patch-ae | 22 | ||||
-rw-r--r-- | sysutils/bacula/patches/patch-af | 22 |
14 files changed, 384 insertions, 0 deletions
diff --git a/sysutils/bacula/DESCR b/sysutils/bacula/DESCR new file mode 100644 index 00000000000..d4490552aec --- /dev/null +++ b/sysutils/bacula/DESCR @@ -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 --git a/sysutils/bacula/Makefile b/sysutils/bacula/Makefile new file mode 100644 index 00000000000..0e517eea171 --- /dev/null +++ b/sysutils/bacula/Makefile @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/11/06 16:17:38 mjl Exp $ + +.include "Makefile.common" diff --git a/sysutils/bacula/Makefile.common b/sysutils/bacula/Makefile.common new file mode 100644 index 00000000000..d7bea8d72de --- /dev/null +++ b/sysutils/bacula/Makefile.common @@ -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 +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 --git a/sysutils/bacula/Makefile.options b/sysutils/bacula/Makefile.options new file mode 100644 index 00000000000..c7daa917e49 --- /dev/null +++ b/sysutils/bacula/Makefile.options @@ -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 --git a/sysutils/bacula/PLIST b/sysutils/bacula/PLIST new file mode 100644 index 00000000000..22369c0fca2 --- /dev/null +++ b/sysutils/bacula/PLIST @@ -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 --git a/sysutils/bacula/distinfo b/sysutils/bacula/distinfo new file mode 100644 index 00000000000..13a62df5eb1 --- /dev/null +++ b/sysutils/bacula/distinfo @@ -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 --git a/sysutils/bacula/files/bacula-dir.sh b/sysutils/bacula/files/bacula-dir.sh new file mode 100644 index 00000000000..aa4db46af89 --- /dev/null +++ b/sysutils/bacula/files/bacula-dir.sh @@ -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 --git a/sysutils/bacula/files/bacula-fd.sh b/sysutils/bacula/files/bacula-fd.sh new file mode 100644 index 00000000000..f0e8b87f172 --- /dev/null +++ b/sysutils/bacula/files/bacula-fd.sh @@ -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 --git a/sysutils/bacula/files/bacula-sd.sh b/sysutils/bacula/files/bacula-sd.sh new file mode 100644 index 00000000000..ede98c3564c --- /dev/null +++ b/sysutils/bacula/files/bacula-sd.sh @@ -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 --git a/sysutils/bacula/files/bacula.sh b/sysutils/bacula/files/bacula.sh new file mode 100644 index 00000000000..86a37658438 --- /dev/null +++ b/sysutils/bacula/files/bacula.sh @@ -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() +{ + # Backward compat with NetBSD <1.6: + [ -z "$rc_arg" ] && rc_arg=$_arg + + REVCOMMAND_LIST= + for file in $COMMAND_LIST; do + REVCOMMAND_LIST="$file $REVCOMMAND_LIST" + done + for file in $REVCOMMAND_LIST; do + $rcd_dir/$file $rc_arg + done +} + +COMMAND_LIST="bacula-dir bacula-sd bacula-fd" + +name="bacula" +start_cmd="forward_commands" +stop_cmd="reverse_commands" +reload_cmd="forward_commands" +status_cmd="forward_commands" +extra_commands="reload status" + +if [ -f /etc/rc.subr ]; then + run_rc_command "$1" +else + echo -n " ${name}" + _arg="$1" + ${start_cmd} +fi diff --git a/sysutils/bacula/patches/patch-aa b/sysutils/bacula/patches/patch-aa new file mode 100644 index 00000000000..090409884ee --- /dev/null +++ b/sysutils/bacula/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/11/06 16:17:38 mjl Exp $ + +--- src/dird/Makefile.in.orig 2004-09-24 14:30:13.000000000 +0200 ++++ src/dird/Makefile.in 2004-11-06 15:52:17.000000000 +0100 +@@ -98,14 +98,9 @@ + install: all + $(INSTALL_PROGRAM) bacula-dir $(DESTDIR)$(sbindir)/bacula-dir + @srcconf=bacula-dir.conf; \ +- if test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \ +- destconf=$$srcconf.new; \ +- echo " ==> Found existing $$srcconf, installing new conf file as $$destconf"; \ +- else \ +- destconf=$$srcconf; \ +- fi; \ +- echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \ +- ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf ++ destconf=$$srcconf; \ ++ echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${prefix}/share/examples/bacula/$$destconf"; \ ++ ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${prefix}/share/examples/bacula/$$destconf + @if test -f ${DESTDIR}${scriptdir}/query.sql; then \ + echo " ==> Saving existing query.sql to query.sql.old"; \ + $(MV) -f ${DESTDIR}${scriptdir}/query.sql ${DESTDIR}${scriptdir}/query.sql.old; \ diff --git a/sysutils/bacula/patches/patch-ac b/sysutils/bacula/patches/patch-ac new file mode 100644 index 00000000000..1ec3f37a0ba --- /dev/null +++ b/sysutils/bacula/patches/patch-ac @@ -0,0 +1,29 @@ +$NetBSD: patch-ac,v 1.1.1.1 2004/11/06 16:17:38 mjl Exp $ + +--- src/console/Makefile.in.orig 2004-06-20 15:43:02.000000000 +0400 ++++ src/console/Makefile.in +@@ -82,19 +82,19 @@ install: all + fi + $(INSTALL_PROGRAM) bconsole $(DESTDIR)$(sbindir)/bconsole + @srcconf=bconsole.conf; \ +- if test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \ ++ if test -f ${DESTDIR}${prefix}/share/examples/bacula/$$srcconf; then \ + destconf=$$srcconf.new; \ + echo " ==> Found existing $$srcconf, installing new conf file as $$destconf"; \ + else \ + destconf=$$srcconf; \ +- if test -f ${DESTDIR}${sysconfdir}/console.conf; then \ ++ if test -f ${DESTDIR}${prefix}/share/examples/bacula/console.conf; then \ + echo "Existing console.conf moved to bconsole.conf"; \ +- @$(MV) ${DESTDIR}${sysconfdir}/console.conf ${DESTDIR}${sysconfdir}/bconsole.conf; \ ++ @$(MV) ${DESTDIR}${prefix}/share/examples/bacula/console.conf ${DESTDIR}${prefix}/share/examples/bacula/bconsole.conf; \ + destconf=$$srcconf.new; \ + fi; \ + fi; \ +- echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \ +- ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf ++ echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${prefix}/share/examples/bacula/$$destconf"; \ ++ ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${prefix}/share/examples/bacula/$$destconf + if test -f static-bconsole; then \ + $(INSTALL_PROGRAM) static-bconsole $(DESTDIR)$(sbindir)/static-bconsole; \ + fi diff --git a/sysutils/bacula/patches/patch-ae b/sysutils/bacula/patches/patch-ae new file mode 100644 index 00000000000..57dea2f95ee --- /dev/null +++ b/sysutils/bacula/patches/patch-ae @@ -0,0 +1,22 @@ +$NetBSD: patch-ae,v 1.1.1.1 2004/11/06 16:17:38 mjl Exp $ + +--- src/filed/Makefile.in.orig 2004-03-11 00:38:48.000000000 +0300 ++++ src/filed/Makefile.in +@@ -111,14 +111,14 @@ devclean: realclean + install: all + $(INSTALL_PROGRAM) bacula-fd $(DESTDIR)$(sbindir)/bacula-fd + @srcconf=bacula-fd.conf; \ +- if test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \ ++ if test -f ${DESTDIR}${prefix}/share/examples/bacula/$$srcconf; then \ + destconf=$$srcconf.new; \ + echo " ==> Found existing $$srcconf, installing new conf file as $$destconf"; \ + else \ + destconf=$$srcconf; \ + fi; \ +- echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \ +- ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf ++ echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${prefix}/share/examples/bacula/$$destconf"; \ ++ ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${prefix}/share/examples/bacula/$$destconf + @if test -f static-bacula-fd; then \ + $(INSTALL_PROGRAM) static-bacula-fd $(DESTDIR)$(sbindir)/static-bacula-fd; \ + fi diff --git a/sysutils/bacula/patches/patch-af b/sysutils/bacula/patches/patch-af new file mode 100644 index 00000000000..5cf4b95ac33 --- /dev/null +++ b/sysutils/bacula/patches/patch-af @@ -0,0 +1,22 @@ +$NetBSD: patch-af,v 1.1.1.1 2004/11/06 16:17:38 mjl Exp $ + +--- src/stored/Makefile.in.orig 2004-06-20 15:43:04.000000000 +0400 ++++ src/stored/Makefile.in +@@ -132,14 +132,14 @@ install: all + $(INSTALL_PROGRAM) bscan $(DESTDIR)$(sbindir)/bscan + $(INSTALL_PROGRAM) btape $(DESTDIR)$(sbindir)/btape + @srcconf=bacula-sd.conf; \ +- if test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \ ++ if test -f ${DESTDIR}${prefix}/share/examples/bacula/$$srcconf; then \ + destconf=$$srcconf.new; \ + echo " ==> Found existing $$srcconf, installing new conf file as $$destconf"; \ + else \ + destconf=$$srcconf; \ + fi; \ +- echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \ +- ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf ++ echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${prefix}/share/examples/bacula/$$destconf"; \ ++ ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${prefix}/share/examples/bacula/$$destconf + @if test -f static-bacula-sd; then \ + $(INSTALL_PROGRAM) static-bacula-sd $(DESTDIR)$(sbindir)/static-bacula-sd; \ + fi |