aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/bacula-server
diff options
context:
space:
mode:
authorlkoeller <lkoeller@FreeBSD.org>2006-01-25 22:30:58 +0800
committerlkoeller <lkoeller@FreeBSD.org>2006-01-25 22:30:58 +0800
commit53b2b32328c6e137cfa705065ea7c843a00b6b47 (patch)
tree3d9788ab63304a72625b6333e3691877d19d8bb6 /sysutils/bacula-server
parent1c89eb15d59e25307d695c59c2ae5ba067b2b049 (diff)
downloadfreebsd-ports-gnome-53b2b32328c6e137cfa705065ea7c843a00b6b47.tar.gz
freebsd-ports-gnome-53b2b32328c6e137cfa705065ea7c843a00b6b47.tar.zst
freebsd-ports-gnome-53b2b32328c6e137cfa705065ea7c843a00b6b47.zip
o) Dokumentation is installed per default with bacula-server
Optionally it could installed in bacula-client, too o) Extend pkg-message to give a hint to the bacula-client port and the optional installation of the docs there. o) Fix some smaller issiues in the Makefile PR: ports/92291 Submitted by: Dan Langille <dan@langille.org>
Diffstat (limited to 'sysutils/bacula-server')
-rw-r--r--sysutils/bacula-server/Makefile29
-rw-r--r--sysutils/bacula-server/pkg-message4
2 files changed, 23 insertions, 10 deletions
diff --git a/sysutils/bacula-server/Makefile b/sysutils/bacula-server/Makefile
index 98dbcf960816..b6d282cc5d72 100644
--- a/sysutils/bacula-server/Makefile
+++ b/sysutils/bacula-server/Makefile
@@ -7,12 +7,12 @@
PORTNAME= bacula
PORTVERSION= 1.38.5
-#PORTREVISION= 1
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= bacula
PKGNAMESUFFIX?= -server
-DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz ${PORTNAME}-docs-${PORTVERSION}.tar.gz
+UNIQUENAME?=${PORTNAME}${PKGNAMESUFFIX}
MAINTAINER= Lars.Koeller@Uni-Bielefeld.DE
COMMENT?= The network backup solution (server)
@@ -22,7 +22,6 @@ COMMENT?= The network backup solution (server)
#
BACULA_DIR?=/var/db/bacula
#
-USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-tcp-wrappers=/usr/lib \
--enable-smartalloc \
@@ -43,7 +42,7 @@ CONFIGURE_ENV+= CPPFLAGS="-I/usr/include/readline -I${LOCALBASE}/include" \
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
-ALL_OPTIONS= CLIENT_ONLY WXCONSOLE GNOMECONSOLE SQLITE3 MYSQL POSTGRESQL MTX OPENSSL
+ALL_OPTIONS= CLIENT_ONLY WXCONSOLE GNOMECONSOLE SQLITE3 MYSQL POSTGRESQL MTX OPENSSL DOCS
.for opt in ${ALL_OPTIONS}
.if defined(WITH_${opt})
@@ -58,13 +57,13 @@ IS_INTERACTIVE= yes
.if defined(WITH_CLIENT_ONLY)
OPTIONS+= WXCONSOLE "Build with wxGTK based GUI console" off
OPTIONS+= GNOMECONSOLE "Build with GNOME based GUI console" off
+OPTIONS+= DOCS "Install documention" off
.else
OPTIONS= SQLITE3 "Use SqLite-3 database instead of SqLite-2" off
OPTIONS+= MYSQL "Use MySQL database instead of SqLite" off
OPTIONS+= POSTGRESQL "Use PostgreSQL database instead of SqLite" off
OPTIONS+= MTX "Install mtx for control of autochanger devices" off
.endif
-
OPTIONS+= OPENSSL "Enable OpenSSL for encrypted communication" off
# Prepare if gnome-console is selected this must be happen before
@@ -80,11 +79,19 @@ MAN8= bacula.8
.include <bsd.port.pre.mk>
+DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz
+.if defined(WITH_DOCS)
+DISTFILES+= ${PORTNAME}-docs-${PORTVERSION}.tar.gz
+.endif
+
+.if defined(WITH_DOCS)
+PORTDOCS= ReleaseNotes bacula.pdf developers.pdf kernstodo manual bacula-web
+.endif
+
# Client only or full server version
.if defined(WITH_CLIENT_ONLY)
CONFFILES= fd
CONFIGURE_ARGS+= --enable-client-only
-PORTDOCS= ReleaseNotes bacula.pdf developers.pdf kernstodo manual bacula-web
PKGDEINSTALL= ${PKGDIR}/pkg-deinstall.client
PKGINSTALL= ${PKGDIR}/pkg-install.client
# Build gnome-console
@@ -164,6 +171,8 @@ pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "The default DB is SQLite-2!"
.endif
+ @${ECHO_MSG} " WITH_DOCS=yes if you want the documentation installed."
+ @${ECHO_MSG} " WITH_OPENSSL=yes Enable OpenSSL for encrypted communication."
@${ECHO_MSG} ""
@${ECHO_MSG} "===> Using ${DBTYPE} as the bacula database."
@${ECHO_MSG} ""
@@ -178,7 +187,7 @@ post-patch:
# In client port only install startup script out of script dir (see below post-install)
# Dont mkdir ${PREFIX}/share/bacule cause it's empty
@${REINPLACE_CMD} -e 's|^\(fd_subdirs = .*\)scripts\(.*\)|\1\2|g' ${WRKSRC}/Makefile.in
- ${REINPLACE_CMD} -e 's|\(.*$$(MKDIR) $$(DESTDIR)$$(scriptdir)\)|#\1|g' ${WRKSRC}/Makefile.in
+ ${REINPLACE_CMD} -e 's|\(.*$${MKDIR} $${DESTDIR}$${scriptdir}\)|#\1|g' ${WRKSRC}/Makefile.in
.else
# In server port don't install filed
@${REINPLACE_CMD} -e 's|^all_subdirs = .*|all_subdirs = scripts src\/lib src\/findlib $${subdirs}|g' ${WRKSRC}/Makefile.in
@@ -227,8 +236,8 @@ post-install:
${INSTALL_MAN} ${WRKSRC}/scripts/bacula.man ${PREFIX}/man/man8/bacula.8
.endif
-# Documentaion is only installed in -client port
-.if !defined(NOPORTDOCS)
+# Documentation is only installed in -client port
+.if defined(WITH_DOCS)
for na in manual bacula-web; do \
${MKDIR} ${DOCSDIR}/$$na ;\
cd ${WRKDIR}/${PORTNAME}-docs-${PORTVERSION} && ${FIND} $$na | \
@@ -316,7 +325,7 @@ post-install:
@${ECHO_MSG} "For USB support read the bacula manual!! It could be necessary"
@${ECHO_MSG} "to configure/compile a new kernel!"
@${ECHO_MSG} ""
- @${ECHO_MSG} "Look at $PREFIX/share/bacula/update_bacula_tables for"
+ @${ECHO_MSG} "Look at ${PREFIX}/share/bacula/update_bacula_tables for"
@${ECHO_MSG} "database update procedure. Details can be found in the"
@${ECHO_MSG} "ReleaseNotes"
.endif
diff --git a/sysutils/bacula-server/pkg-message b/sysutils/bacula-server/pkg-message
index 60f1420de061..6d1974ddd801 100644
--- a/sysutils/bacula-server/pkg-message
+++ b/sysutils/bacula-server/pkg-message
@@ -10,4 +10,8 @@
For USB support read the manual. It could be necessary
to configure/compile a new kernel!
+ Please note that bacula-server no longer installs the client
+ and that the documentation could be optional installed with the
+ client port (see port sysutils/bacula-client)!
+
################################################################################