head 1.8; access; symbols pkgsrc-2026Q1:1.8.0.6 pkgsrc-2026Q1-base:1.8 pkgsrc-2025Q4:1.8.0.4 pkgsrc-2025Q4-base:1.8 pkgsrc-2025Q3:1.8.0.2 pkgsrc-2025Q3-base:1.8 pkgsrc-2025Q2:1.7.0.8 pkgsrc-2025Q2-base:1.7 pkgsrc-2025Q1:1.7.0.6 pkgsrc-2025Q1-base:1.7 pkgsrc-2024Q4:1.7.0.4 pkgsrc-2024Q4-base:1.7 pkgsrc-2024Q3:1.7.0.2 pkgsrc-2024Q3-base:1.7 pkgsrc-2024Q2:1.6.0.12 pkgsrc-2024Q2-base:1.6 pkgsrc-2024Q1:1.6.0.10 pkgsrc-2024Q1-base:1.6 pkgsrc-2023Q4:1.6.0.8 pkgsrc-2023Q4-base:1.6 pkgsrc-2023Q3:1.6.0.6 pkgsrc-2023Q3-base:1.6 pkgsrc-2023Q2:1.6.0.4 pkgsrc-2023Q2-base:1.6 pkgsrc-2023Q1:1.6.0.2 pkgsrc-2023Q1-base:1.6 pkgsrc-2022Q4:1.5.0.12 pkgsrc-2022Q4-base:1.5 pkgsrc-2022Q3:1.5.0.10 pkgsrc-2022Q3-base:1.5 pkgsrc-2022Q2:1.5.0.8 pkgsrc-2022Q2-base:1.5 pkgsrc-2022Q1:1.5.0.6 pkgsrc-2022Q1-base:1.5 pkgsrc-2021Q4:1.5.0.4 pkgsrc-2021Q4-base:1.5 pkgsrc-2021Q3:1.5.0.2 pkgsrc-2021Q3-base:1.5 pkgsrc-2021Q2:1.4.0.4 pkgsrc-2021Q2-base:1.4 pkgsrc-2021Q1:1.4.0.2 pkgsrc-2021Q1-base:1.4 pkgsrc-2020Q4:1.1.0.4 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.2 pkgsrc-2020Q3-base:1.1; locks; strict; comment @# @; 1.8 date 2025.08.20.11.35.11; author wiz; state Exp; branches; next 1.7; commitid lgT5N7I1hRAxGs7G; 1.7 date 2024.08.25.06.19.14; author wiz; state Exp; branches; next 1.6; commitid BcrSL94SO85mvanF; 1.6 date 2023.01.13.11.50.37; author jperkin; state Exp; branches; next 1.5; commitid 5lw1PZs2tDJuin9E; 1.5 date 2021.08.11.10.24.05; author kardel; state Exp; branches; next 1.4; commitid xAmzs9kQLDvMxx4D; 1.4 date 2021.02.11.06.56.35; author kardel; state Exp; branches; next 1.3; commitid DiXdTri2tjlJcgHC; 1.3 date 2021.02.10.11.27.19; author kardel; state Exp; branches; next 1.2; commitid H9tL4KxHawaMI9HC; 1.2 date 2021.02.01.09.08.43; author kardel; state Exp; branches; next 1.1; commitid QRMO7lr74O9ZfZFC; 1.1 date 2020.07.28.06.36.29; author kardel; state Exp; branches; next ; commitid UFWxh3WzQngatOhC; desc @@ 1.8 log @*: fix build with cmake 4 @ text @# $NetBSD: Makefile.common,v 1.7 2024/08/25 06:19:14 wiz Exp $ # used by sysutils/bareos-clientonly/Makefile GITHUB_PROJECT= bareos VERSION= 20.0.2 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 MAINTAINER= kardel@@NetBSD.org HOMEPAGE= http://www.bareos.org/ LICENSE= gnu-agpl-v3 USE_LANGUAGES+= c c++ USE_CMAKE= yes CMAKE_ARG_PATH= .. CONFIGURE_DIRS= core/_build PLIST_SUBST+= PYSITELIB=${PYSITELIB} REPLACE_PERL+= core/src/cats/make_catalog_backup.pl.in SUBST_CLASSES+= paths SUBST_STAGE.paths= pre-configure SUBST_MESSAGE.paths= Fixing absolute paths. SUBST_FILES.paths+= core/src/cats/make_catalog_backup.pl.in SUBST_FILES.paths+= core/scripts/bareos-config-lib.sh.in SUBST_FILES.paths+= core/platforms/netbsd/chio-changer 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 TOOLS_PLATFORM.sh TOOLS_PLATFORM.awk pre-configure: ${MKDIR} ${WRKSRC}/core/_build BUILD_DEFS+= VARBASE # file locations PKG_SYSCONFSUBDIR?= bareos BAREOS_PIDDIR?= ${VARBASE}/run/${PKG_SYSCONFSUBDIR} BAREOS_LOGDIR?= ${VARBASE}/log/${PKG_SYSCONFSUBDIR} BAREOS_LIBDIR?= ${PREFIX}/lib BAREOS_WORKINGDIR?= ${VARBASE}/db/${PKG_SYSCONFSUBDIR} BUILD_DEFS+= BAREOS_PIDDIR BAREOS_WORKINGDIR # user/group information BAREOS_GROUP?= bareos PKG_GROUPS= ${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} # additional CXX parameters - document pkgsrc origin CXXFLAGS+= -DBAREOS_BINARY_INFO=\\\"pkgsrc-compiled\\\" CXXFLAGS+= -DBAREOS_JOBLOG_MESSAGE=\\\"'pkgsrc '"${DISTNAME}"\\\" CXXFLAGS+= -DBAREOS_SERVICES_MESSAGE=\\\"'pkgsrc-compiled binaries are UNSUPPORTED by bareos.com (https://www.bareos.com).\\n'\\\" # cmake arguments CMAKE_CONFIGURE_ARGS+= -DCMAKE_INSTALL_PREFIX=${PREFIX} CMAKE_CONFIGURE_ARGS+= -DCMAKE_STAGING_PREFIX=${BUILDLINK_DIR} CMAKE_CONFIGURE_ARGS+= -DCMAKE_CXX_FLAGS="${CXXFLAGS}" CMAKE_CONFIGURE_ARGS+= -Dconfigtemplatedir=${PREFIX}/${CONFIG_TEMPLATE_PATH} CMAKE_CONFIGURE_ARGS+= -Dworkingdir=${VARBASE}/db/${PKG_SYSCONFSUBDIR}/working CMAKE_CONFIGURE_ARGS+= -Dsubsysdir=${VARBASE}/db/${PKG_SYSCONFSUBDIR} CMAKE_CONFIGURE_ARGS+= -Dbsrdir=${VARBASE}/db/${PKG_SYSCONFSUBDIR}/bsr CMAKE_CONFIGURE_ARGS+= -Dlogdir=${BAREOS_LOGDIR} CMAKE_CONFIGURE_ARGS+= -Dlibdir=${BAREOS_LIBDIR} CMAKE_CONFIGURE_ARGS+= -Dpiddir=${BAREOS_PIDDIR} CMAKE_CONFIGURE_ARGS+= -Darchivedir=${VARBASE}/db/${PKG_SYSCONFSUBDIR}/storage CMAKE_CONFIGURE_ARGS+= -Ddir-user=${BAREOS_DIR_USER} CMAKE_CONFIGURE_ARGS+= -Ddir-group=${BAREOS_GROUP} CMAKE_CONFIGURE_ARGS+= -Dsd-user=${BAREOS_SD_USER} CMAKE_CONFIGURE_ARGS+= -Dsd-group=${BAREOS_GROUP} CMAKE_CONFIGURE_ARGS+= -Dfd-user=${REAL_ROOT_USER} CMAKE_CONFIGURE_ARGS+= -Dfd-group=${BAREOS_GROUP} CMAKE_CONFIGURE_ARGS+= -DCMAKE_POLICY_VERSION_MINIMUM=3.5 .include "../../mk/bsd.prefs.mk" PYTHON_VERSIONS_INCOMPATIBLE= 27 # dependencies .include "../../mk/atomic64.mk" .include "../../archivers/lzo/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" .include "../../lang/python/application.mk" .include "../../mk/pam.buildlink3.mk" .include "../../devel/readline/buildlink3.mk" .include "../../security/openssl/buildlink3.mk" .include "../../textproc/jansson/buildlink3.mk" @ 1.7 log @*: replace CMAKE_ARGS with CMAKE_CONFIGURE_ARGS @ text @d1 1 a1 1 # $NetBSD: Makefile.common,v 1.6 2023/01/13 11:50:37 jperkin Exp $ d89 1 @ 1.6 log @bareos: Fix build on SunOS. Remove ONLY_FOR_PLATFORM. We don't deliberately break platforms just because they haven't been tested. Fix PKG_SHELL to use ${SH}, there is no guarantee that /bin/sh is the right shell on all platforms. There are some other cleanups necessary in this package (e.g. bsd.pkg.mk is included way too early), but they can wait for the 22.0.1 update. @ text @d1 1 a1 1 # $NetBSD: Makefile.common,v 1.5 2021/08/11 10:24:05 kardel Exp $ d72 17 a88 17 CMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX=${PREFIX} CMAKE_ARGS+= -DCMAKE_STAGING_PREFIX=${BUILDLINK_DIR} CMAKE_ARGS+= -DCMAKE_CXX_FLAGS="${CXXFLAGS}" 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=${REAL_ROOT_USER} CMAKE_ARGS+= -Dfd-group=${BAREOS_GROUP} @ 1.5 log @sysutils/bareos: upgrade to 20.0.2 @ text @d1 1 a1 1 # $NetBSD: Makefile.common,v 1.4 2021/02/11 06:56:35 kardel Exp $ a17 3 # pkgsrc version currently only tested/configured for NetBSD build ONLY_FOR_PLATFORM= NetBSD-*-* @ 1.4 log @sysutils/bareos: fix path replacement (core/scripts/bareos-config-lib.sh.in) @ text @d1 1 a1 1 # $NetBSD: Makefile.common,v 1.3 2021/02/10 11:27:19 kardel Exp $ d5 1 a5 1 VERSION= 20.0.0 d35 1 d38 1 a38 1 SUBST_VARS.paths= LOCALBASE PREFIX PKGVERSION @ 1.3 log @sysutils/bareos{,-clientonly}: rework config file permissions and users bareos-clientonly does not need to install the bareosdir and bareossd users. avoid installing config files twice adjust sysutils/bareos/Makefile{,.common} for the above. @ text @d1 1 a1 1 # $NetBSD: Makefile.common,v 1.2 2021/02/01 09:08:43 kardel Exp $ d34 1 @ 1.2 log @sysutils/bareos{,-clientonly}: Upgrade to 20.0.0 (released 2020-12-16) Frome the release note: Bareos 20 released ✔ Improved Cloud Storage integration ✔ New and revised plugins ✔ Modernized Python API ✔ New REST API Cologne, 16th December, 2020 – The Bareos team launches a new version of the Open Source backup solution of the same name. Bareos 20 includes, among other things, a new plugin to back up cloud storage objects directly via the S3 interface, a modernized Python API and a preview of the new REST API. New and improved Plugins Bareos 20 introduces the brand-new libcloud plugin , which uses the Apache Libcloud library to back up cloud storage objects directly via the S3 interface (Simple Storage Service). The Bareos plugin can thus create backups of Amazon S3 buckets directly via the S3 interface. Since Apache Libcloud is a standard library and supports other cloud storage systems as well, Bareos' libcloud plugin will be ready to back up other cloud storage objects in the future. The plugin for backups and restores of PostgreSQL databases now supports incremental backups and point-in-time recovery which makes it possible to restore any transaction state from the past. For the VMware plugin, which has been able to create (incremental) backups of snapshots since Bareos 15.2, the developers have upgraded the VDDK (Virtual Disk Development Kit) to the current version 7.0.1. The plugin now supports VMware versions 6.5, 6.7, 7 and also the release after that. The Python API and all Bareos Python plugins have been modernized. The code is now easier to read, and the included plugins have been adapted to work with both Python 2 and 3; parallel use of both versions is also possible. Users who have written their own Python plugins can refer to the porting guide in the manual to adapt the plugins. Among the ported Bareos plugins are the oVirt plugin, which enables agentless backups of virtual machines running under oVirt or Red Hat Virtualization, the VMware and PostgreSQL plugins, and the Percona XtraBackup plugin for backing up MySQL/MariaDB. Technology Preview: REST API Bareos 20 includes a technical preview of the new REST API, which will allow access to Bareos via an HTTP interface in future. Currently listed as experimental, the REST API already supports some important commands: at the moment, users can configure parts of Bareos as well as start, stop and monitor backup jobs. Hosting providers and other large environments in particular will benefit from the new REST API since it makes it possible to include typical Bareos operations in scripts or other automated procedures. Improved S3 Storage The storage backend bareos-storage-droplet has been included in the backup software since Bareos 17.2. It uses the libdroplet library which communicates with cloud storage systems via the S3 protocol. The Bareos developers have given it a general overhaul, but the most important new feature is the OpenSSL 1.1 support which includes support for current encryption technologies. The package bareos-storage-droplet used to be available for only a few Linux distributions, but since the upgrade Bareos offers packages for all Linux systems which are supported by the backup solution itself. Versioning, Changelog and other Numbers Bareos 20.0.0 is the first release that uses the so-called semantic versioning. Users can now recognize straight away if it's a major release (1st position), an update with changed functionality (2nd position) or a pure bugfix (3rd position). More transparency is provided by the continuously maintained changelog in the GitHub repository. It replaces the classic release notes, contains links to the corresponding bugs and pull requests, so that interested users can easily get information about the current progress at any time. Over 1,500 commits from a total of 22 contributors have gone into Bareos 20. The developers offer packages for 22 platforms: CentOS 7/8, Debian 9/10, Fedora 31/32/33, openSUSE 15.2, RHEL 7/8, SLES 12/15, Univention 4.4, Ubuntu 16.04/18.04/20.04, FreeBSD 11.4/12.2, macOS ≥10.13, Solaris (x86, SPARC) 11.4, Windows 10, and Windows Server ≥2012 . See https://www.bareos.org and https://www.bareos.com @ text @d1 1 a1 1 # $NetBSD: Makefile.common,v 1.1 2020/07/28 06:36:29 kardel Exp $ a54 10 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 a55 1 PKG_USERS= ${BAREOS_DIR_USER}:${BAREOS_GROUP} ${BAREOS_SD_USER}:${BAREOS_GROUP} @ 1.1 log @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) @ text @d1 1 a1 1 # $NetBSD$ d5 1 a5 1 VERSION= 19.2.8 d25 4 a28 4 # needs to be able to do compare-and-swap on time_t (cmpxchg8b) .if ${MACHINE_ARCH} == "i386" CXXFLAGS+= -march=i586 .endif a32 1 SUBST_FILES.paths= core/CMakeLists.txt d45 2 a46 2 BAREOS_PIDDIR?= ${VARBASE}/run BAREOS_LOGDIR?= ${VARBASE}/log d78 5 a85 1 # reduce job log noise: CXXFLAGS+=-DNO_ADV=1 a86 1 CMAKE_ARGS+= -DSKIP_GTEST=1 d99 1 a99 1 CMAKE_ARGS+= -Dfd-user=root d104 2 d107 1 d110 1 a110 1 .include "../../lang/python27/buildlink3.mk" @