diff options
-rw-r--r-- | misc/amanda-server/Makefile | 8 | ||||
-rw-r--r-- | misc/amanda-server/files/pkg-deinstall.in | 9 | ||||
-rw-r--r-- | misc/amanda-server/files/pkg-install.in | 9 | ||||
-rw-r--r-- | misc/amanda32-server/Makefile | 8 | ||||
-rw-r--r-- | misc/amanda32-server/files/pkg-deinstall.in | 9 | ||||
-rw-r--r-- | misc/amanda32-server/files/pkg-install.in | 9 |
6 files changed, 48 insertions, 4 deletions
diff --git a/misc/amanda-server/Makefile b/misc/amanda-server/Makefile index 2cef20aa58da..b2cf3119d38e 100644 --- a/misc/amanda-server/Makefile +++ b/misc/amanda-server/Makefile @@ -7,7 +7,7 @@ PORTNAME= amanda PORTVERSION= 3.2.0 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= misc MASTER_SITES= SF/amanda/amanda%20-%20stable/${PORTVERSION} @@ -78,6 +78,9 @@ RUN_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar # amanda-server part .if !defined(CLIENT_ONLY) +SUB_FILES+= pkg-install pkg-deinstall +SUB_LIST+= PERL=${PERL} SITE_PERL_REL=${SITE_PERL_REL} + pre-everything:: .if defined(AMANDA_TAPE) @${ECHO} "Use of \$AMANDA_TAPE is deprecated. Specify it in amanda.conf." @@ -158,7 +161,8 @@ PLIST_SUB+= S3DEVICE='@comment ' .endif post-install: - ${CAT} ${PKGMESSAGE} + @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + @${CAT} ${PKGMESSAGE} # amanda-client part .else diff --git a/misc/amanda-server/files/pkg-deinstall.in b/misc/amanda-server/files/pkg-deinstall.in new file mode 100644 index 000000000000..dc962ad302fc --- /dev/null +++ b/misc/amanda-server/files/pkg-deinstall.in @@ -0,0 +1,9 @@ +#!/bin/sh +# +# $FreeBSD$ + +if [ "$2" != "DEINSTALL" ]; then + exit 0 +fi + +%%PERL%% -i -pe "s|\" server restore client amrecover ndmp\"|\" client amrecover ndmp\"|" ${PKG_PREFIX}/%%SITE_PERL_REL%%/Amanda/Constants.pm diff --git a/misc/amanda-server/files/pkg-install.in b/misc/amanda-server/files/pkg-install.in new file mode 100644 index 000000000000..6405b2dce989 --- /dev/null +++ b/misc/amanda-server/files/pkg-install.in @@ -0,0 +1,9 @@ +#!/bin/sh +# +# $FreeBSD$ + +if [ "$2" != "POST-INSTALL" ]; then + exit 0 +fi + +%%PERL%% -i -pe "s|\" client amrecover ndmp\"|\" server restore client amrecover ndmp\"|" ${PKG_PREFIX}/%%SITE_PERL_REL%%/Amanda/Constants.pm diff --git a/misc/amanda32-server/Makefile b/misc/amanda32-server/Makefile index 2cef20aa58da..b2cf3119d38e 100644 --- a/misc/amanda32-server/Makefile +++ b/misc/amanda32-server/Makefile @@ -7,7 +7,7 @@ PORTNAME= amanda PORTVERSION= 3.2.0 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= misc MASTER_SITES= SF/amanda/amanda%20-%20stable/${PORTVERSION} @@ -78,6 +78,9 @@ RUN_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar # amanda-server part .if !defined(CLIENT_ONLY) +SUB_FILES+= pkg-install pkg-deinstall +SUB_LIST+= PERL=${PERL} SITE_PERL_REL=${SITE_PERL_REL} + pre-everything:: .if defined(AMANDA_TAPE) @${ECHO} "Use of \$AMANDA_TAPE is deprecated. Specify it in amanda.conf." @@ -158,7 +161,8 @@ PLIST_SUB+= S3DEVICE='@comment ' .endif post-install: - ${CAT} ${PKGMESSAGE} + @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + @${CAT} ${PKGMESSAGE} # amanda-client part .else diff --git a/misc/amanda32-server/files/pkg-deinstall.in b/misc/amanda32-server/files/pkg-deinstall.in new file mode 100644 index 000000000000..dc962ad302fc --- /dev/null +++ b/misc/amanda32-server/files/pkg-deinstall.in @@ -0,0 +1,9 @@ +#!/bin/sh +# +# $FreeBSD$ + +if [ "$2" != "DEINSTALL" ]; then + exit 0 +fi + +%%PERL%% -i -pe "s|\" server restore client amrecover ndmp\"|\" client amrecover ndmp\"|" ${PKG_PREFIX}/%%SITE_PERL_REL%%/Amanda/Constants.pm diff --git a/misc/amanda32-server/files/pkg-install.in b/misc/amanda32-server/files/pkg-install.in new file mode 100644 index 000000000000..6405b2dce989 --- /dev/null +++ b/misc/amanda32-server/files/pkg-install.in @@ -0,0 +1,9 @@ +#!/bin/sh +# +# $FreeBSD$ + +if [ "$2" != "POST-INSTALL" ]; then + exit 0 +fi + +%%PERL%% -i -pe "s|\" client amrecover ndmp\"|\" server restore client amrecover ndmp\"|" ${PKG_PREFIX}/%%SITE_PERL_REL%%/Amanda/Constants.pm |