summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorWesley Shields <wxs@FreeBSD.org>2009-10-11 13:36:08 +0000
committerWesley Shields <wxs@FreeBSD.org>2009-10-11 13:36:08 +0000
commit64afd0e34ac00d6c317dd45a08018240491546ce (patch)
tree00a223ba59ece95a95326fcf40e0670043a5fd32 /sysutils
parent- Update to 0.68.4.3 (diff)
- Add an option to build a static fd binary (off by default).
PR: ports/138478 Submitted by: Oleg Gawriloff <barzog@telecom.by> Approved by: maintainer timeout
Notes
Notes: svn path=/head/; revision=242685
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/bacula-server/Makefile10
-rw-r--r--sysutils/bacula-server/pkg-plist.client1
2 files changed, 10 insertions, 1 deletions
diff --git a/sysutils/bacula-server/Makefile b/sysutils/bacula-server/Makefile
index 66a0a407ab8b..ab671fbb436e 100644
--- a/sysutils/bacula-server/Makefile
+++ b/sysutils/bacula-server/Makefile
@@ -93,6 +93,7 @@ IS_INTERACTIVE= yes
.if defined(WITH_CLIENT_ONLY)
OPTIONS= WXCONSOLE "Build with wxGTK based GUI console: deprecated" off
OPTIONS+= GNOMECONSOLE "Build with GNOME based GUI console: deprecated" off
+OPTIONS+= SFDAEMON "Build with staticly compiled file daemon" off
.elif defined(WITH_BAT)
OPTIONS=
.else
@@ -139,9 +140,15 @@ PKGINSTALL= ${PKGDIR}/pkg-install.server
CONFFILES= fd
# --disable-xattr is temporary to allow build with 8-current
CONFIGURE_ARGS+= --enable-client-only --disable-xattr
-
PKGDEINSTALL= ${PKGDIR}/pkg-deinstall.client
PKGINSTALL= ${PKGDIR}/pkg-install.client
+# Build a static fd binary.
+.if defined(WITH_SFDAEMON)
+CONFIGURE_ARGS+= --enable-static-fd
+PLIST_SUB+= SFDAEMON=""
+.else
+PLIST_SUB+= SFDAEMON="@comment "
+.endif
# Build bgnome-console
.if defined(WITH_GNOMECONSOLE)
CONFIGURE_ARGS+= --enable-gnome
@@ -219,6 +226,7 @@ pre-everything::
@${ECHO_MSG} " WITH_GNOMECONSOLE=yes if you only want a GNOME based GUI console."
@${ECHO_MSG} " WITH_MTX=yes if you want to use mtx instead of chio for autochanger control."
@${ECHO_MSG} " WITH_SQLITE3=yes if you want SqLite-3 instead of SqLite-2 as the database."
+ @${ECHO_MSG} " WITH_SFDAEMON=yes if you want staticly compiled file daemon (client)."
.if !defined(WITH_MYSQL) && !defined(WITH_POSTGRESQL)
@${ECHO_MSG} " WITH_MYSQL=yes if you want MySQL instead of SqLite as the database."
@${ECHO_MSG} " WITH_POSTGRESQL=yes if you want PostgreSQL instead of SqLite as the database."
diff --git a/sysutils/bacula-server/pkg-plist.client b/sysutils/bacula-server/pkg-plist.client
index 0dd5c7a0c92a..b4ec10f2bc6d 100644
--- a/sysutils/bacula-server/pkg-plist.client
+++ b/sysutils/bacula-server/pkg-plist.client
@@ -11,6 +11,7 @@ lib/libbacfind.so.1
lib/libbacpy.la
lib/libbacpy.so
lib/libbacpy.so.1
+%%SFDAEMON%%sbin/static-bacula-fd
sbin/bacula-fd
sbin/bconsole
%%GNOMECONS%%sbin/gnome-console