aboutsummaryrefslogtreecommitdiffstats
path: root/misc/amanda26-server/Makefile
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2001-01-31 20:24:08 +0800
committerjeh <jeh@FreeBSD.org>2001-01-31 20:24:08 +0800
commit0cca464af35d39093e3580ee1b4f2473f512095a (patch)
treef37baa8260e7b99eb5e8ce1c2e8ef052bd4b6fa5 /misc/amanda26-server/Makefile
parent9a5b4af273da9dcb501a159aeb1691c9fd096f66 (diff)
downloadfreebsd-ports-graphics-0cca464af35d39093e3580ee1b4f2473f512095a.tar.gz
freebsd-ports-graphics-0cca464af35d39093e3580ee1b4f2473f512095a.tar.zst
freebsd-ports-graphics-0cca464af35d39093e3580ee1b4f2473f512095a.zip
Server portion of the new split amanda24 series.
o PR 17427 was partly used for the split o PR 18872 was partly used to request plotting (gnuplot) if wanted. o PR 21218 was used for --with-buffered-dump o PR 22258 was also used for requesting plotting PR: 17427 18872 21218 22258 Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com> Submitted by: Matt Braithwaite <mab@lathian.com> Submitted by: Brad Huntting <huntting@glarp.com> Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
Diffstat (limited to 'misc/amanda26-server/Makefile')
-rw-r--r--misc/amanda26-server/Makefile72
1 files changed, 60 insertions, 12 deletions
diff --git a/misc/amanda26-server/Makefile b/misc/amanda26-server/Makefile
index 266db71258a..def22efe561 100644
--- a/misc/amanda26-server/Makefile
+++ b/misc/amanda26-server/Makefile
@@ -5,32 +5,78 @@
# $FreeBSD$
#
-PORTNAME= amanda
+PORTNAME?= ${MASTERPORTNAME}
PORTVERSION= 2.4.2
+PORTREVISION?= 0
CATEGORIES= misc
MASTER_SITES= ftp://ftp.amanda.org/pub/amanda/
+DISTFILES= amanda-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= jeh@FreeBSD.org
-BUILD_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
-RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
+WRKSRC= ${WRKDIR}/amanda-${PORTVERSION}
+SLAVEDIRS= misc/amanda24-client
+MASTERPORTNAME= amanda24-server
-WRKSRC= ${WRKDIR}/amanda-2.4.2
NO_LATEST_LINK= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
+PATCH_STRIP=
+
+.include <bsd.port.pre.mk>
+# amanda24-server part
+.if !defined(CLIENT_ONLY)
+
+pre-fetch:
+ @${ECHO} ""
+ @${ECHO} "You may use the following build options:"
+ @${ECHO} ""
+ @${ECHO} " -DWITH_PLOT to enable ploting, requires X11 libraries"
+ @${ECHO} " -DWITH_SAMBA to enable the use of smbclient"
+ @${ECHO} ""
+
+RUN_DEPENDS= amrecover:${.CURDIR}/../amanda24-client
+BUILD_DEPENDS= amrecover:${.CURDIR}/../amanda24-client
+#RUN_DEPENDS= amrecover:${PORTSDIR}/misc/amanda24-client
+#BUILD_DEPENDS= amrecover:${PORTSDIR}/misc/amanda24-client
+
CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/amanda \
--with-amandahosts --with-fqdn \
- --with-dump-honor-nodump \
- --with-user=operator --with-group=operator
+ --with-dump-honor-nodump --with-buffered-dump \
+ --with-user=operator --with-group=operator \
+ --without-client
-PATCH_STRIP=
-MAN8= amadmin.8 amanda.8 amcheck.8 amcheckdb.8 amcleanup.8 \
- amdump.8 amflush.8 amgetconf.8 amlabel.8 amoverview.8 \
- amplot.8 amrecover.8 amreport.8 amrestore.8 amrmtape.8 \
- amstatus.8 amtape.8 amtoc.8 amverify.8
+MAN8= amadmin.8 amcheck.8 amcheckdb.8 amcleanup.8 amdump.8 \
+ amflush.8 amgetconf.8 amlabel.8 amoverview.8 amreport.8 \
+ amrmtape.8 amstatus.8 amtape.8 amtoc.8 amverify.8
+
+.if defined (WITH_PLOT)
+BUILD_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot
+RUN_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot
+MAN8+= amplot.8
+PLIST_SUB+= PLOT=''
+.else
+PLIST_SUB+= PLOT='@comment '
+.endif
+
+.if defined (WITH_SMBCLIENT)
+BUILD_DEPEND+= smbclient:${PORTSDIR}/net/samba
+RUN_DEPEND+= smbclient:${PORTSDIR}/net/samba
+CONFIGURE_ARGS+= --with-smbclient=${PREFIX}/bin/smbclient
+.endif
+
+# amanda24-client part
+.else
+
+CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/amanda \
+ --with-amandahosts --with-fqdn \
+ --with-dump-honor-nodump --with-buffered-dump \
+ --with-user=operator --with-group=operator \
+ --without-server
+
+MAN8= amanda.8 amrecover.8 amrestore.8
post-install:
${MKDIR} ${PREFIX}/share/examples/amanda
@@ -40,4 +86,6 @@ post-install:
${WRKSRC}/example/disklist \
${PREFIX}/share/examples/amanda
-.include <bsd.port.mk>
+.endif
+
+.include <bsd.port.post.mk>