# New ports collection makefile for: amanda # Date created: 28th Feb 1995 # Whom: gpalmer # # $FreeBSD$ # PORTNAME= amanda PORTVERSION= 2.5.1p3 PORTREVISION?= 7 PKGNAMESUFFIX?= -server PORTEPOCH= 1 CATEGORIES= misc MASTER_SITES= SF/amanda/amanda%20-%20stable/${PORTVERSION} MAINTAINER= kuriyama@FreeBSD.org COMMENT?= The Advanced Maryland Automatic Network Disk Archiver (server) WRKSRC= ${WRKDIR}/amanda-${PORTVERSION} SLAVEDIRS= misc/amanda25-client LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX} USE_AUTOTOOLS= autoconf USE_GMAKE= yes USE_OPENSSL= yes PATCH_STRIP= CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/amanda \ --with-amandahosts --with-fqdn \ --with-dump-honor-nodump --with-buffered-dump \ --disable-libtool --prefix=${PREFIX} \ --with-user=${AMANDA_USER} --with-group=${AMANDA_GROUP} USE_LDCONFIG= yes WANT_PERL= yes SAMBA_PORT?= net/samba34 OPTIONS= GNUTAR "use GNU tar" on \ SSH "enable ssh-auth" off .include AMANDA_USER?= operator AMANDA_GROUP?= operator AMANDA_GNUTAR_LISTDIR?= ${PREFIX}/var/amanda/gnutar-lists PLIST_SUB= SHLIBVER=${PORTVERSION} # amanda-server/amanda-client common part .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 .if defined (AMANDA_UDPPORTRANGE) CONFIGURE_ARGS+= --with-udpportrange=${AMANDA_UDPPORTRANGE} .endif .if defined (WITH_SSH) CONFIGURE_ARGS+= --with-ssh-security .endif # AMANDA_PORTRANGE is obsoleted. Use AMANDA_TCPPORTRANGE instead. .if defined (AMANDA_PORTRANGE) AMANDA_TCPPORTRANGE= ${AMANDA_PORTRANGE} .endif .if defined (AMANDA_TCPPORTRANGE) CONFIGURE_ARGS+= --with-tcpportrange=${AMANDA_TCPPORTRANGE} .endif .if !defined(WITHOUT_GNUTAR) CONFIGURE_ARGS+=--with-gnutar-listdir=${AMANDA_GNUTAR_LISTDIR} \ --with-gnutar=${LOCALBASE}/bin/gtar BUILD_DEPENDS= gtar:${PORTSDIR}/archivers/gtar RUN_DEPENDS= gtar:${PORTSDIR}/archivers/gtar .endif # amanda-server part .if !defined(CLIENT_ONLY) pre-fetch: @${ECHO} "" @${ECHO} "You may use the following build options:" @${ECHO} "" @${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 configuration" @${ECHO} " The default is user" @${ECHO} " AMANDA_USER=user to specify the default user" @${ECHO} " The default is operator" @${ECHO} " AMANDA_GROUP=group to specify the default group" @${ECHO} " The default is operator" @${ECHO} " AMANDA_TCPPORTRANGE=low,high to restrict Amanda to TCP ports" @${ECHO} " between low and high when connecting from the server" @${ECHO} " to the client for data, messages, and indexing." @${ECHO} " The default is no restriction on TCP ports." @${ECHO} " AMANDA_UDPPORTRANGE=low,high to restrict Amanda to UDP ports" @${ECHO} " between low and high when connecting from the client" @${ECHO} " to the server. Use ports below 1024." @${ECHO} " The default is no restriction on UDP ports." @${ECHO} "" post-patch: @${REINPLACE_CMD} \ -e 's|^OPENSSL=.*$$|OPENSSL=${OPENSSLBASE}/bin/openssl|' \ ${WRKSRC}/server-src/amcrypt-ossl.sh.in \ ${WRKSRC}/server-src/amcrypt-ossl-asym.sh.in USE_PERL5= yes BUILD_DEPENDS+= ${LOCALBASE}/sbin/amrecover:${PORTSDIR}/misc/amanda25-client RUN_DEPENDS+= ${LOCALBASE}/sbin/amrecover:${PORTSDIR}/misc/amanda25-client NO_LATEST_LINK= yes CONFLICTS= amanda-server-2.6.* amanda-server-3.* CONFIGURE_ARGS+=--without-client MAN8= amadmin.8 amaespipe.8 amcheck.8 \ amcheckdb.8 amcleanup.8 \ amcrypt.8 amcrypt-ossl-asym.8 amcrypt-ossl.8 amdd.8 \ amdump.8 amfetchdump.8 amflush.8 amgetconf.8 amlabel.8 ammt.8 \ amoverview.8 amreport.8 amrmtape.8 amstatus.8 \ amtape.8 amtoc.8 amverify.8 amverifyrun.8 amtapetype.8 OPTIONS+= PLOT "enable ploting, requires X11 libraries" off\ SAMBA "enable the use of smbclient" off \ MTX "enable the use of mtx changer scripts" off \ AESPIPE "enable encryption. Needed by amcrypt" off .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_SAMBA) BUILD_DEPENDS+= smbclient:${PORTSDIR}/${SAMBA_PORT} RUN_DEPENDS+= smbclient:${PORTSDIR}/${SAMBA_PORT} CONFIGURE_ARGS+= --with-smbclient=${PREFIX}/bin/smbclient .endif .if defined (WITH_MTX) BUILD_DEPENDS+= mtx:${PORTSDIR}/misc/mtx RUN_DEPENDS+= mtx:${PORTSDIR}/misc/mtx .endif .if defined (WITH_AESPIPE) RUN_DEPENDS+= aespipe:${PORTSDIR}/security/aespipe .endif .if defined (AMANDA_TAPE) CONFIGURE_ARGS+= --with-tape-device=${AMANDA_TAPE} .endif # amanda-client part .else pre-fetch: @${ECHO} "" @${ECHO} "You may use the following build options:" @${ECHO} "" @${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} " AMANDA_GNUTAR_LISTDIR=dir to specify the directory that" @${ECHO} " the gnutar index files should live in" @${ECHO} " The default is /var/amanda/gnutar-lists" @${ECHO} " AMANDA_USER=user to specify the default user" @${ECHO} " The default is operator" @${ECHO} " AMANDA_GROUP=group to specify the default group" @${ECHO} " The default is operator" @${ECHO} " AMANDA_TCPPORTRANGE=low,high to restrict Amanda to TCP ports" @${ECHO} " between low and high when connecting from the server" @${ECHO} " to the client for data, messages, and indexing." @${ECHO} " The default is no restriction on TCP ports." @${ECHO} " AMANDA_UDPPORTRANGE=low,high to restrict Amanda to UDP ports" @${ECHO} " between low and high when connecting from the client" @${ECHO} " to the server. Use ports below 1024." @${ECHO} " The default is no restriction on UDP ports." @${ECHO} "" NO_LATEST_LINK= yes CONFLICTS= amanda-client-2.6.* amanda-client-3.* CONFIGURE_ARGS+=--without-server MAN5= amanda.conf.5 amanda-client.conf.5 MAN8= amanda.8 amrecover.8 amrestore.8 OPTIONS+= DUMP_SNAPSHOT "use snapshot by using dump -L" off post-install: ${MKDIR} ${PREFIX}/share/examples/amanda ${CP} -R ${WRKSRC}/example/amanda.conf \ ${WRKSRC}/example/chg-multi.conf \ ${WRKSRC}/example/chg-scsi.conf \ ${WRKSRC}/example/disklist \ ${PREFIX}/share/examples/amanda ${MKDIR} ${AMANDA_GNUTAR_LISTDIR} ${CHOWN} ${AMANDA_USER}:${AMANDA_GROUP} ${AMANDA_GNUTAR_LISTDIR} ${TOUCH} /etc/amandates ${CHOWN} ${AMANDA_USER}:${AMANDA_GROUP} /etc/amandates .if defined (WITH_DUMP_SNAPSHOT) EXTRA_PATCHES= ${FILESDIR}/extra-patch-sendbackup-dump.c .endif .endif # Maintainer TODO: # o amanda-server installs lib/libamandad.a which should be handled by # amanda-client only. .include ef='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/print/a2ps-letter?h=gnome-3.24&id=1c15d8a57812f8bd8e8f83cd048046788aa313ec&showmsg=1'>Expand)AuthorAgeFilesLines * - extend MASTER_SITE for option I18N_PACKAGE=yesdinoex2009-10-301-0/+1 * - add PORTSCOUTdinoex2009-02-161-0/+1 * - add LICENSE:dinoex2009-01-171-0/+2 * - USE_LDCONFIGdinoex2008-03-231-1/+1 * - Welcome X.org 7.2 \o/.flz2007-05-202-15/+1 * - add option WITH_I18Ndinoex2006-12-303-0/+46 * - make portlint happierdinoex2006-05-201-1/+1 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-14/+14 * - duplicate lisp files for diffrent emacs flavorsdinoex2005-12-252-0/+11 * Remove install-info from Makefile, it's automatically done when INFO is definededwin2005-12-051-3/+0 * - add SHA checksumdinoex2005-11-131-0/+1 * - keep LC_MESSAGESdinoex2005-02-231-20/+0 * - remove all LC_MESSAGES dirs we put files in.dinoex2005-02-211-0/+20 * - Security Fixdinoex2005-01-252-1/+117 * - use DATADIR, sort filesdinoex2005-01-151-251/+251 * Don't remove system locale directories (not listed in the relevantkris2004-12-201-35/+14 * - Security Fixdinoex2004-08-214-1/+58 * - use INFOdinoex2004-06-112-18/+1 * - make PKGNAMESUFFIX more flexibledinoex2004-03-271-1/+1