Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sysutils/bareos22-*: Copy bareos-* ports to bareso22-* ones
- bareos-* ports will be updated to 23.0.1 soon
- Loading branch information
Showing
42 changed files
with
4,288 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
PORTNAME= bareos | ||
PKGNAMESUFFIX= 22-client | ||
|
||
COMMENT= Backup archiving recovery open sourced (client) | ||
|
||
CONFLICTS= bareos-client bareos20-client bareos21-client | ||
|
||
WITH_CLIENT_ONLY=yes | ||
USE_RC_SUBR= bareos-fd | ||
|
||
PLIST= ${PKGDIR}/pkg-plist.client | ||
MASTERDIR= ${.CURDIR}/../../sysutils/bareos22-server | ||
|
||
OPTIONS_GROUP= PLUGINS | ||
OPTIONS_GROUP_PLUGINS= GFAPI | ||
OPTIONS_DEFINE= NLS PYTHON SCSICRYPTO | ||
|
||
GFAPI_DESC= GFAPI fd plugin support | ||
|
||
.include "${MASTERDIR}/Makefile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,237 @@ | ||
PORTNAME= bareos | ||
DISTVERSIONPREFIX= Release/ | ||
DISTVERSION= 22.1.3 | ||
PORTREVISION?= 0 | ||
CATEGORIES?= sysutils | ||
PKGNAMEPREFIX?= # | ||
PKGNAMESUFFIX?= 22-server | ||
|
||
MAINTAINER= acm@FreeBSD.org | ||
COMMENT?= Backup archiving recovery open sourced (server) | ||
WWW= https://www.bareos.org/ | ||
|
||
LICENSE= AGPLv3 LGPL3 | ||
LICENSE_COMB= multi | ||
|
||
CONFLICTS?= bareos-server bareos20-server bareos21-server | ||
|
||
LIB_DEPENDS+= liblzo2.so:archivers/lzo2 \ | ||
libjansson.so:devel/jansson | ||
|
||
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}/core/src/cats/make_catalog_backup.pl.in \ | ||
${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} == "22-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} == "22-client" || ${PKGNAMESUFFIX} == "22-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/bareos22-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 | ||
|
||
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 | ||
MYSQL_VARS= DBTYPE=mysql | ||
MYSQL_SUB_LIST= REQ_MYSQL=mysql REQ_PGSQL="" | ||
PGSQL_CMAKE_ON= -Dpostgresql=ON | ||
PGSQL_USES= pgsql | ||
PGSQL_VARS= DBTYPE=postgresql | ||
PGSQL_SUB_LIST= REQ_MYSQL="" REQ_PGSQL=postgresql | ||
SQLITE3_VARS= DBTYPE=sqlite3 | ||
|
||
PLIST_SUB+= DBTYPE=${DBTYPE} | ||
|
||
.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} '124,129d' ${WRKSRC}/CMakeLists.txt | ||
.if ${PKGNAMESUFFIX} == "22-server" | ||
@${REINPLACE_CMD} '51d' ${WRKSRC}/core/src/plugins/CMakeLists.txt | ||
.endif | ||
.if ${PKGNAMESUFFIX} == "22-client" | ||
@${REINPLACE_CMD} -e 's|-Werror -Wall|-Wall|g' ${PATCH_WRKSRC}/core/CMakeLists.txt | ||
.endif | ||
|
||
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 # 22-client and 22-server are defined | ||
|
||
.include <bsd.port.options.mk> | ||
|
||
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) | ||
USES+= llvm:max=15 | ||
.endif | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
post-patch: | ||
@${REINPLACE_CMD} '76,79d' ${WRKSRC}/CMakeLists.txt | ||
.if ${PKGNAMESUFFIX} == "22-traymonitor" | ||
@${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} == "22-traymonitor" | ||
. 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} == "-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} == "22-traymonitor" | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1704433438 | ||
SHA256 (bareos-bareos-Release-22.1.3_GH0.tar.gz) = 765bf250a34296756051e896b28130b2ca3965cebaf310116c50e3e6c63d7d52 | ||
SIZE (bareos-bareos-Release-22.1.3_GH0.tar.gz) = 14745204 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Oops, something went wrong.