Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/bareos sysutils/bareos: import bareos-19.2.8



details:   https://anonhg.NetBSD.org/pkgsrc/rev/324a13531a89
branches:  trunk
changeset: 436161:324a13531a89
user:      kardel <kardel%pkgsrc.org@localhost>
date:      Tue Jul 28 06:36:29 2020 +0000

description:
sysutils/bareos: import bareos-19.2.8

Backup Archiving REcovery Open Sourced

Bareos is a set of computer programs that permits the system administrator
to manage backup, recovery, and verfication of computer data
across a network of computers of different kinds. Bareos can
also run entirely upon a single computer and can backup to various types
of media, including tape and disk.

Bareos is a fork of Bacula 5.2 around 2010.

Features (partial list)
        LTO hardware encryption support
        bandwidth limitation
        encrypted communication
        distributed data replication across sites
        cloud storage support (not yet fully part of pkgsrc)

diffstat:

 sysutils/bareos/DESCR                                                     |   16 +
 sysutils/bareos/MESSAGE                                                   |    7 +
 sysutils/bareos/Makefile                                                  |   47 +
 sysutils/bareos/Makefile.common                                           |  109 ++++
 sysutils/bareos/PLIST.common                                              |  243 ++++++++++
 sysutils/bareos/distinfo                                                  |   44 +
 sysutils/bareos/files/bareos-dir.sh                                       |   23 +
 sysutils/bareos/files/bareos-fd.sh                                        |   23 +
 sysutils/bareos/files/bareos-sd.sh                                        |   23 +
 sysutils/bareos/files/bareos.sh                                           |   52 ++
 sysutils/bareos/options.mk                                                |   24 +
 sysutils/bareos/patches/patch-core_CMakeLists.txt                         |   42 +
 sysutils/bareos/patches/patch-core_cmake_BareosCheckIncludes.cmake        |   24 +
 sysutils/bareos/patches/patch-core_cmake_BareosFindAllLibraries.cmake     |   17 +
 sysutils/bareos/patches/patch-core_cmake_BareosFindPrograms.cmake         |   25 +
 sysutils/bareos/patches/patch-core_cmake_BareosInstallConfigFiles.cmake   |   65 ++
 sysutils/bareos/patches/patch-core_cmake_BareosSetVariableDefaults.cmake  |   24 +
 sysutils/bareos/patches/patch-core_cmake_BareosTimeFunctions.cmake        |   17 +
 sysutils/bareos/patches/patch-core_platforms_netbsd_CMakeLists.txt        |   18 +
 sysutils/bareos/patches/patch-core_platforms_netbsd_chio-changer          |  141 +++++
 sysutils/bareos/patches/patch-core_scripts_CMakeLists.txt                 |   53 ++
 sysutils/bareos/patches/patch-core_src_CMakeLists.txt                     |   15 +
 sysutils/bareos/patches/patch-core_src_cats_make__catalog__backup.pl.in   |   20 +
 sysutils/bareos/patches/patch-core_src_cats_postgresql__queries.inc       |   24 +
 sysutils/bareos/patches/patch-core_src_dird_admin.cc                      |   23 +
 sysutils/bareos/patches/patch-core_src_dird_archive.cc                    |   24 +
 sysutils/bareos/patches/patch-core_src_dird_authenticate__console.cc      |   19 +
 sysutils/bareos/patches/patch-core_src_dird_backup.cc                     |   26 +
 sysutils/bareos/patches/patch-core_src_dird_consolidate.cc                |   24 +
 sysutils/bareos/patches/patch-core_src_dird_dird__conf.cc                 |   16 +
 sysutils/bareos/patches/patch-core_src_dird_migrate.cc                    |   51 ++
 sysutils/bareos/patches/patch-core_src_dird_restore.cc                    |   51 ++
 sysutils/bareos/patches/patch-core_src_dird_verify.cc                     |   50 ++
 sysutils/bareos/patches/patch-core_src_filed_accurate__lmdb.cc            |   15 +
 sysutils/bareos/patches/patch-core_src_findlib_acl.cc                     |   79 +++
 sysutils/bareos/patches/patch-core_src_findlib_find__one.cc               |   15 +
 sysutils/bareos/patches/patch-core_src_lib_mem__pool.cc                   |   26 +
 sysutils/bareos/patches/patch-core_src_lib_scsi__lli.cc                   |   47 +
 sysutils/bareos/patches/patch-core_src_lib_version.c                      |   28 +
 sysutils/bareos/patches/patch-core_src_lmdb_mdb.c                         |   25 +
 sysutils/bareos/patches/patch-core_src_plugins_stored_scsicrypto-sd.cc    |   40 +
 sysutils/bareos/patches/patch-core_src_plugins_stored_scsitapealert-sd.cc |   27 +
 sysutils/bareos/patches/patch-core_src_stored_acquire.cc                  |   15 +
 sysutils/bareos/patches/patch-core_src_stored_bscan.cc                    |   27 +
 sysutils/bareos/patches/patch-core_src_stored_btape.cc                    |   31 +
 sysutils/bareos/patches/patch-core_src_stored_device.cc                   |   29 +
 sysutils/bareos/patches/patch-core_src_stored_dir__cmd.cc                 |   24 +
 sysutils/bareos/patches/patch-core_src_stored_label.cc                    |   15 +
 sysutils/bareos/patches/patch-core_src_stored_mount.cc                    |   27 +
 49 files changed, 1850 insertions(+), 0 deletions(-)

diffs (truncated from 2046 to 300 lines):

diff -r db7a6a9ce4ad -r 324a13531a89 sysutils/bareos/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/bareos/DESCR     Tue Jul 28 06:36:29 2020 +0000
@@ -0,0 +1,16 @@
+Backup Archiving REcovery Open Sourced
+
+Bareos is a set of computer programs that permits the system administrator
+to manage backup, recovery, and verfication of computer data
+across a network of computers of different kinds. Bareos can
+also run entirely upon a single computer and can backup to various types
+of media, including tape and disk.
+
+Bareos is a fork of Bacula 5.2 around 2010.
+
+Features (partial list)
+       LTO hardware encryption support
+       bandwidth limitation
+       encrypted communication
+       distributed data replication across sites
+       cloud storage support (not yet fully part of pkgsrc)
diff -r db7a6a9ce4ad -r 324a13531a89 sysutils/bareos/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/bareos/MESSAGE   Tue Jul 28 06:36:29 2020 +0000
@@ -0,0 +1,7 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2020/07/28 06:36:29 kardel Exp $
+
+You can find some useful scripts to create, update and drop the necessary
+databases, privileges and tables in ${PREFIX}/lib/bareos/scripts.
+
+===========================================================================
diff -r db7a6a9ce4ad -r 324a13531a89 sysutils/bareos/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/bareos/Makefile  Tue Jul 28 06:36:29 2020 +0000
@@ -0,0 +1,47 @@
+# $NetBSD: Makefile,v 1.1 2020/07/28 06:36:29 kardel Exp $
+
+CONFLICTS=             bareos-clientonly-[0-9]* bacula-clientonly-[0-9]* bacula-[0-9]*
+
+COMMENT=               Backup Archiving REcovery Open Sourced
+
+PLIST_SRC=             PLIST.common
+
+RCD_SCRIPTS=           bareos bareos-dir bareos-sd bareos-fd
+
+# For make_catalog_backup.pl.in.
+USE_TOOLS+=            perl:run
+# strange: pkglint complains about VARBASE not defined in BUILD_DEFS, but it is defined in Makefile.common
+BUILD_DEFS+=           VARBASE
+
+.include "options.mk"
+.include "Makefile.common"
+
+# needs to be here to get ${EGREP} defined
+.include "../../mk/bsd.pkg.mk"
+
+REPLACE_PERL+=         core/src/cats/make_catalog_backup.pl.in
+
+# spool directory
+MAKE_DIRS_PERMS+=      ${VARBASE}/${PKG_SYSCONFSUBDIR} \
+                       ${REAL_ROOT_USER} ${BAREOS_GROUP} 0770
+MAKE_DIRS_PERMS+=      ${VARBASE}/db/${PKG_SYSCONFSUBDIR}/working \
+                       ${BAREOS_DIR_USER} ${BAREOS_GROUP} 0770
+MAKE_DIRS_PERMS+=      ${VARBASE}/db/${PKG_SYSCONFSUBDIR} \
+                       ${BAREOS_DIR_USER} ${BAREOS_GROUP} 0770
+MAKE_DIRS_PERMS+=      ${VARBASE}/db/${PKG_SYSCONFSUBDIR}/bsr \
+                       ${BAREOS_DIR_USER} ${BAREOS_GROUP} 0770
+MAKE_DIRS_PERMS+=      ${VARBASE}/db/${PKG_SYSCONFSUBDIR}/storage \
+                       ${BAREOS_DIR_USER} ${BAREOS_GROUP} 0770
+
+post-install:
+       ${LN} -fs ${PKG_SYSCONFSUBDIR}/backends/libbareossd-gentape.so ${DESTDIR:Q}/${BAREOS_LIBDIR:Q}/libbareossd-gentape.so
+
+CONFIG_TEMPLATES!=     ${EGREP} "^"${CONFIG_TEMPLATE_PATH:Q} PLIST.common 2>/dev/null | sed -e 's/ /\\ /g'
+CONF_FILES?=
+
+.for l in ${CONFIG_TEMPLATES}
+CONF_FILES+=   ${l} ${PKG_SYSCONFDIR}${l:S/^${CONFIG_TEMPLATE_PATH}//}
+.endfor
+
+MAKE_DIRS?=
+MAKE_DIRS+=    ${CONFIG_TEMPLATES:H:O:u:S/^${CONFIG_TEMPLATE_PATH}/${PKG_SYSCONFDIR}/}
diff -r db7a6a9ce4ad -r 324a13531a89 sysutils/bareos/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/bareos/Makefile.common   Tue Jul 28 06:36:29 2020 +0000
@@ -0,0 +1,109 @@
+# $NetBSD: Makefile.common,v 1.1 2020/07/28 06:36:29 kardel Exp $
+# used by sysutils/bareos-clientonly/Makefile
+
+GITHUB_PROJECT=        bareos
+VERSION=       19.2.8
+GITHUB_TAG=    Release/${VERSION}
+
+DISTNAME=      bareos-${VERSION}
+WRKSRC=                ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG:C/\//-/}
+CATEGORIES=    sysutils
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=bareos/}
+
+# also knowledgable: MAINTAINER=       paul%paulbsd.com@localhost
+MAINTAINER=    kardel%NetBSD.org@localhost
+HOMEPAGE=      http://www.bareos.org/
+LICENSE=       gnu-agpl-v3
+
+# pkgsrc version currently only tested/configured for NetBSD build
+ONLY_FOR_PLATFORM=     NetBSD-*-*
+
+USE_LANGUAGES+=        c c++
+USE_CMAKE=     yes
+CMAKE_ARG_PATH=        ..
+CONFIGURE_DIRS=        core/_build
+# needs to be able to do compare-and-swap on time_t (cmpxchg8b)
+.if ${MACHINE_ARCH} == "i386"
+CXXFLAGS+=     -march=i586
+.endif
+
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     pre-configure
+SUBST_MESSAGE.paths=   Fixing absolute paths.
+SUBST_FILES.paths=     core/CMakeLists.txt
+SUBST_FILES.paths+=    core/src/cats/make_catalog_backup.pl.in
+SUBST_SED.paths=       -e 's,"/usr/local,"${PREFIX},g'
+SUBST_SED.paths+=      -e 's,"/var/log,"${VARBASE}/log,g'
+SUBST_VARS.paths=      LOCALBASE PREFIX PKGVERSION
+
+pre-configure:
+       ${MKDIR} ${WRKSRC}/core/_build
+
+BUILD_DEFS+=           VARBASE
+
+# file locations
+PKG_SYSCONFSUBDIR?=    bareos
+BAREOS_PIDDIR?=                ${VARBASE}/run
+BAREOS_LOGDIR?=                ${VARBASE}/log
+BAREOS_LIBDIR?=                ${PREFIX}/lib
+BAREOS_WORKINGDIR?=    ${VARBASE}/db/${PKG_SYSCONFSUBDIR}
+
+BUILD_DEFS+=           BAREOS_PIDDIR BAREOS_WORKINGDIR
+
+# user/group information
+BAREOS_GROUP?=         bareos
+
+BAREOS_SD_USER?=               bareossd
+PKG_GECOS.${BAREOS_SD_USER}=   Bareos Storage User
+PKG_HOME.${BAREOS_SD_USER}=    ${BAREOS_WORKINGDIR}
+PKG_SHELL.${BAREOS_SD_USER}=   /bin/sh
+
+BAREOS_DIR_USER?=              bareosdir
+PKG_GECOS.${BAREOS_DIR_USER}=  Bareos Director User
+PKG_HOME.${BAREOS_DIR_USER}=   ${BAREOS_WORKINGDIR}
+PKG_SHELL.${BAREOS_DIR_USER}=  /bin/sh
+
+PKG_GROUPS=            ${BAREOS_GROUP}
+PKG_USERS=             ${BAREOS_DIR_USER}:${BAREOS_GROUP} ${BAREOS_SD_USER}:${BAREOS_GROUP}
+
+CONFIG_TEMPLATE_PATH=  share/examples/${PKG_SYSCONFSUBDIR}/configtemplates
+
+# variables to substitute
+FILES_SUBST+=          BAREOS_ETCDIR=${PKG_SYSCONFDIR}
+FILES_SUBST+=          BAREOS_PIDDIR=${BAREOS_PIDDIR}
+FILES_SUBST+=          BAREOS_LOGDIR=${BAREOS_LOGDIR}
+FILES_SUBST+=          BAREOS_GROUP=${BAREOS_GROUP}
+FILES_SUBST+=          BAREOS_DIR_USER=${BAREOS_DIR_USER}
+FILES_SUBST+=          BAREOS_SD_USER=${BAREOS_SD_USER}
+
+# cmake arguments
+CMAKE_ARGS+=   -DCMAKE_INSTALL_PREFIX=${PREFIX}
+CMAKE_ARGS+=   -DCMAKE_STAGING_PREFIX=${BUILDLINK_DIR}
+# reduce job log noise: CXXFLAGS+=-DNO_ADV=1
+CMAKE_ARGS+=   -DCMAKE_CXX_FLAGS="${CXXFLAGS}"
+CMAKE_ARGS+=   -DSKIP_GTEST=1
+CMAKE_ARGS+=   -Dconfigtemplatedir=${PREFIX}/${CONFIG_TEMPLATE_PATH}
+CMAKE_ARGS+=   -Dworkingdir=${VARBASE}/db/${PKG_SYSCONFSUBDIR}/working
+CMAKE_ARGS+=   -Dsubsysdir=${VARBASE}/db/${PKG_SYSCONFSUBDIR}
+CMAKE_ARGS+=   -Dbsrdir=${VARBASE}/db/${PKG_SYSCONFSUBDIR}/bsr
+CMAKE_ARGS+=   -Dlogdir=${BAREOS_LOGDIR}
+CMAKE_ARGS+=   -Dlibdir=${BAREOS_LIBDIR}
+CMAKE_ARGS+=   -Dpiddir=${BAREOS_PIDDIR}
+CMAKE_ARGS+=   -Darchivedir=${VARBASE}/db/${PKG_SYSCONFSUBDIR}/storage
+CMAKE_ARGS+=   -Ddir-user=${BAREOS_DIR_USER}
+CMAKE_ARGS+=   -Ddir-group=${BAREOS_GROUP}
+CMAKE_ARGS+=   -Dsd-user=${BAREOS_SD_USER}
+CMAKE_ARGS+=   -Dsd-group=${BAREOS_GROUP}
+CMAKE_ARGS+=   -Dfd-user=root
+CMAKE_ARGS+=   -Dfd-group=${BAREOS_GROUP}
+
+.include "../../mk/bsd.prefs.mk"
+
+# dependencies
+.include "../../archivers/lzo/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../lang/python27/buildlink3.mk"
+.include "../../mk/pam.buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../textproc/jansson/buildlink3.mk"
diff -r db7a6a9ce4ad -r 324a13531a89 sysutils/bareos/PLIST.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/bareos/PLIST.common      Tue Jul 28 06:36:29 2020 +0000
@@ -0,0 +1,243 @@
+@comment $NetBSD: PLIST.common,v 1.1 2020/07/28 06:36:29 kardel Exp $
+bin/bconsole
+bin/bregex
+bin/bsmtp
+bin/bwild
+bin/timelimit
+include/bareos/address_conf.h
+include/bareos/alist.h
+include/bareos/attr.h
+include/bareos/baconfig.h
+include/bareos/bareos.h
+include/bareos/base64.h
+include/bareos/bc_types.h
+include/bareos/berrno.h
+include/bareos/bits.h
+include/bareos/bpipe.h
+include/bareos/breg.h
+include/bareos/bregex.h
+include/bareos/bsock.h
+include/bareos/bsock_tcp.h
+include/bareos/bstringlist.h
+include/bareos/btime.h
+include/bareos/btimers.h
+include/bareos/cbuf.h
+include/bareos/config.h
+include/bareos/crypto.h
+include/bareos/crypto_cache.h
+include/bareos/devlock.h
+include/bareos/dlist.h
+include/bareos/fnmatch.h
+include/bareos/guid_to_name.h
+include/bareos/htable.h
+include/bareos/ini.h
+include/bareos/jcr.h
+include/bareos/lex.h
+include/bareos/lib.h
+include/bareos/lockmgr.h
+include/bareos/md5.h
+include/bareos/mem_pool.h
+include/bareos/message.h
+include/bareos/messages_resource.h
+include/bareos/messages_resource_items.h
+include/bareos/mntent_cache.h
+include/bareos/parse_conf.h
+include/bareos/plugins.h
+include/bareos/qualified_resource_name_type_converter.h
+include/bareos/rblist.h
+include/bareos/runscript.h
+include/bareos/rwlock.h
+include/bareos/scsi_crypto.h
+include/bareos/scsi_lli.h
+include/bareos/scsi_tapealert.h
+include/bareos/serial.h
+include/bareos/sha1.h
+include/bareos/status.h
+include/bareos/thread_list.h
+include/bareos/tls.h
+include/bareos/tls_conf.h
+include/bareos/tree.h
+include/bareos/try_tls_handshake_as_a_server.h
+include/bareos/var.h
+include/bareos/version.h
+include/bareos/watchdog.h
+lib/bareos/backends/libbareoscats-postgresql.so
+lib/bareos/backends/libbareossd-fifo.so
+lib/bareos/backends/libbareossd-gentape.so
+lib/bareos/backends/libbareossd-tape.so
+lib/bareos/plugins/BareosDirPluginBaseclass.py
+lib/bareos/plugins/BareosDirWrapper.py
+lib/bareos/plugins/BareosFdPluginBaseclass.py
+lib/bareos/plugins/BareosFdPluginLDAP.py
+lib/bareos/plugins/BareosFdPluginLocalFileset.py
+lib/bareos/plugins/BareosFdPluginOvirt.py
+lib/bareos/plugins/BareosFdPluginPerconaXtraBackup.py
+lib/bareos/plugins/BareosFdWrapper.py
+lib/bareos/plugins/BareosSdPluginBaseclass.py
+lib/bareos/plugins/BareosSdWrapper.py
+lib/bareos/plugins/autoxflate-sd.so
+lib/bareos/plugins/bareos-dir-class-plugin.py
+lib/bareos/plugins/bareos-dir.py.template
+lib/bareos/plugins/bareos-fd-ldap.py
+lib/bareos/plugins/bareos-fd-local-fileset.py
+lib/bareos/plugins/bareos-fd-mock-test.py
+lib/bareos/plugins/bareos-fd-ovirt.py
+lib/bareos/plugins/bareos-fd-percona-xtrabackup.py
+lib/bareos/plugins/bareos-fd.py.template
+lib/bareos/plugins/bareos-sd-class-plugin.py
+lib/bareos/plugins/bareos-sd.py.template
+lib/bareos/plugins/bareos_dir_consts.py
+lib/bareos/plugins/bareos_fd_consts.py
+lib/bareos/plugins/bareos_sd_consts.py
+lib/bareos/plugins/bpipe-fd.so
+lib/bareos/plugins/python-dir.so
+lib/bareos/plugins/python-fd.so
+lib/bareos/plugins/python-sd.so
+lib/bareos/plugins/scsicrypto-sd.so
+lib/bareos/plugins/scsitapealert-sd.so
+lib/bareos/scripts/bareos
+lib/bareos/scripts/bareos-config
+lib/bareos/scripts/bareos-config-lib.sh
+lib/bareos/scripts/bareos-ctl-dir



Home | Main Index | Thread Index | Old Index