1995-03-01 01:23:26 +01:00
|
|
|
# New ports collection makefile for: amanda
|
|
|
|
# Date created: 28th Feb 1995
|
|
|
|
# Whom: gpalmer
|
|
|
|
#
|
1999-08-25 09:23:21 +02:00
|
|
|
# $FreeBSD$
|
1995-03-01 01:23:26 +01:00
|
|
|
#
|
|
|
|
|
2001-01-31 13:24:08 +01:00
|
|
|
PORTNAME?= ${MASTERPORTNAME}
|
2001-01-27 18:18:38 +01:00
|
|
|
PORTVERSION= 2.4.2
|
2001-01-31 13:24:08 +01:00
|
|
|
PORTREVISION?= 0
|
1996-11-11 06:50:23 +01:00
|
|
|
CATEGORIES= misc
|
1998-02-18 15:23:40 +01:00
|
|
|
MASTER_SITES= ftp://ftp.amanda.org/pub/amanda/
|
2001-01-31 13:24:08 +01:00
|
|
|
DISTFILES= amanda-${PORTVERSION}${EXTRACT_SUFX}
|
1995-04-15 05:46:07 +02:00
|
|
|
|
2001-01-30 03:37:39 +01:00
|
|
|
MAINTAINER= jeh@FreeBSD.org
|
1995-04-15 05:46:07 +02:00
|
|
|
|
2001-01-31 13:24:08 +01:00
|
|
|
WRKSRC= ${WRKDIR}/amanda-${PORTVERSION}
|
|
|
|
SLAVEDIRS= misc/amanda24-client
|
|
|
|
MASTERPORTNAME= amanda24-server
|
1998-06-06 00:13:19 +02:00
|
|
|
|
1998-02-25 10:47:25 +01:00
|
|
|
NO_LATEST_LINK= yes
|
2001-01-27 18:18:38 +01:00
|
|
|
USE_GMAKE= yes
|
2000-02-21 08:10:26 +01:00
|
|
|
USE_LIBTOOL= yes
|
2000-06-16 23:52:40 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
2000-02-21 08:10:26 +01:00
|
|
|
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
|
2001-01-31 13:24:08 +01:00
|
|
|
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
|
|
|
|
|
2001-01-29 13:42:06 +01:00
|
|
|
CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/amanda \
|
1998-06-29 08:42:09 +02:00
|
|
|
--with-amandahosts --with-fqdn \
|
2001-01-31 13:24:08 +01:00
|
|
|
--with-dump-honor-nodump --with-buffered-dump \
|
|
|
|
--with-user=operator --with-group=operator \
|
|
|
|
--without-client
|
1998-06-29 08:42:09 +02:00
|
|
|
|
2001-01-31 13:24:08 +01:00
|
|
|
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
|
1997-03-08 06:00:11 +01:00
|
|
|
|
|
|
|
post-install:
|
1998-06-29 08:42:09 +02:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/amanda
|
1998-02-18 15:23:40 +01:00
|
|
|
${CP} -R ${WRKSRC}/example/amanda.conf \
|
|
|
|
${WRKSRC}/example/chg-multi.conf \
|
1998-09-13 03:16:02 +02:00
|
|
|
${WRKSRC}/example/chg-scsi.conf \
|
1998-02-18 15:23:40 +01:00
|
|
|
${WRKSRC}/example/disklist \
|
1998-06-29 08:42:09 +02:00
|
|
|
${PREFIX}/share/examples/amanda
|
1997-03-08 06:00:11 +01:00
|
|
|
|
2001-01-31 13:24:08 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|