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}
|
2002-01-11 14:52:24 +01:00
|
|
|
PORTVERSION= 2.4.3b2
|
2002-01-12 14:26:04 +01:00
|
|
|
PORTREVISION?= 2
|
1996-11-11 06:50:23 +01:00
|
|
|
CATEGORIES= misc
|
2001-02-05 21:21:02 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= 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}
|
2001-12-03 14:18:46 +01:00
|
|
|
SLAVEDIRS= misc/amanda-client
|
|
|
|
MASTERPORTNAME= amanda-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
|
2002-01-11 14:52:24 +01:00
|
|
|
HAS_CONFIGURE= yes
|
2001-01-31 13:24:08 +01:00
|
|
|
PATCH_STRIP=
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2001-12-03 14:18:46 +01:00
|
|
|
# amanda-server part
|
2001-01-31 13:24:08 +01:00
|
|
|
.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"
|
2002-01-11 16:06:17 +01:00
|
|
|
@${ECHO} " -DWITH_MTX to enable the use of mtx changer scripts"
|
2001-05-09 04:52:54 +02:00
|
|
|
@${ECHO} " -DWITHOUT_GNUTAR to NOT use GNUTar and use the"
|
|
|
|
@${ECHO} " native FreeBSD version"
|
2001-02-01 02:20:10 +01:00
|
|
|
@${ECHO} " AMANDA_SERVER=server to specify a server name"
|
|
|
|
@${ECHO} " The default is `uname -n`"
|
|
|
|
@${ECHO} " AMANDA_TAPE=tape to specify the default tape device"
|
|
|
|
@${ECHO} " The default is /dev/nrsa0"
|
|
|
|
@${ECHO} " AMANDA_CONFIG=config to specify the default configuation"
|
|
|
|
@${ECHO} " The default is user"
|
2001-01-31 13:24:08 +01:00
|
|
|
@${ECHO} ""
|
|
|
|
|
2002-01-12 14:26:04 +01:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/amrecover:${PORTSDIR}/misc/amanda-client
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/sbin/amrecover:${PORTSDIR}/misc/amanda-client
|
2001-01-31 13:24:08 +01:00
|
|
|
|
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 \
|
2002-01-11 14:52:24 +01:00
|
|
|
--without-client --disable-libtool --prefix=${PREFIX}
|
1998-06-29 08:42:09 +02:00
|
|
|
|
2001-12-04 14:22:26 +01:00
|
|
|
MAN8= amadmin.8 amcheck.8 amcheckdb.8 amcleanup.8 amdd.8 \
|
|
|
|
amdump.8 amflush.8 amgetconf.8 amlabel.8 ammt.8 \
|
|
|
|
amoverview.8 amreport.8 amrmtape.8 amstatus.8 \
|
|
|
|
amtape.8 amtoc.8 amverify.8
|
2001-01-31 13:24:08 +01:00
|
|
|
|
|
|
|
.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
|
|
|
|
|
2001-02-16 02:05:34 +01:00
|
|
|
.if defined (WITH_SAMBA)
|
2001-02-01 02:20:10 +01:00
|
|
|
BUILD_DEPENDS+= smbclient:${PORTSDIR}/net/samba
|
|
|
|
RUN_DEPENDS+= smbclient:${PORTSDIR}/net/samba
|
2001-01-31 13:24:08 +01:00
|
|
|
CONFIGURE_ARGS+= --with-smbclient=${PREFIX}/bin/smbclient
|
|
|
|
.endif
|
|
|
|
|
2002-01-11 16:06:17 +01:00
|
|
|
.if defined (WITH_MTX)
|
|
|
|
BUILD_DEPENDS+= mtx:${PORTSDIR}/misc/mtx
|
|
|
|
RUN_DEPENDS+= mtx:${PORTSDIR}/misc/mtx
|
|
|
|
.endif
|
|
|
|
|
2001-05-09 04:52:54 +02:00
|
|
|
.if !defined (WITHOUT_GNUTAR)
|
|
|
|
CONFIGURE_ARGS+= --with-gnutar=${PREFIX}/bin/gtar
|
|
|
|
BUILD_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar
|
|
|
|
RUN_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar
|
|
|
|
.endif
|
|
|
|
|
2001-02-01 02:20:10 +01:00
|
|
|
.if defined (AMANDA_SERVER)
|
|
|
|
CONFIGURE_ARGS+= --with-index-server=${AMANDA_SERVER}
|
|
|
|
CONFIGURE_ARGS+= --with-tape-server=${AMANDA_SERVER}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined (AMANDA_TAPE)
|
|
|
|
CONFIGURE_ARGS+= --with-tape-device=${AMANDA_TAPE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined (AMANDA_CONFIG)
|
|
|
|
CONFIGURE_ARGS+= --with-config=${AMANDA_CONFIG}
|
|
|
|
.endif
|
|
|
|
|
2001-02-01 13:59:55 +01:00
|
|
|
#
|
|
|
|
# Before 4.0, pre-CAM scsiio.h existed
|
|
|
|
.if ${OSVERSION} < 400000
|
|
|
|
PLIST_SUB+= SCSICHG=''
|
2001-02-05 21:21:02 +01:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= SCSICHG='@comment '
|
2001-02-01 13:59:55 +01:00
|
|
|
.endif
|
|
|
|
|
2001-12-03 14:18:46 +01:00
|
|
|
# amanda-client part
|
2001-01-31 13:24:08 +01:00
|
|
|
.else
|
|
|
|
|
2001-02-01 02:20:10 +01:00
|
|
|
pre-fetch:
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "You may use the following build options:"
|
|
|
|
@${ECHO} ""
|
2001-05-09 04:52:54 +02:00
|
|
|
@${ECHO} " -DWITHOUT_GNUTAR to NOT use GNUTar and use the"
|
|
|
|
@${ECHO} " native FreeBSD version"
|
2001-02-01 02:20:10 +01:00
|
|
|
@${ECHO} " AMANDA_SERVER=server to specify a server name"
|
|
|
|
@${ECHO} " The default is `uname -n`"
|
|
|
|
@${ECHO} " AMANDA_CONFIG=config to specify the default configuation"
|
|
|
|
@${ECHO} " The default is user"
|
|
|
|
@${ECHO} ""
|
|
|
|
|
2001-01-31 13:24:08 +01:00
|
|
|
CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/amanda \
|
|
|
|
--with-amandahosts --with-fqdn \
|
|
|
|
--with-dump-honor-nodump --with-buffered-dump \
|
|
|
|
--with-user=operator --with-group=operator \
|
2002-01-11 14:52:24 +01:00
|
|
|
--without-server --disable-libtool --prefix=${PREFIX}
|
2001-01-31 13:24:08 +01:00
|
|
|
|
|
|
|
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-05-09 04:52:54 +02:00
|
|
|
.if !defined (WITHOUT_GNUTAR)
|
|
|
|
CONFIGURE_ARGS+= --with-gnutar=${PREFIX}/bin/gtar
|
|
|
|
BUILD_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar
|
|
|
|
RUN_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar
|
|
|
|
.endif
|
|
|
|
|
2001-02-01 02:20:10 +01:00
|
|
|
.if defined (AMANDA_SERVER)
|
|
|
|
CONFIGURE_ARGS+= --with-index-server=${AMANDA_SERVER}
|
|
|
|
CONFIGURE_ARGS+= --with-tape-server=${AMANDA_SERVER}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined (AMANDA_CONFIG)
|
|
|
|
CONFIGURE_ARGS+= --with-config=${AMANDA_CONFIG}
|
|
|
|
.endif
|
|
|
|
|
2001-01-31 13:24:08 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|