diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2008-07-24 23:27:50 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2008-07-24 23:27:50 +0000 |
commit | b9074b86bfaa8a354a45f0fa293f808408b38ded (patch) | |
tree | 545697b3d23f303119846aa698003431dd0ec75c /misc/amanda-server | |
parent | d2ddcad204a4fb96b2bbe54a069411888a82718a (diff) | |
download | ports-b9074b86bfaa8a354a45f0fa293f808408b38ded.tar.gz ports-b9074b86bfaa8a354a45f0fa293f808408b38ded.zip |
Notes
Diffstat (limited to 'misc/amanda-server')
-rw-r--r-- | misc/amanda-server/Makefile | 29 | ||||
-rw-r--r-- | misc/amanda-server/files/patch-server-src::amcrypt-ossl-asym.sh.in | 11 | ||||
-rw-r--r-- | misc/amanda-server/files/patch-server-src::amcrypt-ossl.sh.in | 11 |
3 files changed, 42 insertions, 9 deletions
diff --git a/misc/amanda-server/Makefile b/misc/amanda-server/Makefile index ea2b4014a716..bad68ecf2c3e 100644 --- a/misc/amanda-server/Makefile +++ b/misc/amanda-server/Makefile @@ -7,7 +7,7 @@ PORTNAME= amanda PORTVERSION= 2.5.1p3 -PORTREVISION?= 4 +PORTREVISION?= 5 PKGNAMESUFFIX?= -server PORTEPOCH= 1 CATEGORIES= misc @@ -20,9 +20,10 @@ COMMENT?= The Advanced Maryland Automatic Network Disk Archiver (server) WRKSRC= ${WRKDIR}/amanda-${PORTVERSION} SLAVEDIRS= misc/amanda-client -NO_LATEST_LINK= yes +LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX} USE_AUTOTOOLS= autoconf:261 USE_GMAKE= yes +USE_OPENSSL= yes PATCH_STRIP= CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/amanda \ --with-amandahosts --with-fqdn \ @@ -32,7 +33,8 @@ CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/amanda \ USE_LDCONFIG= yes WANT_PERL= yes -OPTIONS= GNUTAR "use GNU tar" on +OPTIONS= GNUTAR "use GNU tar" on \ + SSH "enable ssh-auth" off .include <bsd.port.pre.mk> @@ -57,6 +59,10 @@ CONFIGURE_ARGS+= --with-config=${AMANDA_CONFIG} 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} @@ -99,6 +105,12 @@ pre-fetch: @${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/amanda-client @@ -116,8 +128,7 @@ MAN8= amadmin.8 amaespipe.8 amcheck.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 \ - SSH "enable ssh-auth" off + AESPIPE "enable encryption. Needed by amcrypt" off .if defined (WITH_PLOT) BUILD_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot @@ -143,10 +154,6 @@ RUN_DEPENDS+= mtx:${PORTSDIR}/misc/mtx RUN_DEPENDS+= aespipe:${PORTSDIR}/security/aespipe .endif -.if defined (WITH_SSL) -CONFIGURE_ARGS+= --with-ssh-security -.endif - .if defined (AMANDA_TAPE) CONFIGURE_ARGS+= --with-tape-device=${AMANDA_TAPE} .endif @@ -214,4 +221,8 @@ EXTRA_PATCHES= ${FILESDIR}/extra-patch-sendbackup-dump.c .endif +# Maintainer TODO: +# o amanda-server installs lib/libamandad.a which should be handled by +# amanda-client only. + .include <bsd.port.post.mk> diff --git a/misc/amanda-server/files/patch-server-src::amcrypt-ossl-asym.sh.in b/misc/amanda-server/files/patch-server-src::amcrypt-ossl-asym.sh.in new file mode 100644 index 000000000000..eeb0ea70129c --- /dev/null +++ b/misc/amanda-server/files/patch-server-src::amcrypt-ossl-asym.sh.in @@ -0,0 +1,11 @@ +--- server-src/amcrypt-ossl-asym.sh.in.orig 2006-07-04 13:28:47.000000000 +0200 ++++ server-src/amcrypt-ossl-asym.sh.in 2008-07-12 12:11:30.000000000 +0200 +@@ -36,7 +36,7 @@ + # change these as needed + OPENSSL= # whatever's in $PATH + CIPHER=aes-256-cbc # see `openssl help` for more ciphers +-AMANDA_HOME=~amandabackup ++AMANDA_HOME=~@CLIENT_LOGIN@ + RANDFILE=$AMANDA_HOME/.rnd + export RANDFILE + PASSPHRASE=$AMANDA_HOME/.am_passphrase # optional diff --git a/misc/amanda-server/files/patch-server-src::amcrypt-ossl.sh.in b/misc/amanda-server/files/patch-server-src::amcrypt-ossl.sh.in new file mode 100644 index 000000000000..2eb587feb9af --- /dev/null +++ b/misc/amanda-server/files/patch-server-src::amcrypt-ossl.sh.in @@ -0,0 +1,11 @@ +--- server-src/amcrypt-ossl.sh.in.orig 2006-07-04 13:28:47.000000000 +0200 ++++ server-src/amcrypt-ossl.sh.in 2008-07-12 12:11:35.000000000 +0200 +@@ -7,7 +7,7 @@ + # change these as needed + OPENSSL= # whatever's in $PATH + CIPHER=aes-256-cbc # see `openssl help` for more ciphers +-AMANDA_HOME=~amandabackup ++AMANDA_HOME=~@CLIENT_LOGIN@ + RANDFILE=$AMANDA_HOME/.rnd + export RANDFILE + PASSPHRASE=$AMANDA_HOME/.am_passphrase # required |