sysutils/bacula11-server: Add S3 cloud option

Allow a bacula-sd node to use S3 for storage

This uses the recently added sysutils/bacula-libs3 port

While here, also add S3 to bacula13-server
PR:		260171
This commit is contained in:
Dan Langille 2023-09-10 14:10:50 +00:00
parent dd8d93a918
commit 18f5c0eb55
4 changed files with 24 additions and 4 deletions

View file

@ -1,6 +1,6 @@
PORTNAME= bacula
PORTVERSION= 11.0.6
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES?= sysutils
MASTER_SITES= SF/bacula/bacula/${PORTVERSION}
PKGNAMEPREFIX?= #
@ -31,8 +31,9 @@ USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE?= MTX NLS IPV6
OPTIONS_DEFINE?= MTX NLS IPV6 S3
MTX_DESC= Install mtx for control of autochanger devices
S3_DESC= Install S3 plugin
.if ${PKGNAMESUFFIX} == "11-server"
OPTIONS_MULTI= BACKEND
@ -130,6 +131,11 @@ MTX_RUN_DEPENDS= ${LOCALBASE}/sbin/mtx:misc/mtx
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MS3}
CONFIGURE_ARGS+= --enable-s3
LIB_DEPENDS+= libs3.so:sysutils/bacula-libs3
.endif
# if IPv6 is not in the kernel, it generates many errors
.if ! ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+= --disable-ipv6

View file

@ -13,6 +13,10 @@ lib/libbacsd-%%LIB_VERSION%%.so
lib/libbacsd.so
lib/libbacsql-%%LIB_VERSION%%.so
lib/libbacsql.so
%%S3%%lib/bacula-sd-cloud-driver-%%LIB_VERSION%%.so
%%S3%%lib/bacula-sd-cloud-driver.so
%%S3%%lib/bacula-sd-cloud-s3-driver-%%LIB_VERSION%%.so
%%S3%%lib/bacula-sd-cloud-s3-driver.so
sbin/bacula
sbin/bacula-dir
sbin/bacula-sd

View file

@ -1,6 +1,6 @@
PORTNAME= bacula
DISTVERSION= 13.0.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES?= sysutils
MASTER_SITES= SF/bacula/bacula/${PORTVERSION}
PKGNAMEPREFIX?= #
@ -31,8 +31,9 @@ USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE?= MTX NLS IPV6
OPTIONS_DEFINE?= MTX NLS IPV6 S3
MTX_DESC= Install mtx for control of autochanger devices
S3_DESC= Install S3 plugin
.if ${PKGNAMESUFFIX} == "13-server"
OPTIONS_MULTI= BACKEND
@ -130,6 +131,11 @@ MTX_RUN_DEPENDS= ${LOCALBASE}/sbin/mtx:misc/mtx
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MS3}
CONFIGURE_ARGS+= --enable-s3
LIB_DEPENDS+= libs3.so:sysutils/bacula-libs3
.endif
# if IPv6 is not in the kernel, it generates many errors
.if ! ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+= --disable-ipv6

View file

@ -13,6 +13,10 @@ lib/libbacsd-%%LIB_VERSION%%.so
lib/libbacsd.so
lib/libbacsql-%%LIB_VERSION%%.so
lib/libbacsql.so
%%S3%%lib/bacula-sd-cloud-driver-%%LIB_VERSION%%.so
%%S3%%lib/bacula-sd-cloud-driver.so
%%S3%%lib/bacula-sd-cloud-s3-driver-%%LIB_VERSION%%.so
%%S3%%lib/bacula-sd-cloud-s3-driver.so
sbin/bacula
sbin/bacula-dir
sbin/bacula-sd