git: be1b11e3abc3 - main - sysutils/bacula13-client-static: Add new port

From: Dan Langille <dvl_at_FreeBSD.org>
Date: Sat, 03 Dec 2022 20:32:26 UTC
The branch main has been updated by dvl:

URL: https://cgit.FreeBSD.org/ports/commit/?id=be1b11e3abc3e8b7c2f05a400a60669db94c5e16

commit be1b11e3abc3e8b7c2f05a400a60669db94c5e16
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2022-12-03 20:25:17 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2022-12-03 20:32:16 +0000

    sysutils/bacula13-client-static: Add new port
    
    Much like sysutils/bacula9-client-static, but for Bacula 13
    
    NOTE: the 13 code creates binaries named:
    
    * static-bacula-fd
    * static-bconsole
    
    To retain the naming convention used in previous ports, we rename these to:
    
    * bacula-fd-static
    * bconsole-static
---
 sysutils/Makefile                        |  1 +
 sysutils/bacula13-client-static/Makefile | 31 +++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index 97894259f901..bf3a15449d01 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -88,6 +88,7 @@
     SUBDIR += bacula11-docs
     SUBDIR += bacula11-server
     SUBDIR += bacula13-client
+    SUBDIR += bacula13-client-static
     SUBDIR += bacula13-docs
     SUBDIR += bacula13-server
     SUBDIR += bacula9-client
diff --git a/sysutils/bacula13-client-static/Makefile b/sysutils/bacula13-client-static/Makefile
new file mode 100644
index 000000000000..ef209ac76d29
--- /dev/null
+++ b/sysutils/bacula13-client-static/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	bacula
+PKGNAMESUFFIX=	13-client-static
+
+COMMENT=	Network backup solution (static client)
+
+BROKEN_aarch64=	Fails to link: missing sbrk
+BROKEN_riscv64=	Fails to link: missing sbrk
+BROKEN_SSL=	libressl
+
+WITH_CLIENT_ONLY=	yes
+PLIST=			${.CURDIR}/pkg-plist
+MASTERDIR=		${.CURDIR}/../../sysutils/bacula13-server
+
+PLIST_FILES=	sbin/bacula-fd-static \
+		sbin/bconsole-static
+
+OPTIONS_DEFINE=		NLS OPENSSL
+OPTIONS_DEFAULT=	OPENSSL
+
+CONFIGURE_ARGS+=	--disable-build-dird \
+			--disable-build-stored \
+			--disable-libtool \
+			--enable-client-only \
+			--enable-static-cons \
+			--enable-static-fd
+
+.include "${MASTERDIR}/Makefile"
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/src/filed/static-bacula-fd  ${STAGEDIR}${PREFIX}/sbin/bacula-fd-static
+	${INSTALL_PROGRAM} ${WRKSRC}/src/console/static-bconsole ${STAGEDIR}${PREFIX}/sbin/bconsole-static