mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Amanda/Constants.pm is installed by amanda-client, and it includes
constat variable as of client components only. When amanda-server installed, Constants.pm should include also server components. - To work around it, use pkg-install/pkg-deinstall script to tweak this variable by inplace updating. Reported by: Christian Gusenbauer <c47g@gmx.at>
This commit is contained in:
parent
cf0d77dc9b
commit
220a74e07d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265629
@ -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
|
||||
|
9
misc/amanda-server/files/pkg-deinstall.in
Normal file
9
misc/amanda-server/files/pkg-deinstall.in
Normal file
@ -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
|
9
misc/amanda-server/files/pkg-install.in
Normal file
9
misc/amanda-server/files/pkg-install.in
Normal file
@ -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
|
@ -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
|
||||
|
9
misc/amanda32-server/files/pkg-deinstall.in
Normal file
9
misc/amanda32-server/files/pkg-deinstall.in
Normal file
@ -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
|
9
misc/amanda32-server/files/pkg-install.in
Normal file
9
misc/amanda32-server/files/pkg-install.in
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user