mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
sysutils/bareos23-*: Copy bareos-* ports to bareos23-* ones
- bareos-* ports will be updated to 24.0.0
This commit is contained in:
parent
13897196d5
commit
ef39a4e2d1
42 changed files with 4313 additions and 0 deletions
|
@ -108,6 +108,9 @@
|
|||
SUBDIR += bareos22-client
|
||||
SUBDIR += bareos22-server
|
||||
SUBDIR += bareos22-traymonitor
|
||||
SUBDIR += bareos23-client
|
||||
SUBDIR += bareos23-server
|
||||
SUBDIR += bareos23-traymonitor
|
||||
SUBDIR += barrier
|
||||
SUBDIR += bashtop
|
||||
SUBDIR += bastille
|
||||
|
|
20
sysutils/bareos23-client/Makefile
Normal file
20
sysutils/bareos23-client/Makefile
Normal file
|
@ -0,0 +1,20 @@
|
|||
PORTNAME= bareos
|
||||
PKGNAMESUFFIX= 23-client
|
||||
|
||||
COMMENT= Backup archiving recovery open sourced (client)
|
||||
|
||||
CONFLICTS= bareos22-client bareos21-client bareos20-client bareos-client
|
||||
|
||||
WITH_CLIENT_ONLY=yes
|
||||
USE_RC_SUBR= bareos-fd
|
||||
|
||||
PLIST= ${PKGDIR}/pkg-plist.client
|
||||
MASTERDIR= ${.CURDIR}/../../sysutils/bareos23-server
|
||||
|
||||
OPTIONS_GROUP= PLUGINS
|
||||
OPTIONS_GROUP_PLUGINS= GFAPI
|
||||
OPTIONS_DEFINE= NLS PYTHON SCSICRYPTO
|
||||
|
||||
GFAPI_DESC= GFAPI fd plugin support
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
230
sysutils/bareos23-server/Makefile
Normal file
230
sysutils/bareos23-server/Makefile
Normal file
|
@ -0,0 +1,230 @@
|
|||
PORTNAME= bareos
|
||||
DISTVERSIONPREFIX= Release/
|
||||
DISTVERSION= 23.1.1
|
||||
PORTREVISION?= 0
|
||||
CATEGORIES?= sysutils
|
||||
PKGNAMEPREFIX?= #
|
||||
PKGNAMESUFFIX?= 23-server
|
||||
|
||||
MAINTAINER= acm@FreeBSD.org
|
||||
COMMENT?= Backup archiving recovery open sourced (server)
|
||||
WWW= https://www.bareos.org/
|
||||
|
||||
LICENSE= AGPLv3 LGPL3
|
||||
LICENSE_COMB= multi
|
||||
|
||||
CONFLICTS?= bareos20-server bareos21-server bareos22-server bareos-server
|
||||
|
||||
LIB_DEPENDS+= liblzo2.so:archivers/lzo2 \
|
||||
libjansson.so:devel/jansson \
|
||||
libfmt.so:devel/libfmt
|
||||
|
||||
USES+= cmake compiler:c++11-lang cpe localbase:ldflags perl5 pkgconfig readline \
|
||||
shebangfix
|
||||
USE_GITHUB= yes
|
||||
USE_PERL5= run
|
||||
|
||||
USERS= bareos
|
||||
GROUPS= ${USERS}
|
||||
|
||||
PLIST_SUB+= LIB_VERSION=${PORTVERSION}
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
SHEBANG_LANG= perl python
|
||||
SHEBANG_GLOB= *.py
|
||||
SHEBANG_FILES= ${WRKSRC}/contrib/misc/bsmc/bin/bsmc
|
||||
|
||||
CPPFLAGS+= -I${LOCALBASE}/readline
|
||||
|
||||
OPTIONS_DEFAULT= OPENSSL
|
||||
OPTIONS_SINGLE= CRYPTO
|
||||
OPTIONS_SINGLE_CRYPTO= OPENSSL GNUTLS
|
||||
OPTIONS_SUB= yes
|
||||
CRYPTO_DESC= Cryptographic library
|
||||
MTX_DESC= Install mtx for control of autochanger devices
|
||||
NDMP_DESC= Enable build of NDMP support
|
||||
SCSICRYPTO_DESC= Build LTO AME crypto plugin
|
||||
|
||||
.if ${PKGNAMESUFFIX} == "23-server"
|
||||
OPTIONS_GROUP= BACKENDS
|
||||
OPTIONS_GROUP_BACKENDS= GFAPI
|
||||
OPTIONS_DEFINE= MTX PYTHON LMDB NDMP NLS SCSICRYPTO
|
||||
OPTIONS_DEFAULT+= LMDB PGSQL SCSICRYPTO
|
||||
OPTIONS_SINGLE_DATABASE= PGSQL
|
||||
OPTIONS_SINGLE+= DATABASE
|
||||
BACKENDS_DESC= Storage backends
|
||||
DATABASE_DESC= Database support
|
||||
GFAPI_DESC= GFAPI backend support
|
||||
LMDB_DESC= Enable faster accurate backup support
|
||||
|
||||
NDMP_CMAKE_ON= -Dndmp=ON
|
||||
NDMP_CMAKE_OFF= -Dndmp=OFF
|
||||
.endif
|
||||
|
||||
GNUTLS_CONFIGURE_WITH= gnutls=${LOCALBASE}
|
||||
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
|
||||
|
||||
OPENSSL_USES= ssl
|
||||
OPENSSL_CMAKE_ON= -Dopenssl=ON
|
||||
OPENSSL_CMAKE_OFF= -Dopenssl=OFF
|
||||
|
||||
SCSICRYPTO_CMAKE_ON= -Dscsi-crypto=ON
|
||||
SCSICRYPTO_CMAKE_OFF= -Dscsi-crypto=OFF
|
||||
|
||||
.if ${PKGNAMESUFFIX} == "23-client" || ${PKGNAMESUFFIX} == "23-server" #Till end of the file
|
||||
PYTHON_USES= python
|
||||
PYTHON_CMAKE_ON= -DENABLE_PYTHON=ON
|
||||
PYTHON_CMAKE_OFF= -DENABLE_PYTHON=OFF
|
||||
PYTHON_PLUGIN= yes
|
||||
|
||||
.if !defined(WITH_CLIENT_ONLY)
|
||||
LIB_DEPENDS+= libbareos.so:sysutils/bareos23-client
|
||||
USE_RC_SUBR?= bareos-dir bareos-sd
|
||||
.endif
|
||||
|
||||
.if defined(WITH_CLIENT_ONLY)
|
||||
SUB_FILES+= pkg-install.client pkg-deinstall.client pkg-message.client
|
||||
.else
|
||||
SUB_FILES+= pkg-message.server
|
||||
.endif
|
||||
|
||||
CMAKE_ARGS+= -Dtcp-wrappers=ON \
|
||||
-Dsmartalloc=ON \
|
||||
-Dsysconfdir=${PREFIX}/etc \
|
||||
-Darchivedir=${BAREOS_DIR}/storage \
|
||||
-Dworkingdir=${BAREOS_DIR} \
|
||||
-Dconfdir=${PREFIX}/etc/bareos \
|
||||
-Dlibdir=${PREFIX}/lib \
|
||||
-Dlogdir=/var/log/bareos \
|
||||
-Dincludedir=${PREFIX}/include/bareos \
|
||||
-Dreadline=ON \
|
||||
-Ddisable-conio=ON \
|
||||
-Dbatch-insert=ON \
|
||||
-Dhave_plugins=ON \
|
||||
-Dplugindir=${PREFIX}/lib/bareos/plugins \
|
||||
-Dscriptdir=${PREFIX}/lib/bareos/scripts \
|
||||
-Dbackenddir=${PREFIX}/lib/bareos/backends \
|
||||
-Ddump_email=root@localhost \
|
||||
-Djob_email=root@localhost \
|
||||
-Ddb_name=bareos \
|
||||
-Dsbin-perm=755 \
|
||||
-Ddb_user=bareos \
|
||||
-Dbaseport=9101 \
|
||||
-Dpiddir=/var/run/bareos
|
||||
|
||||
.if defined(WITH_CLIENT_ONLY)
|
||||
CFLAGS+= -DMDB_DSYNC=O_SYNC -DMDB_USE_POSIX_SEM=1
|
||||
|
||||
CMAKE_ARGS+= -Dfd-user=root \
|
||||
-Dfd-group=wheel \
|
||||
-Dlmdb=ON
|
||||
.else
|
||||
LMDB_CMAKE_ON= -Dlmdb=ON
|
||||
LMDB_CMAKE_OFF= -Dlmdb=OFF
|
||||
LMDB_CFLAGS+= -DMDB_DSYNC=O_SYNC -DMDB_USE_POSIX_SEM=1
|
||||
|
||||
CMAKE_ARGS+= -Ddir-user=${BAREOS_USER} \
|
||||
-Ddir-group=${BAREOS_GROUP} \
|
||||
-Dsd-user=${BAREOS_USER} \
|
||||
-Dsd-group=operator
|
||||
.endif
|
||||
|
||||
# The user/group IDs below are registered, see
|
||||
# http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#DADS-UID
|
||||
#
|
||||
BAREOS_USER?= bareos
|
||||
BAREOS_GROUP?= ${BAREOS_USER}
|
||||
BAREOS_UID?= 997
|
||||
BAREOS_GID?= ${BAREOS_UID}
|
||||
BAREOS_DIR?= /var/db/bareos
|
||||
|
||||
PLIST_SUB+= BAREOS_DIR=${BAREOS_DIR}
|
||||
|
||||
SUB_LIST= BAREOS_USER=${BAREOS_USER} \
|
||||
BAREOS_GROUP=${BAREOS_GROUP} \
|
||||
BAREOS_UID=${BAREOS_UID} \
|
||||
BAREOS_GID=${BAREOS_GID} \
|
||||
BAREOS_DIR=${BAREOS_DIR}
|
||||
|
||||
NLS_USES= gettext
|
||||
NLS_CMAKE_ON= -Dnls=ON
|
||||
GFAPI_CMAKE_ON= -Dgfapi=ON
|
||||
GFAPI_LIB_DEPENDS= libglusterfs.so:net/glusterfs
|
||||
|
||||
# Client only or full server version
|
||||
.if defined(WITH_CLIENT_ONLY)
|
||||
CONFFILES= fd
|
||||
CMAKE_ARGS+= -Dclient-only=ON \
|
||||
-DENABLE_WEBUI=OFF
|
||||
|
||||
PKGDEINSTALL= ${FILESDIR}/pkg-deinstall.client
|
||||
PKGINSTALL= ${FILESDIR}/pkg-install.client
|
||||
.else
|
||||
# Server only Options
|
||||
CONFFILES= sd dir
|
||||
CMAKE_ARGS+= -Dbuild-dird=ON \
|
||||
-Dbuild-stored=ON \
|
||||
-Dbuild_client_only=OFF
|
||||
# Server default database
|
||||
|
||||
MTX_RUN_DEPENDS= ${LOCALBASE}/sbin/mtx:misc/mtx
|
||||
PGSQL_CMAKE_ON= -Dpostgresql=ON
|
||||
PGSQL_USES= pgsql
|
||||
PGSQL_SUB_LIST= REQ_PGSQL=postgresql
|
||||
PGSQL_SUB_LIST_OFF= REQ_PGSQL=""
|
||||
.endif
|
||||
|
||||
.if defined(WITH_CLIENT_ONLY)
|
||||
MP1+= bconsole.1
|
||||
MP8+= bareos-fd.8
|
||||
.else
|
||||
MP8+= bareos.8 bareos-dir.8 bareos-sd.8 bcopy.8 bextract.8 bls.8 bscan.8 \
|
||||
btape.8 btraceback.8 bareos-dbcheck.8
|
||||
MP1+= bsmtp.1 bregex.1 bwild.1 bareos-tray-monitor.1
|
||||
.endif
|
||||
|
||||
MAKE_ENV+= MAN8="${MP8}" MAN1="${MP1}"
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} '136,141d' ${WRKSRC}/CMakeLists.txt
|
||||
.if ${PKGNAMESUFFIX} == "23-server"
|
||||
@${REINPLACE_CMD} '50d' ${WRKSRC}/core/src/plugins/CMakeLists.txt
|
||||
.endif
|
||||
.if ${PKGNAMESUFFIX} == "23-client"
|
||||
@${REINPLACE_CMD} -e 's|-Werror -Wall|-Wall|g' ${PATCH_WRKSRC}/core/CMakeLists.txt
|
||||
@${REINPLACE_CMD} -e 's|enable_testing()||g' ${WRKSRC}/CMakeLists.txt
|
||||
.endif
|
||||
|
||||
post-patch-PYTHON-off:
|
||||
@${REINPLACE_CMD} 's/set(python ON)/set(python OFF)/' ${WRKSRC}/cmake/BareosSetVariableDefaults.cmake
|
||||
|
||||
post-extract:
|
||||
.if defined(WITH_CLIENT_ONLY)
|
||||
. if defined(PYTHON_PLUGIN)
|
||||
@${MKDIR} ${STAGEDIR}${ETCDIR}/python-ldap-conf.d/bareos-dir.d/fileset
|
||||
@${MKDIR} ${STAGEDIR}${ETCDIR}/python-ldap-conf.d/bareos-dir.d/job
|
||||
. endif
|
||||
.endif
|
||||
@${MV} ${WRKSRC}/core/src/defaultconfigs/bareos-dir.d/fileset/'Windows All Drives.conf' \
|
||||
${WRKSRC}/core/src/defaultconfigs/bareos-dir.d/fileset/'WindowsAllDrives.conf'
|
||||
@${MV} ${WRKSRC}/contrib/misc/bsmc/etc/bareos/bsmc.conf \
|
||||
${WRKSRC}/contrib/misc/bsmc/etc/bareos/bsmc.conf.sample
|
||||
|
||||
.if !target(post-install)
|
||||
post-install:
|
||||
.if defined(WITH_CLIENT_ONLY)
|
||||
${MKDIR} ${STAGEDIR}${ETCDIR}/bconsole.d/
|
||||
${MV} ${STAGEDIR}${ETCDIR}/bconsole.conf.sample ${STAGEDIR}${ETCDIR}/bconsole.d/bconsole.conf.sample
|
||||
.else
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/chio-bareos ${STAGEDIR}${PREFIX}/sbin
|
||||
${INSTALL_DATA} ${FILESDIR}/bareos-barcodes ${STAGEDIR}${ETCDIR}/bareos-barcodes.sample
|
||||
${CHMOD} o+x ${STAGEDIR}${PREFIX}/bin/bsmtp
|
||||
${MV} ${STAGEDIR}${ETCDIR}/mtx-changer.conf ${STAGEDIR}${ETCDIR}/mtx-changer.conf.sample
|
||||
.endif
|
||||
@${MKDIR} ${STAGEDIR}/var/run/bareos
|
||||
.endif
|
||||
.else
|
||||
.include "${MASTERDIR}/Makefile.common"
|
||||
.endif # 23-client and 23-server are defined
|
||||
|
||||
.include <bsd.port.mk>
|
38
sysutils/bareos23-server/Makefile.common
Normal file
38
sysutils/bareos23-server/Makefile.common
Normal file
|
@ -0,0 +1,38 @@
|
|||
post-patch:
|
||||
@${REINPLACE_CMD} '76,79d' ${WRKSRC}/CMakeLists.txt
|
||||
.if (${PKGNAMESUFFIX} == "23-traymonitor-qt5") || (${PKGNAMESUFFIX} == "23-traymonitor-qt6")
|
||||
@${REINPLACE_CMD} -e 's|-Werror -Wall|-Wall|g' ${PATCH_WRKSRC}/core/CMakeLists.txt
|
||||
.endif
|
||||
|
||||
post-build:
|
||||
.if ${PKGNAMEPREFIX} == "nagios-check_"
|
||||
${MAKE_CMD} -C ${WRKSRC}/examples/nagios/check_bareos
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
.if (${PKGNAMESUFFIX} == "23-traymonitor-qt5") || (${PKGNAMESUFFIX} == "23-traymonitor-qt6")
|
||||
. for d in client director monitor storage
|
||||
${MKDIR} ${STAGEDIR}${ETCDIR}/tray-monitor.d/${d}
|
||||
${FIND} ${WRKSRC}/core/src/defaultconfigs/tray-monitor.d/${d} -type f -name '*.conf' -exec ${MV} -v {} {}.sample \;
|
||||
. endfor
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
.if ${PKGNAMEPREFIX} == "nagios-check_"
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/examples/nagios/check_bareos/check_bareos \
|
||||
${STAGEDIR}${PREFIX}/libexec/nagios
|
||||
.endif
|
||||
.if ${PKGNAMESUFFIX} == "23-client-static"
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/filed/static-bareos-fd ${STAGEDIR}${PREFIX}/sbin/bareos-fd-static
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/console/static-bconsole ${STAGEDIR}${PREFIX}/sbin/bconsole-static
|
||||
.endif
|
||||
.if (${PKGNAMESUFFIX} == "23-traymonitor-qt5") || (${PKGNAMESUFFIX} == "23-traymonitor-qt6")
|
||||
# Install config files and preserve existing ones
|
||||
.for d in client director monitor storage
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/core/src/defaultconfigs/tray-monitor.d/${d}/*.sample ${STAGEDIR}${ETCDIR}/tray-monitor.d/${d}/
|
||||
.endfor
|
||||
${INSTALL_PROGRAM} ${CONFIGURE_WRKSRC}/core/src/qt-tray-monitor/bareos-tray-monitor ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKSRC}/core/src/images/bareos_1.png ${STAGEDIR}${PREFIX}/share/pixmaps/bareos-tray-monitor.png
|
||||
${INSTALL_DATA} ${WRKSRC}/core/src/qt-tray-monitor/bareos-tray-monitor.desktop ${STAGEDIR}${DESKTOPDIR}
|
||||
.endif
|
3
sysutils/bareos23-server/distinfo
Normal file
3
sysutils/bareos23-server/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1733553941
|
||||
SHA256 (bareos-bareos-Release-23.1.1_GH0.tar.gz) = 468fbe12a509b65ca3de5041a901eb0cf1da5c9a4f1729ca57ed39f45fd428e7
|
||||
SIZE (bareos-bareos-Release-23.1.1_GH0.tar.gz) = 14010988
|
51
sysutils/bareos23-server/files/bareos-barcodes
Normal file
51
sysutils/bareos23-server/files/bareos-barcodes
Normal file
|
@ -0,0 +1,51 @@
|
|||
#
|
||||
# Bacula barcode simulation file
|
||||
# used by ${PREFIX}/sbin/chio-bareos (FreeBSD)
|
||||
#
|
||||
# The volumenames are returned by the "changer list" command
|
||||
# labeling in the console is done by "label barcodes"
|
||||
# (then all volumes belog to the default pool).
|
||||
# All Lines with an "#" at the bedinning are ignored
|
||||
#
|
||||
# !!!! If you export an tape and reinsert another one,
|
||||
# !!!! don't forget to change the volume name in this file!
|
||||
#
|
||||
1:Volume1-100
|
||||
2:Volume1-101
|
||||
3:Volume1-102
|
||||
4:Volume1-103
|
||||
5:Volume1-104
|
||||
6:Volume1-105
|
||||
7:Volume1-106
|
||||
8:Volume1-107
|
||||
9:Volume1-108
|
||||
10:Volume1-109
|
||||
11:Volume1-110
|
||||
12:Volume1-111
|
||||
#
|
||||
# Further volumes exported from the changer
|
||||
#
|
||||
# 36GB AIT2 tapes
|
||||
#Volume1-100
|
||||
#Volume1-101
|
||||
#Volume1-102
|
||||
#Volume1-103
|
||||
#Volume1-104
|
||||
#Volume1-105
|
||||
#Volume1-106
|
||||
#Volume1-107
|
||||
#Volume1-108
|
||||
#Volume1-109
|
||||
#Volume1-110
|
||||
#Volume1-111
|
||||
#Volume1-112
|
||||
#Volume1-113
|
||||
#Volume1-114
|
||||
#Volume1-115
|
||||
#
|
||||
# 50GB AIT2 tapes
|
||||
#Volume2-200
|
||||
#Volume2-201
|
||||
#Volume2-202
|
||||
#Volume2-203
|
||||
#Volume2-204
|
55
sysutils/bareos23-server/files/bareos-dir.in
Normal file
55
sysutils/bareos23-server/files/bareos-dir.in
Normal file
|
@ -0,0 +1,55 @@
|
|||
#!/bin/sh
|
||||
|
||||
# PROVIDE: bareos_dir
|
||||
# REQUIRE: DAEMON %%REQ_PGSQL%%
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
#
|
||||
# bareos_dir_enable (bool): Set to NO by default.
|
||||
# Set it to YES to enable bareos_dir.
|
||||
# bareos_dir_flags (params): Set params used to start bareos_dir.
|
||||
# bareos_dir_config (params): Path to the config file/directory
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="bareos_dir"
|
||||
rcvar=${name}_enable
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${bareos_dir_enable="NO"}
|
||||
: ${bareos_dir_flags="-u bareos -g bareos -v"}
|
||||
: ${bareos_dir_config="%%PREFIX%%/etc/bareos/"}
|
||||
: ${bareos_dir_pidfile="/var/run/bareos/bareos-dir.9101.pid"}
|
||||
|
||||
command=%%PREFIX%%/sbin/bareos-dir
|
||||
command_args="-c ${bareos_dir_config} -p ${bareos_dir_pidfile}"
|
||||
pidfile="${bareos_dir_pidfile}"
|
||||
bconsole_command=/usr/local/bin/bconsole
|
||||
start_precmd="bareos_start_precmd"
|
||||
restart_precmd="bareos_dir_configtest"
|
||||
reload_precmd="bareos_dir_configtest"
|
||||
reload_cmd="bareos_dir_reload"
|
||||
configtest_cmd="bareos_dir_configtest"
|
||||
|
||||
bareos_start_precmd() {
|
||||
[ -d "${pidfile%/*}" ] || install -d -o bareos -g bareos ${pidfile%/*}
|
||||
bareos_dir_configtest
|
||||
}
|
||||
|
||||
bareos_dir_configtest() {
|
||||
echo "Performing sanity check on ${bareos_dir_config} configuration:"
|
||||
eval ${command} -t
|
||||
}
|
||||
|
||||
bareos_dir_reload() {
|
||||
echo "Performing a graceful reload"
|
||||
# bconsole always exits with 0, so we can't check the return status for success.
|
||||
echo "reload" | ${bconsole_command}
|
||||
}
|
||||
|
||||
extra_commands="reload configtest"
|
||||
run_rc_command "$1"
|
46
sysutils/bareos23-server/files/bareos-fd.in
Normal file
46
sysutils/bareos23-server/files/bareos-fd.in
Normal file
|
@ -0,0 +1,46 @@
|
|||
#!/bin/sh
|
||||
|
||||
# PROVIDE: bareos_fd
|
||||
# REQUIRE: DAEMON
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
#
|
||||
# bareos_fd_enable (bool): Set to NO by default.
|
||||
# Set it to YES to enable bareos_fd.
|
||||
# bareos_fd_flags (params): Set params used to start bareos_fd.
|
||||
# bareos_fd_config (params): Path to the config file/directory
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="bareos_fd"
|
||||
rcvar=${name}_enable
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${bareos_fd_enable="NO"}
|
||||
: ${bareos_fd_flags="-u root -g wheel -v"}
|
||||
: ${bareos_fd_config="%%PREFIX%%/etc/bareos/"}
|
||||
: ${bareos_fd_pidfile="/var/run/bareos/bareos-fd.9102.pid"}
|
||||
|
||||
command=%%PREFIX%%/sbin/bareos-fd
|
||||
command_args="-c ${bareos_fd_config} -p ${bareos_fd_pidfile}"
|
||||
pidfile="${bareos_fd_pidfile}"
|
||||
start_precmd="bareos_start_precmd"
|
||||
|
||||
bareos_start_precmd() {
|
||||
[ -d "${pidfile%/*}" ] || {
|
||||
getent passwd bareos > /dev/null 2&>1
|
||||
if [ $? -eq 0] ; then
|
||||
# user bareos exists
|
||||
install -d -o bareos -g bareos ${pidfile%/*}
|
||||
else
|
||||
# bareos_fd as solitair service
|
||||
install -d -o root -g wheel ${pidfile%/*}
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
37
sysutils/bareos23-server/files/bareos-sd.in
Normal file
37
sysutils/bareos23-server/files/bareos-sd.in
Normal file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/sh
|
||||
|
||||
# PROVIDE: bareos_sd
|
||||
# REQUIRE: DAEMON
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
#
|
||||
# bareos_sd_enable (bool): Set to NO by default.
|
||||
# Set it to YES to enable bareos_sd.
|
||||
# bareos_sd_flags (params): Set params used to start bareos_sd.
|
||||
# bareos_sd_config (params): Path to the config file/directory
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="bareos_sd"
|
||||
rcvar=${name}_enable
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${bareos_sd_enable="NO"}
|
||||
: ${bareos_sd_flags="-u bareos -g bareos -v"}
|
||||
: ${bareos_sd_config="%%PREFIX%%/etc/bareos/"}
|
||||
: ${bareos_sd_pidfile="/var/run/bareos/bareos-sd.9103.pid"}
|
||||
|
||||
command=%%PREFIX%%/sbin/bareos-sd
|
||||
command_args="-c ${bareos_sd_config} -p ${bareos_sd_pidfile}"
|
||||
pidfile="${bareos_sd_pidfile}"
|
||||
start_precmd="bareos_start_precmd"
|
||||
|
||||
bareos_start_precmd() {
|
||||
[ -d "${pidfile%/*}" ] || install -d -o bareos -g bareos ${pidfile%/*}
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
190
sysutils/bareos23-server/files/chio-bareos
Normal file
190
sysutils/bareos23-server/files/chio-bareos
Normal file
|
@ -0,0 +1,190 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# BAREOS interface to tape libraries and autoloaders for FreeBSD
|
||||
# (by Rudolf Cejka <cej...@fit.vutbr.cz>, v1.2, 2012/11/14)
|
||||
#
|
||||
# If you set in your Device resource
|
||||
# Changer Command = "path-to-this-script/chio-changer %c %o %S %a %d"
|
||||
# you will have the following input to this script:
|
||||
# chio-changer "changer-device" "command" "slot" "tape-device" "drive-index"
|
||||
# $1 $2 $3 $4 $5
|
||||
# for example (on a FreeBSD system):
|
||||
# chio-changer /dev/ch0 load 1 /dev/nsa0 0
|
||||
#
|
||||
# If you change the script, take care to return either the chio exit
|
||||
# code or a 0. If the script exits with a non-zero exit code, BAREOS
|
||||
# will assume the request failed.
|
||||
#
|
||||
|
||||
PROGNAME=`basename $0`
|
||||
|
||||
# Uncomment the following line, if you want to log debug output.
|
||||
#DEBUG=/var/run/bareos/${PROGNAME}.log
|
||||
|
||||
# Uncomment the following line, if you need to eject a tape before moving
|
||||
# it from the drive.
|
||||
#OFFLINE=yes
|
||||
|
||||
# Uncomment one or more of the following lines, if you need to wait for
|
||||
# some time (in seconds) after unloading, loading or transferring a tape.
|
||||
#OFFLINE_SLEEP=10
|
||||
#LOAD_SLEEP=10
|
||||
#MOVE_SLEEP=10
|
||||
|
||||
# Uncomment the following line, if you do not have a changer with volume
|
||||
# reader.
|
||||
#FAKE_BARCODES=/usr/local/etc/bareos-barcodes
|
||||
|
||||
usage()
|
||||
{
|
||||
cat <<EOF
|
||||
Usage: ${PROGNAME} <changer-device> <cmd> [slot] [tape-device] [drive-index]
|
||||
|
||||
Commands (<cmd>):
|
||||
unload Unload a tape into the slot from where it was loaded
|
||||
load <slot> Load a tape from the slot <slot> (1-based)
|
||||
transfer <slot> <slotdst> Transfer a tape from the slot <slot> to
|
||||
the slot <slotdst> (1-based)
|
||||
list List full storage slots
|
||||
listall List all storage slots and drives with source information
|
||||
loaded Give slot from where the tape was loaded (0 = empty drive)
|
||||
slots Give number of available slots
|
||||
|
||||
Example:
|
||||
${PROGNAME} /dev/ch0 load 1 Load a tape from the slot 1
|
||||
|
||||
EOF
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Default settings
|
||||
CHANGER=/dev/ch0
|
||||
TAPE=/dev/nsa0
|
||||
DRIVE=0
|
||||
|
||||
CHIO=/bin/chio
|
||||
MT=/usr/bin/mt
|
||||
|
||||
if [ -n "${DEBUG}" ]; then
|
||||
MSG=$0
|
||||
for PAR; do MSG="${MSG} \"${PAR}\""; done
|
||||
echo `date +"%Y/%m/%d %H:%M:%S"` ${MSG} >> ${DEBUG}
|
||||
fi
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
CHANGER=$1;
|
||||
fi
|
||||
COMMAND=$2
|
||||
SLOT=$3
|
||||
SLOTDST=$4
|
||||
if [ -n "$4" ]; then
|
||||
TAPE=$4
|
||||
fi
|
||||
if [ -n "$5" ]; then
|
||||
DRIVE=$5
|
||||
fi
|
||||
|
||||
case ${COMMAND} in
|
||||
unload)
|
||||
if [ "${OFFLINE}" = yes ]; then
|
||||
${MT} -f ${TAPE} offline
|
||||
if [ $? = 0 -a -n "${OFFLINE_SLEEP}" ]; then
|
||||
sleep ${OFFLINE_SLEEP}
|
||||
fi
|
||||
fi
|
||||
if [ -z "${SLOT}" ]; then
|
||||
${CHIO} -f ${CHANGER} return drive ${DRIVE}
|
||||
else
|
||||
${CHIO} -f ${CHANGER} move drive ${DRIVE} slot $((${SLOT} - 1))
|
||||
fi
|
||||
if [ $? -ne 0 ]; then
|
||||
# In case of an error, try to unload the cartridge to the first free slot
|
||||
FREE=`${CHIO} -f ${CHANGER} status slot | \
|
||||
sed -ne '/FULL/d;s/^slot *\([0-9]*\):.*/\1/p' | \
|
||||
awk 'BEGIN { n = 0 } { n = $1 + 1; exit } END { print n }'`
|
||||
if [ ${FREE} -gt 0 ]; then
|
||||
${CHIO} -f ${CHANGER} move drive ${DRIVE} slot $((${FREE} - 1))
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
load)
|
||||
if [ -z "${SLOT}" ]; then
|
||||
usage
|
||||
fi
|
||||
${CHIO} -f ${CHANGER} move slot $((${SLOT} - 1)) drive ${DRIVE}
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
if [ -n "${LOAD_SLEEP}" ]; then
|
||||
sleep ${LOAD_SLEEP}
|
||||
fi
|
||||
;;
|
||||
transfer)
|
||||
if [ -z "${SLOT}" -o -z "${SLOTDST}" ]; then
|
||||
usage
|
||||
fi
|
||||
${CHIO} -f ${CHANGER} move slot $((${SLOT} - 1)) slot $((${SLOTDST} - 1))
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
if [ -n "${MOVE_SLEEP}" ]; then
|
||||
sleep ${MOVE_SLEEP}
|
||||
fi
|
||||
;;
|
||||
list)
|
||||
if [ -z "${FAKE_BARCODES}" ]; then
|
||||
${CHIO} -f ${CHANGER} status -v slot | \
|
||||
sed -ne 's/^slot *\([0-9]*\):.*FULL.*voltag.*<\([^:]*\):.*/\1:\2/p' | \
|
||||
awk -F: '{ print $1 + 1 ":" $2 }'
|
||||
else
|
||||
if [ -f "${FAKE_BARCODES}" ]; then
|
||||
grep -v -e "^#" -e "^$" < ${FAKE_BARCODES}
|
||||
else
|
||||
echo "${PROGNAME}: Barcode file ${FAKE_BARCODES} is missing"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
listall)
|
||||
if [ -z "${FAKE_BARCODES}" ]; then
|
||||
${CHIO} -f ${CHANGER} status -vS | \
|
||||
sed -ne '
|
||||
s/^slot *\([0-9]*\):.*ENAB.*FULL.*voltag.*<\([^:]*\):.*/I:\1:F:\2/p;t
|
||||
s/^slot *\([0-9]*\):.*FULL.*voltag.*<\([^:]*\):.*/S:\1:F:\2/p;t
|
||||
s/^drive *\([0-9]*\):.*FULL.*voltag.*<\([^:]*\):.*source.*<[^0-9]*\([0-9]*\)>.*/D:\1:F:\3:\2/p;t
|
||||
s/^slot *\([0-9]*\):.*ENAB.*voltag.*<\([^:]*\):.*/I:\1:E/p;t
|
||||
s/^slot *\([0-9]*\):.*voltag.*<\([^:]*\):.*/S:\1:E/p;t
|
||||
s/^drive *\([0-9]*\):.*voltag.*<\([^:]*\):.*/D:\1:E/p' | \
|
||||
awk -F: '{ for (n = 1; n <= NF; n++) printf "%s%s",
|
||||
(n == ($1 == "D" ? 4 : 2)) ? ($n == "" ? 0 : $n + 1) : $n,
|
||||
(n == NF) ? "\n" : ":" }'
|
||||
else
|
||||
if [ -f "${FAKE_BARCODES}" ]; then
|
||||
grep -v -e "^#" -e "^$" < ${FAKE_BARCODES} | \
|
||||
awk -F: '{ print "S:" $1 (match($2, "^ *$") ? ":E" : ":F:" $2) }'
|
||||
else
|
||||
echo "${PROGNAME}: Barcode file ${FAKE_BARCODES} is missing"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
loaded)
|
||||
# If a tape is loaded, but the source slot is unknown (for example,
|
||||
# after library reboot), try to report the first free slot
|
||||
FREE=`${CHIO} -f ${CHANGER} status slot | \
|
||||
sed -ne '/FULL/d;s/^slot *\([0-9]*\):.*/\1/p' | \
|
||||
awk 'BEGIN { n = 0 } { n = $1 + 1; exit } END { print n }'`
|
||||
${CHIO} -f ${CHANGER} status -S drive | \
|
||||
sed -ne 's/^drive *'${DRIVE}':.*FULL.*source.*<[^0-9]*\([0-9]*\)>.*/\1/p' \
|
||||
| awk 'BEGIN { n = 0 } { n = ($1 == "") ? '${FREE}' : $1 + 1 } \
|
||||
END { print n }'
|
||||
;;
|
||||
slots)
|
||||
${CHIO} -f ${CHANGER} status | grep -c "^slot "
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
;;
|
||||
esac
|
|
@ -0,0 +1,11 @@
|
|||
--- contrib/misc/bsmc/CMakeLists.txt 2023-04-07 17:32:44.243346000 -0500
|
||||
+++ contrib/misc/bsmc/CMakeLists.txt 2023-04-07 17:33:04.594841000 -0500
|
||||
@@ -27,7 +27,7 @@
|
||||
)
|
||||
|
||||
install(
|
||||
- FILES etc/bareos/bsmc.conf
|
||||
+ FILES etc/bareos/bsmc.conf.sample
|
||||
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ
|
||||
DESTINATION "${confdir}"
|
||||
)
|
27
sysutils/bareos23-server/files/patch-contrib_CMakeLists.txt
Normal file
27
sysutils/bareos23-server/files/patch-contrib_CMakeLists.txt
Normal file
|
@ -0,0 +1,27 @@
|
|||
--- contrib/CMakeLists.txt 2023-03-24 08:05:20.000000000 -0500
|
||||
+++ contrib/CMakeLists.txt 2023-04-07 17:52:51.095371000 -0500
|
||||
@@ -24,10 +24,18 @@
|
||||
include(GNUInstallDirs)
|
||||
include(BareosSetVariableDefaults)
|
||||
|
||||
-add_subdirectory(fd-plugins)
|
||||
-if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
|
||||
- add_subdirectory(misc)
|
||||
-endif()
|
||||
-if(NOT client-only)
|
||||
- add_subdirectory(dir-plugins)
|
||||
+if(python)
|
||||
+ if(client-only)
|
||||
+ add_subdirectory(fd-plugins)
|
||||
+ endif()
|
||||
+
|
||||
+ if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
|
||||
+ if(client-only)
|
||||
+ add_subdirectory(misc)
|
||||
+ endif()
|
||||
+ endif()
|
||||
+
|
||||
+ if(NOT client-only)
|
||||
+ add_subdirectory(dir-plugins)
|
||||
+ endif()
|
||||
endif()
|
41
sysutils/bareos23-server/files/patch-core-CMakeLists.txt
Normal file
41
sysutils/bareos23-server/files/patch-core-CMakeLists.txt
Normal file
|
@ -0,0 +1,41 @@
|
|||
--- core/CMakeLists.txt 2023-12-13 17:44:47.000000000 -0500
|
||||
+++ core/CMakeLists.txt 2024-01-10 01:25:40.807505000 -0500
|
||||
@@ -333,7 +333,9 @@
|
||||
set(HAVE_FREEBSD_OS 1)
|
||||
include_directories(/usr/local/include)
|
||||
link_directories(/usr/local/lib)
|
||||
- link_libraries(intl)
|
||||
+ if(nls)
|
||||
+ link_libraries(intl)
|
||||
+ endif()
|
||||
check_cxx_compiler_flag(
|
||||
-Wunused-but-set-variable compiler_will_warn_of_unused_but_set_variable
|
||||
)
|
||||
@@ -386,7 +388,9 @@
|
||||
add_definitions("-D_FILE_OFFSET_BITS=64")
|
||||
endif()
|
||||
|
||||
-include(FindIntl)
|
||||
+if(nls)
|
||||
+ include(FindIntl)
|
||||
+endif()
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wall -Wextra")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra")
|
||||
@@ -400,7 +404,7 @@
|
||||
include(BareosFindStaticCodeAnalysisTools)
|
||||
|
||||
if(NOT client-only
|
||||
- AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS"
|
||||
+ AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS|FreeBSD"
|
||||
AND CMAKE_SIZEOF_VOID_P EQUAL 8
|
||||
)
|
||||
# droplet does not build on solaris because of sys/cdefs.h: No such file or
|
||||
@@ -777,7 +781,6 @@
|
||||
|
||||
include(BareosConfigureFile)
|
||||
|
||||
-add_subdirectory(platforms)
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(scripts)
|
||||
add_subdirectory(manpages)
|
|
@ -0,0 +1,12 @@
|
|||
--- core/cmake/BareosCheckIncludes.cmake 2023-03-24 08:05:20.000000000 -0500
|
||||
+++ core/cmake/BareosCheckIncludes.cmake 2023-04-05 16:17:56.933566000 -0500
|
||||
@@ -62,7 +62,9 @@
|
||||
|
||||
include(CheckSymbolExists)
|
||||
|
||||
+if(gfapi)
|
||||
check_include_files(glusterfs/api/glfs.h HAVE_GLUSTERFS_API_GLFS_H)
|
||||
+endif()
|
||||
|
||||
check_include_files(sys/prctl.h HAVE_SYS_PRCTL_H)
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
--- core/cmake/BareosFindAllLibraries.cmake 2023-03-24 08:05:20.000000000 -0500
|
||||
+++ core/cmake/BareosFindAllLibraries.cmake 2023-04-05 16:21:00.503424000 -0500
|
||||
@@ -177,7 +177,9 @@
|
||||
|
||||
bareosfindlibraryandheaders("pthread" "pthread.h" "")
|
||||
bareosfindlibraryandheaders("cap" "sys/capability.h" "")
|
||||
+if(gfapi)
|
||||
bareosfindlibraryandheaders("gfapi" "glusterfs/api/glfs.h" "")
|
||||
+endif()
|
||||
|
||||
bareosfindlibraryandheaders("pam" "security/pam_appl.h" "")
|
||||
|
|
@ -0,0 +1,118 @@
|
|||
--- core/cmake/BareosInstallConfigFiles.cmake 2023-12-13 07:48:37.000000000 -0500
|
||||
+++ core/cmake/BareosInstallConfigFiles.cmake 2024-01-05 01:02:51.562611000 -0500
|
||||
@@ -27,27 +27,13 @@
|
||||
endif()
|
||||
|
||||
get_filename_component(fname ${configfile} NAME)
|
||||
- if(EXISTS ${DESTCONFDIR}${additionalconfigdir}/${fname})
|
||||
- message(
|
||||
- STATUS "${DESTCONFDIR}${additionalconfigdir}/${fname} already exists"
|
||||
- )
|
||||
- message(
|
||||
- STATUS
|
||||
- "Installing config: ${DESTCONFDIR}${additionalconfigdir}/${fname}.new"
|
||||
- )
|
||||
- file(RENAME "${configfile}" "${configfile}.new")
|
||||
- file(COPY "${configfile}.new"
|
||||
- DESTINATION "${DESTCONFDIR}${additionalconfigdir}"
|
||||
- )
|
||||
- file(RENAME "${configfile}.new" "${configfile}")
|
||||
- else()
|
||||
- message(
|
||||
- STATUS "Installing config: ${DESTCONFDIR}${additionalconfigdir}/${fname}"
|
||||
- )
|
||||
- file(COPY "${configfile}"
|
||||
- DESTINATION "${DESTCONFDIR}${additionalconfigdir}"
|
||||
- )
|
||||
- endif()
|
||||
+
|
||||
+ message(STATUS "${DESTCONFDIR}${additionalconfigdir}/${fname} as ${DESTCONFDIR}${additionalconfigdir}/${fname}.sample (new installation)")
|
||||
+ file(RENAME "${configfile}" "${configfile}.sample")
|
||||
+ file(
|
||||
+ COPY "${configfile}.sample"
|
||||
+ DESTINATION "${DESTCONFDIR}${additionalconfigdir}"
|
||||
+ )
|
||||
endfunction()
|
||||
|
||||
macro(BareosInstallConfigFiles CONFDIR CONFIGBASEDIRECTORY PLUGINS BACKENDS
|
||||
@@ -125,23 +111,12 @@
|
||||
get_filename_component(dir ${configfile} DIRECTORY)
|
||||
get_filename_component(fname ${configfile} NAME)
|
||||
|
||||
- if(EXISTS ${DESTCONFDIR}/${configfile})
|
||||
- message(STATUS "${configfile} as ${configfile}.new (keep existing)")
|
||||
- file(RENAME "${BackendConfigSrcDir}/${configfile}"
|
||||
- "${BackendConfigSrcDir}/${configfile}.new"
|
||||
- )
|
||||
- file(COPY "${BackendConfigSrcDir}/${configfile}.new"
|
||||
- DESTINATION "${DESTCONFDIR}/${dir}"
|
||||
- )
|
||||
- file(RENAME "${BackendConfigSrcDir}/${configfile}.new"
|
||||
- "${BackendConfigSrcDir}/${configfile}"
|
||||
- )
|
||||
- else()
|
||||
- message(STATUS "${configfile} as ${configfile}")
|
||||
- file(COPY "${BackendConfigSrcDir}/${configfile}"
|
||||
- DESTINATION "${DESTCONFDIR}/${dir}"
|
||||
- )
|
||||
- endif()
|
||||
+ message(STATUS "${configfile} as ${configfile}.sample")
|
||||
+ file(RENAME "${BackendConfigSrcDir}/${configfile}" "${BackendConfigSrcDir}/${configfile}.sample")
|
||||
+ file(
|
||||
+ COPY "${BackendConfigSrcDir}/${configfile}.sample"
|
||||
+ DESTINATION "${DESTCONFDIR}/${dir}"
|
||||
+ )
|
||||
endforeach()
|
||||
|
||||
file(
|
||||
@@ -151,7 +126,8 @@
|
||||
)
|
||||
foreach(configfile ${configfiles})
|
||||
get_filename_component(dir ${configfile} DIRECTORY)
|
||||
- # get_filename_component(fname ${configfile} NAME)
|
||||
+ get_filename_component(fname ${configfile} NAME)
|
||||
+ get_filename_component(fsname ${configfile} NAME_WE)
|
||||
|
||||
if(EXISTS ${DESTCONFDIR}/${configfile})
|
||||
message(STATUS "overwriting ${configfile}")
|
||||
@@ -159,8 +135,10 @@
|
||||
message(STATUS "${configfile} as ${configfile}")
|
||||
endif()
|
||||
|
||||
- file(COPY "${BackendConfigSrcDir}/${configfile}"
|
||||
- DESTINATION "${DESTCONFDIR}/${dir}"
|
||||
+ file(RENAME "${BackendConfigSrcDir}/${configfile}" "${BackendConfigSrcDir}/${fsname}.conf.sample")
|
||||
+ file(
|
||||
+ COPY "${BackendConfigSrcDir}/${fsname}.conf.sample"
|
||||
+ DESTINATION "${DESTCONFDIR}/${dir}"
|
||||
)
|
||||
endforeach()
|
||||
|
||||
@@ -188,20 +166,13 @@
|
||||
string(REGEX MATCH "\\.in\$" IS_INFILE ${configfile})
|
||||
if(NOT "${IS_INFILE}" STREQUAL ".in")
|
||||
get_filename_component(fname ${configfile} NAME)
|
||||
- if(EXISTS ${DESTCONFDIR}/${resname}/${fname})
|
||||
- message(
|
||||
- STATUS
|
||||
- "${resname}/${fname} as ${resname}/${fname}.new (keep existing)"
|
||||
- )
|
||||
- file(RENAME "${configfile}" "${configfile}.new")
|
||||
- file(COPY "${configfile}.new"
|
||||
- DESTINATION "${DESTCONFDIR}/${resname}"
|
||||
- )
|
||||
- file(RENAME "${configfile}.new" "${configfile}")
|
||||
- else()
|
||||
- message(STATUS "${resname}/${fname} as ${resname}/${fname}")
|
||||
- file(COPY "${configfile}" DESTINATION "${DESTCONFDIR}/${resname}")
|
||||
- endif()
|
||||
+ get_filename_component(fsname ${configfile} NAME_WE)
|
||||
+ message(STATUS "${resname}/${fname} as ${resname}/${fname}")
|
||||
+ file(RENAME "${configfile}" "${resdir}/${fsname}.conf.sample")
|
||||
+ file(
|
||||
+ COPY "${resdir}/${fsname}.conf.sample"
|
||||
+ DESTINATION "${DESTCONFDIR}/${resname}"
|
||||
+ )
|
||||
else()
|
||||
message(STATUS "skipping .in file ${configfile}:${IS_INFILE}")
|
||||
endif()
|
|
@ -0,0 +1,16 @@
|
|||
--- core/manpages/CMakeLists.txt 2021-12-21 06:00:49.000000000 -0500
|
||||
+++ core/manpages/CMakeLists.txt 2021-12-22 00:19:52.189513000 -0500
|
||||
@@ -18,9 +18,11 @@
|
||||
# 02110-1301, USA.
|
||||
message("Entering ${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
||||
-set(MAN1 bconsole.1 bsmtp.1)
|
||||
+if(client-only)
|
||||
+ set(MAN1 bconsole.1 bsmtp.1)
|
||||
|
||||
-set(MAN8 bareos-fd.8 bareos.8 btraceback.8)
|
||||
+ set(MAN8 bareos-fd.8 bareos.8 btraceback.8)
|
||||
+endif()
|
||||
|
||||
if(NOT client-only)
|
||||
set(MAN1-server bareos-tray-monitor.1 bwild.1 bregex.1)
|
|
@ -0,0 +1,75 @@
|
|||
--- core/scripts/CMakeLists.txt 2023-12-13 17:44:47.000000000 -0500
|
||||
+++ core/scripts/CMakeLists.txt 2024-01-10 01:38:45.931532000 -0500
|
||||
@@ -18,41 +18,44 @@
|
||||
# 02110-1301, USA.
|
||||
message("Entering ${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
||||
-install(
|
||||
- FILES bareos btraceback
|
||||
- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
|
||||
- WORLD_READ WORLD_EXECUTE
|
||||
- DESTINATION "${sbindir}"
|
||||
-)
|
||||
+if(client-only)
|
||||
+ install(
|
||||
+ FILES bareos btraceback
|
||||
+ PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
|
||||
+ WORLD_READ WORLD_EXECUTE
|
||||
+ DESTINATION "${sbindir}"
|
||||
+ )
|
||||
|
||||
-install(
|
||||
- FILES bareos-ctl-fd
|
||||
- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
|
||||
- WORLD_READ WORLD_EXECUTE
|
||||
- DESTINATION "${scriptdir}"
|
||||
- COMPONENT filedaemon
|
||||
-)
|
||||
+ install(
|
||||
+ FILES bareos-ctl-fd
|
||||
+ PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
|
||||
+ WORLD_READ WORLD_EXECUTE
|
||||
+ DESTINATION "${scriptdir}"
|
||||
+ COMPONENT filedaemon
|
||||
+ )
|
||||
|
||||
-install(
|
||||
- FILES bareos bareos-config
|
||||
- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
|
||||
- WORLD_READ WORLD_EXECUTE
|
||||
- DESTINATION "${scriptdir}"
|
||||
-)
|
||||
-
|
||||
-install(
|
||||
- FILES bareos-config-lib.sh bareos-ctl-funcs btraceback.gdb btraceback.dbx
|
||||
- btraceback.mdb
|
||||
- PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
||||
- DESTINATION "${scriptdir}"
|
||||
-)
|
||||
-if(TARGET python3-fd)
|
||||
install(
|
||||
- FILES bareos_encode_string.py
|
||||
+ FILES bareos bareos-config
|
||||
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
|
||||
WORLD_READ WORLD_EXECUTE
|
||||
DESTINATION "${scriptdir}"
|
||||
)
|
||||
+
|
||||
+ install(
|
||||
+ FILES bareos-config-lib.sh bareos-ctl-funcs btraceback.gdb btraceback.dbx
|
||||
+ btraceback.mdb
|
||||
+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
||||
+ DESTINATION "${scriptdir}"
|
||||
+ )
|
||||
+
|
||||
+ if(TARGET python3-fd)
|
||||
+ install(
|
||||
+ FILES bareos_encode_string.py
|
||||
+ PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
|
||||
+ WORLD_READ WORLD_EXECUTE
|
||||
+ DESTINATION "${scriptdir}"
|
||||
+ )
|
||||
+ endif()
|
||||
endif()
|
||||
|
||||
if(NOT client-only)
|
|
@ -0,0 +1,20 @@
|
|||
--- core/src/dird/CMakeLists.txt 2023-12-13 17:44:47.000000000 -0500
|
||||
+++ core/src/dird/CMakeLists.txt 2024-01-10 01:43:08.391137000 -0500
|
||||
@@ -160,7 +160,7 @@
|
||||
target_sources(bareos-dir PRIVATE dird.cc)
|
||||
|
||||
target_link_libraries(
|
||||
- bareos-dir PRIVATE dird_objects bareossql bareosfind CLI11::CLI11
|
||||
+ bareos-dir PRIVATE ${JANSSON_LIBRARIES} dird_objects bareossql bareosfind CLI11::CLI11
|
||||
)
|
||||
|
||||
if(HAVE_WIN32)
|
||||
@@ -185,7 +185,7 @@
|
||||
add_executable(bareos-dbcheck ${DBCHKSRCS})
|
||||
|
||||
target_link_libraries(
|
||||
- bareos-dbcheck PRIVATE bareossql bareos bareosfind ${OPENSSL_LIBRARIES}
|
||||
+ bareos-dbcheck PRIVATE ${JANSSON_LIBRARIES} bareossql bareos bareosfind ${OPENSSL_LIBRARIES}
|
||||
CLI11::CLI11
|
||||
)
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
--- core/src/dird/vbackup.cc 2023-04-07 16:02:23.780510000 -0500
|
||||
+++ core/src/dird/vbackup.cc 2023-04-07 16:10:20.351116000 -0500
|
||||
@@ -77,7 +77,7 @@
|
||||
std::vector<std::string> JobList;
|
||||
std::vector<std::string> JobsWithPurgedFiles;
|
||||
|
||||
- bool operator()(int num_fields, char** row)
|
||||
+ bool operator()([[maybe_unused]] int num_fields, char** row)
|
||||
{
|
||||
assert(num_fields == 5);
|
||||
JobList.push_back(row[col_JobId]);
|
|
@ -0,0 +1,13 @@
|
|||
--- core/src/plugins/filed/CMakeLists.txt 2020-12-16 02:46:16.000000000 -0500
|
||||
+++ core/src/plugins/filed/CMakeLists.txt 2020-12-23 22:56:13.843714000 -0500
|
||||
@@ -41,7 +41,9 @@
|
||||
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
-add_subdirectory(python)
|
||||
+if(python)
|
||||
+ add_subdirectory(python)
|
||||
+endif()
|
||||
|
||||
add_library(bpipe-fd MODULE bpipe/bpipe-fd.cc)
|
||||
set_target_properties(bpipe-fd PROPERTIES PREFIX "")
|
|
@ -0,0 +1,15 @@
|
|||
--- core/src/plugins/stored/CMakeLists.txt 2021-12-21 06:00:49.000000000 -0500
|
||||
+++ core/src/plugins/stored/CMakeLists.txt 2022-01-15 09:28:41.225020000 -0500
|
||||
@@ -33,6 +33,12 @@
|
||||
endif()
|
||||
endif()
|
||||
|
||||
+if(HAVE_FREEBSD_OS)
|
||||
+ include_directories(
|
||||
+ ${PROJECT_SOURCE_DIR}/src/fastlz/include
|
||||
+ )
|
||||
+endif()
|
||||
+
|
||||
add_subdirectory(python)
|
||||
|
||||
add_library(autoxflate-sd MODULE autoxflate/autoxflate-sd.cc)
|
|
@ -0,0 +1,32 @@
|
|||
--- core/src/qt-tray-monitor/CMakeLists.txt 2024-01-19 16:46:50.252975000 -0500
|
||||
+++ core/src/qt-tray-monitor/CMakeLists.txt 2024-01-19 16:52:05.137955000 -0500
|
||||
@@ -27,20 +27,19 @@
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
|
||||
-find_package(Qt6 COMPONENTS Core Widgets)
|
||||
-if(Qt6Widgets_FOUND)
|
||||
- message(STATUS "Found QT6Widgets")
|
||||
-else()
|
||||
- message(STATUS "QT6Widgets NOT found, checking for Qt5 ...")
|
||||
+if(bat-qt6)
|
||||
+ find_package(Qt6 COMPONENTS Core Widgets)
|
||||
+ if(Qt6Widgets_FOUND)
|
||||
+ message(STATUS "Found QT6Widgets")
|
||||
+ else()
|
||||
+ message(FATAL_ERROR "QT6Widgets NOT found, cannot build tray-monitor")
|
||||
+ endif()
|
||||
+else()
|
||||
find_package(Qt5 COMPONENTS Core Widgets)
|
||||
if(Qt5Widgets_FOUND)
|
||||
message(STATUS "Found QT5Widgets")
|
||||
else()
|
||||
- message(STATUS "QT5Widgets NOT found, checking for Qt4 ...")
|
||||
- find_package(Qt4)
|
||||
- if(NOT Qt4_FOUND)
|
||||
- message(FATAL_ERROR "Both Qt5 and Qt4 not found, cannot build tray-monitor")
|
||||
- endif()
|
||||
+ message(STATUS "QT5Widgets NOT found, cannot build tray-monitor")
|
||||
endif()
|
||||
endif()
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
--- core/src/stored/CMakeLists.txt 2023-03-24 08:05:20.000000000 -0500
|
||||
+++ core/src/stored/CMakeLists.txt 2023-04-05 16:36:35.928423000 -0500
|
||||
@@ -168,7 +168,7 @@
|
||||
|
||||
target_link_libraries(stored_objects PRIVATE Threads::Threads)
|
||||
target_link_libraries(
|
||||
- bareos-sd PRIVATE stored_objects bareos bareossd bareosfind CLI11::CLI11
|
||||
+ bareos-sd PRIVATE ${JANSSON_LIBRARIES} stored_objects bareos bareossd bareosfind CLI11::CLI11
|
||||
)
|
||||
|
||||
if(HAVE_WIN32)
|
||||
@@ -177,7 +177,7 @@
|
||||
endif()
|
||||
if(HAVE_NDMP)
|
||||
target_link_libraries(stored_objects PRIVATE bareosndmp)
|
||||
- target_link_libraries(bareos-sd PRIVATE bareosndmp)
|
||||
+ target_link_libraries(bareos-sd PRIVATE ${JANSSON_LIBRARIES} bareosndmp)
|
||||
endif()
|
||||
|
||||
add_executable(bls ${BLSSRCS})
|
|
@ -0,0 +1,43 @@
|
|||
--- core/src/tools/CMakeLists.txt 2023-12-13 17:44:47.000000000 -0500
|
||||
+++ core/src/tools/CMakeLists.txt 2024-01-18 23:59:23.120490000 -0500
|
||||
@@ -69,10 +69,39 @@
|
||||
endif()
|
||||
|
||||
if(NOT client-only)
|
||||
+ set(FDSRCS
|
||||
+ ../filed/accurate.cc
|
||||
+ ../filed/authenticate.cc
|
||||
+ ../filed/crypto.cc
|
||||
+ ../filed/evaluate_job_command.cc
|
||||
+ ../filed/fd_plugins.cc
|
||||
+ ../filed/fileset.cc
|
||||
+ ../filed/sd_cmds.cc
|
||||
+ ../filed/verify.cc
|
||||
+ ../filed/accurate_htable.cc
|
||||
+ ../filed/backup.cc
|
||||
+ ../filed/dir_cmd.cc
|
||||
+ ../filed/filed_globals.cc
|
||||
+ ../filed/heartbeat.cc
|
||||
+ ../filed/socket_server.cc
|
||||
+ ../filed/verify_vol.cc
|
||||
+ ../filed/accurate_lmdb.cc
|
||||
+ ../filed/compression.cc
|
||||
+ ../filed/estimate.cc
|
||||
+ ../filed/filed_conf.cc
|
||||
+ ../filed/restore.cc
|
||||
+ ../filed/status.cc
|
||||
+ ../filed/filed_utils.cc
|
||||
+ )
|
||||
+
|
||||
+ include_directories(../fastlz/include)
|
||||
+ add_library(fd_objects STATIC ${FDSRCS})
|
||||
+ target_link_libraries(fd_objects PRIVATE bareos bareosfastlz ${ZLIB_LIBRARIES})
|
||||
+
|
||||
set(TSTFNDSRCS testfind.cc testfind_fd.cc dummysockets.cc)
|
||||
add_executable(testfind ${TSTFNDSRCS})
|
||||
target_link_libraries(
|
||||
- testfind dird_objects fd_objects bareosfind CLI11::CLI11
|
||||
+ testfind dird_objects fd_objects bareosfind CLI11::CLI11 ${JANSSON_LIBRARIES}
|
||||
)
|
||||
list(APPEND TOOLS_SBIN testfind)
|
||||
endif()
|
51
sysutils/bareos23-server/files/patch-core-src_CMakeLists.txt
Normal file
51
sysutils/bareos23-server/files/patch-core-src_CMakeLists.txt
Normal file
|
@ -0,0 +1,51 @@
|
|||
--- core/src/CMakeLists.txt 2023-03-24 08:05:20.000000000 -0500
|
||||
+++ core/src/CMakeLists.txt 2023-04-07 16:15:16.297335000 -0500
|
||||
@@ -18,7 +18,9 @@
|
||||
# 02110-1301, USA.
|
||||
message("Entering ${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
||||
-add_subdirectory(filed)
|
||||
+if(client-only)
|
||||
+ add_subdirectory(filed)
|
||||
+endif()
|
||||
|
||||
if(NOT client-only)
|
||||
add_subdirectory(tools)
|
||||
@@ -40,24 +42,28 @@
|
||||
elseif(NOT GTest_FOUND)
|
||||
message(STATUS "Skipping unit tests as gtest was not found")
|
||||
else()
|
||||
- add_subdirectory(tests)
|
||||
+# add_subdirectory(tests)
|
||||
endif()
|
||||
|
||||
if(BUILD_BENCHMARKS)
|
||||
add_subdirectory(benchmarks)
|
||||
endif()
|
||||
|
||||
-if(ENABLE_BCONSOLE)
|
||||
- add_subdirectory(console)
|
||||
-endif()
|
||||
+if(client-only)
|
||||
+ if(ENABLE_BCONSOLE)
|
||||
+ add_subdirectory(console)
|
||||
+ endif()
|
||||
|
||||
-if(${HAVE_LMDB})
|
||||
- add_subdirectory(lmdb)
|
||||
+ if(${HAVE_LMDB})
|
||||
+ add_subdirectory(lmdb)
|
||||
+ endif()
|
||||
+ add_subdirectory(lib)
|
||||
+ add_subdirectory(findlib)
|
||||
+ add_subdirectory(fastlz)
|
||||
endif()
|
||||
-add_subdirectory(lib)
|
||||
-add_subdirectory(findlib)
|
||||
+
|
||||
add_subdirectory(plugins)
|
||||
-add_subdirectory(fastlz)
|
||||
+
|
||||
if(${traymonitor})
|
||||
add_subdirectory(qt-tray-monitor)
|
||||
endif()
|
30
sysutils/bareos23-server/files/pkg-deinstall.client.in
Normal file
30
sysutils/bareos23-server/files/pkg-deinstall.client.in
Normal file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
PATH=/bin:/usr/bin:/usr/sbin
|
||||
|
||||
# Note how to delete UID/GID
|
||||
USER=%%BAREOS_USER%%
|
||||
GROUP=%%BAREOS_GROUP%%
|
||||
UID=%%BAREOS_UID%%
|
||||
GID=%%BAREOS_UID%%
|
||||
BAREOS_DIR=%%BAREOS_DIR%%
|
||||
|
||||
TMPFILE=/tmp/services-$RANDOM-$$
|
||||
|
||||
case "$2" in
|
||||
"DEINSTALL")
|
||||
# Delete entries in /etc/services
|
||||
sed -e '/# Bareos port start/,/# Bareos port end/{' \
|
||||
-e 'd' \
|
||||
-e '}' /etc/services > $TMPFILE
|
||||
mv -f $TMPFILE /etc/services
|
||||
|
||||
if [ -d ${BAREOS_DIR} ]; then
|
||||
echo "Check if ${BAREOS_DIR} is empty and delete it to permanently remove the bareos port."
|
||||
fi
|
||||
|
||||
if pw groupshow "${USER}" 2>/dev/null 1>&2; then
|
||||
echo "To delete Bareos group permanently, use 'pw groupdel ${GROUP}'"
|
||||
fi
|
||||
;;
|
||||
esac
|
13
sysutils/bareos23-server/files/pkg-install.client.in
Normal file
13
sysutils/bareos23-server/files/pkg-install.client.in
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
PATH=/bin:/usr/bin:/usr/sbin
|
||||
|
||||
# Always add lines in /etc/services
|
||||
grep -q "bareos-dir" /etc/services
|
||||
if [ "$?" != "0" ]; then
|
||||
echo "# Bareos port start
|
||||
bareos-dir 9101/tcp #Bareos director daemon
|
||||
bareos-fd 9102/tcp #Bareos file daemon
|
||||
bareos-sd 9103/tcp #Bareos storage daemon
|
||||
# Bareos port end" >> /etc/services
|
||||
fi
|
17
sysutils/bareos23-server/files/pkg-message.client.in
Normal file
17
sysutils/bareos23-server/files/pkg-message.client.in
Normal file
|
@ -0,0 +1,17 @@
|
|||
[
|
||||
{ type: install
|
||||
message: <<EOM
|
||||
bareos client was installed
|
||||
|
||||
1) Sample files are installed in %%PREFIX%%/etc/bareos/bareos-fd.d/ and
|
||||
%%PREFIX%%/etc/bareos/bconsole.d/
|
||||
|
||||
2) Add bareos_fd_enable="YES" to /etc/rc.conf.
|
||||
|
||||
3) If you want to retain old configuration scheme, you must add the following
|
||||
to /etc/rc.conf
|
||||
|
||||
bareos_fd_config="%%PREFIX%%/etc/bareos/bareos-fd.conf"
|
||||
EOM
|
||||
}
|
||||
]
|
74
sysutils/bareos23-server/files/pkg-message.server.in
Normal file
74
sysutils/bareos23-server/files/pkg-message.server.in
Normal file
|
@ -0,0 +1,74 @@
|
|||
[
|
||||
{ type: install
|
||||
message: <<EOM
|
||||
bareos server was installed
|
||||
|
||||
1) Sample files are installed in %%PREFIX%%/etc/bareos/bareos-dir.d/ and
|
||||
%%PREFIX%%/etc/bareos/bareos-sd.d/ directories
|
||||
|
||||
2) Add bareos_dir_enable="YES" and bareos_sd_enable="YES" to /etc/rc.conf.
|
||||
|
||||
3) If you want to retain old configuration scheme, you must add the following
|
||||
to /etc/rc.conf
|
||||
|
||||
bareos_dir_config="%%PREFIX%%/etc/bareos/bareos-dir.conf"
|
||||
bareos_sd_config="%%PREFIX%%/etc/bareos/bareos-sd.conf"
|
||||
|
||||
4) Important information about new version of bareos can be found in the
|
||||
ReleaseNotes.
|
||||
|
||||
https://github.com/bareos/bareos/blob/master/README.md
|
||||
|
||||
NOTE:
|
||||
|
||||
An auto-changer manipulation script based on FreeBSDs
|
||||
chio command is included and installed at
|
||||
|
||||
%%PREFIX%%/sbin/chio-bareos
|
||||
|
||||
Please have a look at it if you want to use an
|
||||
autochanger. You have to configure the usage in
|
||||
|
||||
%%PREFIX%%/etc/bareos/bareos-dir.conf or
|
||||
%%PREFIX%%/etc/bareos/bareos-dir.d/storage/
|
||||
|
||||
Take care of correct permissions for changer and
|
||||
tape device (e.g. /dev/ch0 and /dev/n[r]sa0) i.e.
|
||||
they must be accessible by user bareos.
|
||||
|
||||
Due to lack of some features in the FreeBSD tape driver
|
||||
implementation you MUST add some OS dependent options to
|
||||
the bareos-sd.conf file:
|
||||
|
||||
Hardware End of Medium = no;
|
||||
Backward Space Record = no;
|
||||
Backward Space File = no;
|
||||
|
||||
With 2 filemarks at EOT (see man mt):
|
||||
Fast Forward Space File = no;
|
||||
BSF at EOM = yes;
|
||||
TWO EOF = yes;
|
||||
|
||||
With 1 filemarks at EOT (see man mt):
|
||||
Fast Forward Space File = yes;
|
||||
BSF at EOM = no;
|
||||
TWO EOF = no;
|
||||
|
||||
NOTE: YOU CAN SWITCH EOT model ONLY when starting
|
||||
from scratch with EMPTY tapes.
|
||||
|
||||
It is also important that all the scripts accessed
|
||||
by RunBeforeJob and RunAfterJob will be executed by
|
||||
the user bareos. Check your permissions.
|
||||
|
||||
For USB support read the bareos manual. It could be necessary
|
||||
to configure/compile a new kernel.
|
||||
|
||||
Look at %%PREFIX%%/lib/bareos/scripts/update_bareos_tables for
|
||||
database update procedure.
|
||||
|
||||
If you are using sqlite you need to run the make_sqlite_tables script as
|
||||
the bareos user. Do this using 'sudo su -m bareos'.
|
||||
EOM
|
||||
}
|
||||
]
|
4
sysutils/bareos23-server/pkg-descr
Normal file
4
sysutils/bareos23-server/pkg-descr
Normal file
|
@ -0,0 +1,4 @@
|
|||
Bareos (BackupArchivingRecoveryOpenSourced) is a reliable network open source
|
||||
software to backup, archive and restore files from all major operating systems.
|
||||
The fork was founded 2010 out of the bacula.org project. The fork has been
|
||||
actively developed and many new features have been added.
|
161
sysutils/bareos23-server/pkg-plist
Normal file
161
sysutils/bareos23-server/pkg-plist
Normal file
|
@ -0,0 +1,161 @@
|
|||
bin/bregex
|
||||
bin/bsmtp
|
||||
bin/bwild
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-barcodes.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/catalog/MyCatalog.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/client/bareos-fd.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/console/bareos-mon.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/director/bareos-dir.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/fileset/Catalog.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/fileset/LinuxAll.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/fileset/SelfTest.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/fileset/WindowsAllDrives.conf.sample
|
||||
%%GFAPI%%@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/fileset/plugin-gfapi.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/fileset/plugin-ldap.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/job/BackupCatalog.conf.sample
|
||||
%%GFAPI%%@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/job/BackupGFAPI.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/job/RestoreFiles.conf.sample
|
||||
%%GFAPI%%@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/job/RestoreGFAPI.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/job/backup-bareos-fd.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/job/backup-ldap.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/job/restore-ldap.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/jobdefs/DefaultJob.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/messages/Daemon.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/messages/Standard.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/pool/Differential.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/pool/Full.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/pool/Incremental.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/pool/Scratch.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/profile/operator.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/schedule/WeeklyCycle.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/schedule/WeeklyCycleAfterBackup.conf.sample
|
||||
%%ETCDIR%%/bareos-dir.d/storage/dedup.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/storage/File.conf.sample
|
||||
%%GFAPI%%@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/storage/Gluster.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/storage/NULL.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-dir.d/storage/Tape.conf.sample
|
||||
@comment @sample(,bareos,640) %%ETCDIR%%/bareos-regress.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-sd.d/autochanger/autochanger-0.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-sd.d/device/FileStorage.conf.sample
|
||||
%%GFAPI%%@sample(,bareos,640) %%ETCDIR%%/bareos-sd.d/device/GlusterStorage.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-sd.d/device/NULL.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-sd.d/device/tapedrive-0.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-sd.d/director/bareos-dir.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-sd.d/director/bareos-mon.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-sd.d/messages/Standard.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-sd.d/storage/bareos-sd.conf.sample
|
||||
@sample(,bareos,640) %%ETCDIR%%/bareos-sd.d/device/dedup.conf.sample
|
||||
%%MTX%%@sample(,bareos,640) %%ETCDIR%%/mtx-changer.conf.sample
|
||||
etc/logrotate.d/bareos-dir
|
||||
lib/bareos/backends/libbareossd-dedupable.so
|
||||
lib/bareos/backends/libbareossd-fifo.so
|
||||
lib/bareos/backends/libbareossd-file.so
|
||||
%%GFAPI%%lib/bareos/backends/libbareossd-gfapi.so
|
||||
lib/bareos/backends/libbareossd-tape.so
|
||||
%%PYTHON%%lib/bareos/plugins/BareosDirPluginBaseclass.py
|
||||
%%PYTHON%%lib/bareos/plugins/BareosDirPluginNscaSender.py
|
||||
%%PYTHON%%lib/bareos/plugins/BareosDirWrapper.py
|
||||
%%PYTHON%%lib/bareos/plugins/BareosSdPluginBaseclass.py
|
||||
%%PYTHON%%lib/bareos/plugins/BareosSdWrapper.py
|
||||
lib/bareos/plugins/autoxflate-sd.so
|
||||
%%PYTHON%%lib/bareos/plugins/bareos-dir-class-plugin.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos-dir-nsca-sender.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos-sd-class-plugin.py
|
||||
%%PYTHON%%lib/bareos/plugins/python3-dir.so
|
||||
%%PYTHON%%lib/bareos/plugins/python3-sd.so
|
||||
%%SCSICRYPTO%%lib/bareos/plugins/scsicrypto-sd.so
|
||||
%%SCSICRYPTO%%lib/bareos/plugins/scsitapealert-sd.so
|
||||
lib/bareos/scripts/bareos-ctl-dir
|
||||
lib/bareos/scripts/bareos-ctl-sd
|
||||
lib/bareos/scripts/bareos-explorer
|
||||
lib/bareos/scripts/bareos-glusterfind-wrapper
|
||||
lib/bareos/scripts/create_bareos_database
|
||||
%%PGSQL%%lib/bareos/scripts/ddl/creates/postgresql.sql
|
||||
%%PGSQL%%lib/bareos/scripts/ddl/drops/postgresql.sql
|
||||
%%PGSQL%%lib/bareos/scripts/ddl/grants/postgresql-change_owner.dbconfig-template.sql
|
||||
%%PGSQL%%lib/bareos/scripts/ddl/grants/postgresql-readonly.sql
|
||||
%%PGSQL%%lib/bareos/scripts/ddl/grants/postgresql.sql
|
||||
lib/bareos/scripts/ddl/updates/postgresql.10_11.sql
|
||||
lib/bareos/scripts/ddl/updates/postgresql.11_12.sql
|
||||
lib/bareos/scripts/ddl/updates/postgresql.12_14.sql
|
||||
lib/bareos/scripts/ddl/updates/postgresql.14_2001.sql
|
||||
lib/bareos/scripts/ddl/updates/postgresql.2001_2002.sql
|
||||
lib/bareos/scripts/ddl/updates/postgresql.2002_2003.sql
|
||||
lib/bareos/scripts/ddl/updates/postgresql.2003_2004.sql
|
||||
lib/bareos/scripts/ddl/updates/postgresql.2004_2171.sql
|
||||
lib/bareos/scripts/ddl/updates/postgresql.2171_2192.sql
|
||||
lib/bareos/scripts/ddl/updates/postgresql.2192_2210.sql
|
||||
lib/bareos/scripts/ddl/updates/postgresql.2210_2230.sql
|
||||
%%PGSQL%%lib/bareos/scripts/ddl/updates/postgresql.bee.1017_2004.sql
|
||||
lib/bareos/scripts/ddl/versions.map
|
||||
lib/bareos/scripts/delete_catalog_backup
|
||||
lib/bareos/scripts/disk-changer
|
||||
lib/bareos/scripts/drop_bareos_database
|
||||
lib/bareos/scripts/drop_bareos_tables
|
||||
lib/bareos/scripts/grant_bareos_privileges
|
||||
lib/bareos/scripts/make_bareos_tables
|
||||
lib/bareos/scripts/make_catalog_backup
|
||||
lib/bareos/scripts/mtx-changer
|
||||
lib/bareos/scripts/query.sql
|
||||
lib/bareos/scripts/update_bareos_tables
|
||||
%%NDMP%%lib/libbareosndmp.so
|
||||
%%NDMP%%lib/libbareosndmp.so.23
|
||||
%%NDMP%%lib/libbareosndmp.so.%%LIB_VERSION%%
|
||||
lib/libbareossd.so
|
||||
lib/libbareossd.so.23
|
||||
lib/libbareossd.so.%%LIB_VERSION%%
|
||||
lib/libbareossql.so
|
||||
lib/libbareossql.so.23
|
||||
lib/libbareossql.so.%%LIB_VERSION%%
|
||||
%%PYTHON%%%%PYTHON_SITELIBDIR%%/bareosdir%%PYTHON_EXT_SUFFIX%%.so
|
||||
%%PYTHON%%%%PYTHON_SITELIBDIR%%/bareossd%%PYTHON_EXT_SUFFIX%%.so
|
||||
share/man/man1/bareos-tray-monitor.1.gz
|
||||
share/man/man1/bregex.1.gz
|
||||
share/man/man1/bwild.1.gz
|
||||
share/man/man8/bareos-dbcheck.8.gz
|
||||
share/man/man8/bareos-dir.8.gz
|
||||
share/man/man8/bareos-sd.8.gz
|
||||
share/man/man8/bcopy.8.gz
|
||||
share/man/man8/bextract.8.gz
|
||||
share/man/man8/bls.8.gz
|
||||
share/man/man8/bpluginfo.8.gz
|
||||
share/man/man8/bscan.8.gz
|
||||
share/man/man8/bscrypto.8.gz
|
||||
share/man/man8/btape.8.gz
|
||||
sbin/bareos-dbcheck
|
||||
sbin/bareos-dir
|
||||
sbin/bareos-sd
|
||||
sbin/bcopy
|
||||
sbin/bextract
|
||||
sbin/bls
|
||||
sbin/bpluginfo
|
||||
sbin/bregex
|
||||
sbin/bscan
|
||||
sbin/bscrypto
|
||||
sbin/bsmtp
|
||||
sbin/btape
|
||||
sbin/btestls
|
||||
sbin/bwild
|
||||
sbin/chio-bareos
|
||||
sbin/testfind
|
||||
@dir(,bareos,750) %%ETCDIR%%/bareos-dir.d
|
||||
@dir(,bareos,750) %%ETCDIR%%/bareos-dir.d/catalog
|
||||
@dir(,bareos,750) %%ETCDIR%%/bareos-dir.d/client
|
||||
@dir(,bareos,750) %%ETCDIR%%/bareos-dir.d/console
|
||||
@dir(,bareos,750) %%ETCDIR%%/bareos-dir.d/counter
|
||||
@dir(,bareos,750) %%ETCDIR%%/bareos-dir.d/director
|
||||
@dir(,bareos,750) %%ETCDIR%%/bareos-dir.d/fileset
|
||||
@dir(,bareos,750) %%ETCDIR%%/bareos-dir.d/job
|
||||
@dir(,bareos,750) %%ETCDIR%%/bareos-dir.d/jobdefs
|
||||
@dir(,bareos,750) %%ETCDIR%%/bareos-dir.d/messages
|
||||
@dir(,bareos,750) %%ETCDIR%%/bareos-dir.d/pool
|
||||
@dir(,bareos,750) %%ETCDIR%%/bareos-dir.d/profile
|
||||
@dir(,bareos,750) %%ETCDIR%%/bareos-dir.d/schedule
|
||||
@dir(,bareos,750) %%ETCDIR%%/bareos-dir.d/storage
|
||||
@dir(,bareos,750) %%ETCDIR%%/bareos-dir.d/user
|
||||
@dir(,bareos,750) %%ETCDIR%%/bareos-dir-export/client
|
||||
@dir(,bareos,750) %%ETCDIR%%/bareos-sd.d/ndmp
|
||||
@dir(bareos,bareos,) %%BAREOS_DIR%%
|
||||
@dir(bareos,bareos,) %%BAREOS_DIR%%/storage
|
||||
@dir(bareos,bareos,) /var/log/bareos
|
||||
@dir(bareos,bareos,) /var/run/bareos
|
103
sysutils/bareos23-server/pkg-plist.client
Normal file
103
sysutils/bareos23-server/pkg-plist.client
Normal file
|
@ -0,0 +1,103 @@
|
|||
%%PYTHON%%bin/bareos-triggerjob.py
|
||||
bin/bconsole
|
||||
%%PYTHON%%bin/bsmc
|
||||
@sample %%ETCDIR%%/bareos-fd.d/client/myself.conf.sample
|
||||
@group bareos
|
||||
@sample %%ETCDIR%%/bareos-fd.d/director/bareos-dir.conf.sample
|
||||
@group bareos
|
||||
@sample %%ETCDIR%%/bareos-fd.d/director/bareos-mon.conf.sample
|
||||
@group bareos
|
||||
@sample %%ETCDIR%%/bareos-fd.d/messages/Standard.conf.sample
|
||||
@group bareos
|
||||
@sample %%ETCDIR%%/bconsole.d/bconsole.conf.sample
|
||||
@group bareos
|
||||
%%PYTHON%%@sample(,bareos,640) %%ETCDIR%%/bsmc.conf.sample
|
||||
%%PYTHON%%lib/bareos/plugins/BareosFdPluginBaseclass.py
|
||||
%%PYTHON%%lib/bareos/plugins/BareosFdPluginLibcloud.py
|
||||
%%PYTHON%%lib/bareos/plugins/BareosFdPluginLocalFilesBaseclass.py
|
||||
%%PYTHON%%lib/bareos/plugins/BareosFdWrapper.py
|
||||
%%PYTHON%%lib/bareos/plugins/BareosLibcloudApi.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos-fd-ldap.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos-fd-libcloud.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos-fd-local-fileset.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos-fd-mariabackup.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos-fd-percona-xtrabackup.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos-fd-postgres.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos-fd-postgresql.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos-fd-vmware.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_libcloud_api/__init__.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_libcloud_api/bucket_explorer.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_libcloud_api/debug.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_libcloud_api/get_libcloud_driver.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_libcloud_api/mtime.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_libcloud_api/process_base.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_libcloud_api/queue_message.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_libcloud_api/utils.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_libcloud_api/worker.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_mysql_dump/BareosFdMySQLclass.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_mysql_dump/README.md
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_mysql_dump/__init__.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_tasks/BareosFdTaskClass.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_tasks/LICENSE.md
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_tasks/README.md
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_tasks/__init__.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_tasks/mysql/BareosFdMySQLClass.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_tasks/mysql/README.md
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_tasks/mysql/__init__.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_tasks/oracle/BareosFdOracleClass.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_tasks/oracle/README.md
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_tasks/oracle/__init__.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_tasks/pgsql/BareosFdPgSQLClass.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_tasks/pgsql/README.md
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_tasks/pgsql/__init__.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_tasks/xenserver/BareosFdXenServerClass.py
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_tasks/xenserver/README.md
|
||||
%%PYTHON%%lib/bareos/plugins/bareos_tasks/xenserver/__init__.py
|
||||
lib/bareos/plugins/bpipe-fd.so
|
||||
%%GFAPI%%lib/bareos/plugins/gfapi-fd.so
|
||||
%%PYTHON%%lib/bareos/plugins/python3-fd.so
|
||||
%%PYTHON%%lib/bareos/plugins/openvz7/BareosFdPluginVz7CtFs.py
|
||||
%%PYTHON%%lib/bareos/plugins/openvz7/README.md
|
||||
%%PYTHON%%lib/bareos/plugins/openvz7/bareos-fd-vz7_ct_fs.py
|
||||
lib/bareos/scripts/bareos
|
||||
lib/bareos/scripts/bareos-config
|
||||
lib/bareos/scripts/bareos-config-lib.sh
|
||||
lib/bareos/scripts/bareos-ctl-fd
|
||||
lib/bareos/scripts/bareos-ctl-funcs
|
||||
%%PYTHON%%lib/bareos/scripts/bareos_encode_string.py
|
||||
lib/bareos/scripts/btraceback.dbx
|
||||
lib/bareos/scripts/btraceback.gdb
|
||||
lib/bareos/scripts/btraceback.mdb
|
||||
lib/libbareos.so
|
||||
lib/libbareos.so.23
|
||||
lib/libbareos.so.%%LIB_VERSION%%
|
||||
lib/libbareosfastlz.so
|
||||
lib/libbareosfastlz.so.23
|
||||
lib/libbareosfastlz.so.%%LIB_VERSION%%
|
||||
lib/libbareosfind.so
|
||||
lib/libbareosfind.so.23
|
||||
lib/libbareosfind.so.%%LIB_VERSION%%
|
||||
lib/libbareoslmdb.so
|
||||
lib/libbareoslmdb.so.23
|
||||
lib/libbareoslmdb.so.%%LIB_VERSION%%
|
||||
%%PYTHON%%%%PYTHON_SITELIBDIR%%/bareosfd%%PYTHON_EXT_SUFFIX%%.so
|
||||
share/man/man1/bconsole.1.gz
|
||||
share/man/man1/bsmtp.1.gz
|
||||
share/man/man8/bareos-fd.8.gz
|
||||
share/man/man8/bareos.8.gz
|
||||
share/man/man8/btraceback.8.gz
|
||||
@group bareos
|
||||
sbin/bareos
|
||||
@group bareos
|
||||
sbin/bareos-fd
|
||||
@group bareos
|
||||
sbin/bconsole
|
||||
@group wheel
|
||||
sbin/btraceback
|
||||
@group bareos
|
||||
@dir(,bareos,750) %%ETCDIR%%/python-ldap-conf.d/bareos-dir.d/fileset
|
||||
@dir(,bareos,750) %%ETCDIR%%/python-ldap-conf.d/bareos-dir.d/job
|
||||
@group bareos
|
||||
@dir(bareos,bareos,) %%BAREOS_DIR%%
|
||||
@dir(bareos,bareos,) /var/log/bareos
|
||||
@dir(bareos,bareos,) /var/run/bareos
|
46
sysutils/bareos23-traymonitor/Makefile
Normal file
46
sysutils/bareos23-traymonitor/Makefile
Normal file
|
@ -0,0 +1,46 @@
|
|||
PORTREVISION= 0
|
||||
PKGNAMESUFFIX= 23-traymonitor
|
||||
|
||||
COMMENT= Backup archiving recovery open sourced (traymonitor)
|
||||
|
||||
LIB_DEPENDS+= libbareos.so:sysutils/bareos23-client
|
||||
|
||||
CONFLICTS= bareos20-traymonitor bareos21-traymonitor bareos22-traymonitor \
|
||||
bareos-traymonitor
|
||||
|
||||
USES= desktop-file-utils gettext-runtime pkgconfig
|
||||
|
||||
FLAVORS= qt5 qt6
|
||||
FLAVOR?= ${FLAVORS:[1]}
|
||||
|
||||
qt5_CONFLICTS= bareos-traymonitor-qt6
|
||||
qt6_CONFLICTS= bareos-traymonitor-qt5
|
||||
|
||||
.if ${FLAVOR} == qt6
|
||||
PKGNAMESUFFIX= -traymonitor-qt6
|
||||
|
||||
USES+= qt:6
|
||||
USE_QT= base:run declarative:build tools:build
|
||||
CMAKE_ARGS+= -Dbat-qt6=yes
|
||||
.else
|
||||
PKGNAMESUFFIX= -traymonitor-qt5
|
||||
|
||||
LIB_DEPENDS+= libqwt5-qt5.so:x11-toolkits/qwt5-qt5
|
||||
USES+= qt:5
|
||||
USE_QT= buildtools:build qmake:build uitools:build gui core widgets
|
||||
.endif
|
||||
|
||||
WITH_BAT= yes
|
||||
|
||||
PLIST= ${.CURDIR}/pkg-plist
|
||||
CFLAGS+= -DMDB_DSYNC=O_SYNC -DMDB_USE_POSIX_SEM=1
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../../sysutils/bareos23-server
|
||||
|
||||
CMAKE_ARGS+= -Dtraymonitor=yes \
|
||||
-Dbuild-dird=no \
|
||||
-Dbuild-stored=no \
|
||||
-Dclient-only=yes \
|
||||
-Dnls=ON
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
6
sysutils/bareos23-traymonitor/pkg-descr
Normal file
6
sysutils/bareos23-traymonitor/pkg-descr
Normal file
|
@ -0,0 +1,6 @@
|
|||
traymonitor inteface for Bareos.
|
||||
|
||||
Bareos (BackupArchivingRecoveryOpenSourced) is a reliable network open source
|
||||
software to backup, archive and restore files from all major operating systems.
|
||||
The fork was founded 2010 out of the bacula.org project. The fork has been
|
||||
actively developed and many new features have been added.
|
7
sysutils/bareos23-traymonitor/pkg-plist
Normal file
7
sysutils/bareos23-traymonitor/pkg-plist
Normal file
|
@ -0,0 +1,7 @@
|
|||
bin/bareos-tray-monitor
|
||||
@sample %%ETCDIR%%/tray-monitor.d/client/FileDaemon-local.conf.sample
|
||||
@sample %%ETCDIR%%/tray-monitor.d/director/Director-local.conf.sample
|
||||
@sample %%ETCDIR%%/tray-monitor.d/monitor/bareos-mon.conf.sample
|
||||
@sample %%ETCDIR%%/tray-monitor.d/storage/StorageDaemon-local.conf.sample
|
||||
share/applications/bareos-tray-monitor.desktop
|
||||
share/pixmaps/bareos-tray-monitor.png
|
|
@ -75,6 +75,7 @@
|
|||
SUBDIR += bareos20-webui
|
||||
SUBDIR += bareos21-webui
|
||||
SUBDIR += bareos22-webui
|
||||
SUBDIR += bareos23-webui
|
||||
SUBDIR += beehive
|
||||
SUBDIR += bluefish
|
||||
SUBDIR += bozohttpd
|
||||
|
|
66
www/bareos23-webui/Makefile
Normal file
66
www/bareos23-webui/Makefile
Normal file
|
@ -0,0 +1,66 @@
|
|||
PORTNAME= bareos
|
||||
DISTVERSIONPREFIX= Release/
|
||||
DISTVERSION= 23.1.1
|
||||
CATEGORIES?= www sysutils
|
||||
PKGNAMESUFFIX= 23-webui
|
||||
|
||||
MAINTAINER= acm@FreeBSD.org
|
||||
COMMENT= PHP-Frontend to manage Bareos over the web
|
||||
WWW= https://www.bareos.org/
|
||||
|
||||
LICENSE= AGPLv3+
|
||||
LICENSE_FILE= ${WRKSRC}/webui/LICENSE
|
||||
|
||||
USE_GITHUB= yes
|
||||
|
||||
USES= cpe php:build cmake gettext
|
||||
USE_PHP= gettext ctype session iconv
|
||||
NO_BUILD= yes
|
||||
NO_ARCH= yes
|
||||
|
||||
CMAKE_SOURCE_PATH= ${WRKSRC}/webui
|
||||
CMAKE_INSTALL_PREFIX= ${STAGEDIR}
|
||||
CMAKE_ARGS+= -DSHARE_INSTALL_PREFIX:PATH=${PREFIX}/www \
|
||||
-DCMAKE_INSTALL_FULL_SYSCONFDIR:PATH=${PREFIX}/etc \
|
||||
-Dsysconfdir=${PREFIX}/etc \
|
||||
-Dwebuiconfdir=${PREFIX}/${ETCDIRWEBUI} \
|
||||
-DVERSION_STRING=${DISTVERSION} \
|
||||
-DBAREOS_FULL_VERSION:STRING=${DISTVERSION}
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
SUB_LIST+= ETCDIRWEBUI=${PREFIX}/${ETCDIRWEBUI}
|
||||
PLIST_SUB+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} ETCDIRWEBUI=${ETCDIRWEBUI}
|
||||
|
||||
OPTIONS_DEFINE= PGSQL
|
||||
OPTIONS_DEFAULT= PGSQL
|
||||
|
||||
PGSQL_USE= PHP=pdo_pgsql
|
||||
|
||||
ETCDIRWEBUI= etc/${PORTNAME}${PKGNAMESUFFIX}
|
||||
|
||||
post-extract:
|
||||
${FIND} ${WRKSRC}/webui -name .gitignore -delete
|
||||
|
||||
pre-install:
|
||||
${FIND} ${WRKSRC}/webui -name *.in -delete
|
||||
|
||||
do-install:
|
||||
@${ECHO} "Installing in ${WWWDIR}"
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/${ETCDIRWEBUI}
|
||||
@${MKDIR} ${STAGEDIR}${ETCDIR}/bareos-dir.d/console
|
||||
@${MKDIR} ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile
|
||||
@${MKDIR} ${STAGEDIR}${BAREOSWEB_HOME}
|
||||
cd ${WRKSRC}/webui && ${COPYTREE_SHARE} "config module public vendor" \
|
||||
${STAGEDIR}${WWWDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/webui/*.php ${STAGEDIR}${WWWDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/webui/composer* ${STAGEDIR}${WWWDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/webui/install/directors.ini ${STAGEDIR}${PREFIX}/${ETCDIRWEBUI}/directors.ini
|
||||
${INSTALL_DATA} ${WRKSRC}/webui/install/configuration.ini ${STAGEDIR}${PREFIX}/${ETCDIRWEBUI}/configuration.ini
|
||||
${INSTALL_DATA} ${WRKSRC}/webui/install/bareos/bareos-dir.d/console/admin.conf.example ${STAGEDIR}${ETCDIR}/bareos-dir.d/console/admin.conf.sample
|
||||
${INSTALL_DATA} ${WRKSRC}/webui/install/bareos/bareos-dir.d/profile/webui-admin.conf ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile/webui-admin.conf.sample
|
||||
${INSTALL_DATA} ${WRKSRC}/webui/install/bareos/bareos-dir.d/profile/webui-limited.conf.example ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile/webui-limited.conf.sample
|
||||
${INSTALL_DATA} ${WRKSRC}/webui/install/bareos/bareos-dir.d/profile/webui-readonly.conf ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile/webui-readonly.conf.sample
|
||||
${INSTALL_DATA} ${WRKSRC}/webui/install/apache/bareos-webui.conf ${STAGEDIR}${PREFIX}/${ETCDIRWEBUI}/apache-bareos-webui.conf
|
||||
${INSTALL_DATA} ${WRKSRC}/webui/install/nginx/bareos-webui.conf ${STAGEDIR}${PREFIX}/${ETCDIRWEBUI}/nginx-bareos-webui.conf
|
||||
|
||||
.include <bsd.port.mk>
|
3
www/bareos23-webui/distinfo
Normal file
3
www/bareos23-webui/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1734847145
|
||||
SHA256 (bareos-bareos-Release-23.1.1_GH0.tar.gz) = 468fbe12a509b65ca3de5041a901eb0cf1da5c9a4f1729ca57ed39f45fd428e7
|
||||
SIZE (bareos-bareos-Release-23.1.1_GH0.tar.gz) = 14010988
|
19
www/bareos23-webui/files/pkg-message.in
Normal file
19
www/bareos23-webui/files/pkg-message.in
Normal file
|
@ -0,0 +1,19 @@
|
|||
[
|
||||
{ type: install
|
||||
message: <<EOM
|
||||
bareos webui was installed
|
||||
|
||||
Please note that everything has been installed in %%WWWDIR%% and
|
||||
%%ETCDIRWEBUI%%. You can look bareos-webui installation/configuration
|
||||
instructions at:
|
||||
|
||||
https://docs.bareos.org/IntroductionAndTutorial/InstallingBareosWebui.html
|
||||
|
||||
1) Configuration files are stored at %%ETCDIRWEBUI%%
|
||||
2) Some webserver configuration samples are installed at %%ETCDIRWEBUI%%
|
||||
3) This install some bareos-dir configuration samples at %%PREFIX%%/etc/bareos.
|
||||
Don't forget change permissions to user/group used by bareos-dir on server
|
||||
where it is installed
|
||||
EOM
|
||||
}
|
||||
]
|
8
www/bareos23-webui/pkg-descr
Normal file
8
www/bareos23-webui/pkg-descr
Normal file
|
@ -0,0 +1,8 @@
|
|||
The bareos-webui is a free software tool written in PHP, intended to monitor
|
||||
and manage Bareos over the web.
|
||||
|
||||
The webui is based on Zend Framework 2, an open source framework for developing
|
||||
web applications and services using PHP 5.3+ and makes extensive use of the
|
||||
Twitter Bootstrap front-end framework.
|
||||
|
||||
The bareos-webui is licensed under AGPL Version 3.
|
2565
www/bareos23-webui/pkg-plist
Normal file
2565
www/bareos23-webui/pkg-plist
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue