aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/bacula-server
diff options
context:
space:
mode:
authorlkoeller <lkoeller@FreeBSD.org>2004-12-01 04:31:40 +0800
committerlkoeller <lkoeller@FreeBSD.org>2004-12-01 04:31:40 +0800
commitba8d0a99add29436e43e53517a3549afb9503db5 (patch)
tree328115d674ece042a918a30eea19c4f121915216 /sysutils/bacula-server
parent0007dd96b318747a24adc529eb4636b1f9694e4b (diff)
downloadfreebsd-ports-gnome-ba8d0a99add29436e43e53517a3549afb9503db5.tar.gz
freebsd-ports-gnome-ba8d0a99add29436e43e53517a3549afb9503db5.tar.zst
freebsd-ports-gnome-ba8d0a99add29436e43e53517a3549afb9503db5.zip
o) Cosmetic corrections in OPTIONs handling
o) Cosmetic portlint -A changes
Diffstat (limited to 'sysutils/bacula-server')
-rw-r--r--sysutils/bacula-server/Makefile34
1 files changed, 12 insertions, 22 deletions
diff --git a/sysutils/bacula-server/Makefile b/sysutils/bacula-server/Makefile
index 7156135cf597..7a5280327a5b 100644
--- a/sysutils/bacula-server/Makefile
+++ b/sysutils/bacula-server/Makefile
@@ -39,16 +39,16 @@ CONFIGURE_ARGS= --with-tcp-wrappers=/usr/lib \
CONFIGURE_ENV+= CPPFLAGS="-I/usr/include/readline -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
-ALL_OPTIONS= CLIENT_ONLY WXCONSOLE GNOMECONSOLE MYSQL POSTGRESQL
+ALL_OPTIONS= CLIENT_ONLY WXCONSOLE GNOMECONSOLE MYSQL POSTGRESQL
.for opt in ${ALL_OPTIONS}
.if defined(WITH_${opt})
-BATCH= yes
+BATCH= yes
.endif
.endfor
.if !defined(BATCH)
-IS_INTERACTIVE= yes
+IS_INTERACTIVE= yes
.endif
.if defined(WITH_CLIENT_ONLY)
@@ -71,6 +71,12 @@ USE_GNOME= libgnome
PLIST_SUB+= BACULA_DIR=${BACULA_DIR}
+# Client only or full server version
+.if defined(WITH_CLIENT_ONLY)
+CONFIGURE_ARGS+= --enable-client-only
+PORTDOCS= bacula.pdf ReleaseNotes html-manual
+PKGDEINSTALL= ${PKGDIR}/pkg-deinstall.client
+PKGINSTALL= ${PKGDIR}/pkg-install.client
# Build gnome-console
.if defined(WITH_GNOMECONSOLE)
CONFIGURE_ARGS+= --enable-gnome
@@ -80,7 +86,6 @@ PLIST_SUB+= GNOMECONS=""
WITHOUT_GNOME= yes
PLIST_SUB+= GNOMECONS="@comment "
.endif
-
# Build wx-console
.if defined(WITH_WXCONSOLE)
CONFIGURE_ARGS+= --enable-wx-console
@@ -92,15 +97,8 @@ PLIST_SUB+= WXCONS=""
WITHOUT_GNOME= yes
PLIST_SUB+= WXCONS="@comment "
.endif
-
-# Client only or full server version
-.if defined(WITH_CLIENT_ONLY)
-CONFIGURE_ARGS+= --enable-client-only
-PORTDOCS= bacula.pdf ReleaseNotes html-manual
-PKGDEINSTALL= ${PKGDIR}/pkg-deinstall.client
-PKGINSTALL= ${PKGDIR}/pkg-install.client
-
.else
+# Server only Options
.if defined(WITH_MYSQL)
CONFIGURE_ARGS+= --with-mysql=yes
USE_MYSQL= yes
@@ -115,23 +113,15 @@ LIB_DEPENDS+= sqlite:${PORTSDIR}/databases/sqlite
DBTYPE= sqlite
.endif
PLIST_SUB+= DBTYPE=${DBTYPE}
-PLIST_SUB+= SERVER=""
-.endif
-
# Install mtx
.if defined(WITH_MTX)
RUN_DEPENDS+= ${LOCALBASE}/sbin/mtx:${PORTSDIR}/misc/mtx
.endif
+.endif
pre-everything::
.if !defined(WITH_CLIENT_ONLY)
@${ECHO_MSG} "=======> ATTENTION <======="
- @${ECHO_MSG} "######################################################"
- @${ECHO_MSG} "===> Please read the file"
- @${ECHO_MSG} "===> ${DOCSDIR}/ReleaseNotes"
- @${ECHO_MSG} "===> for the upgrade procedure!"
- @${ECHO_MSG} "===> IF YOU IGNORE THIS you may !! LOSE DATA !!"
- @${ECHO_MSG} "######################################################"
@${ECHO_MSG} "===> Note that there is a pthreads problem, which leads to the loss of 500kB"
@${ECHO_MSG} "===> of data at the end of an tape. This is corrected in newer versions of FreeBSD"
@${ECHO_MSG} "===> READ ${WRKSRC}/platforms/freebsd/pthreads-fix.txt"
@@ -275,7 +265,7 @@ post-install:
@${ECHO_MSG} "*********************************************************************"
.if !defined(WITH_CLIENT_ONLY)
- $(CAT) pkg-message
+ ${CAT} pkg-message
.endif
.include <bsd.port.post.mk>