From a7cb60a0d5442f792fd2d3e099cf68289e1afb25 Mon Sep 17 00:00:00 2001 From: Lars Koeller Date: Fri, 20 May 2005 06:38:25 +0000 Subject: [PATCH] o) Fix missing move of bacula.sh.sample to z-bacula.sh.sample --- sysutils/bacula-server/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sysutils/bacula-server/Makefile b/sysutils/bacula-server/Makefile index 9db10d6ed33c..0c0a6263c5f8 100644 --- a/sysutils/bacula-server/Makefile +++ b/sysutils/bacula-server/Makefile @@ -164,13 +164,16 @@ post-patch: .endif post-install: -.if defined(WITH_CLIENT_ONLY) -# Install start script - ${INSTALL_SCRIPT} ${WRKSRC}/scripts/bacula ${PREFIX}/etc/rc.d/z-bacula.sh.sample # Migration: move existing bacula.sh to z-bacula.sh to start bacula AFTER DB start if [ -f ${PREFIX}/etc/rc.d/bacula.sh ]; then \ ${MV} ${PREFIX}/etc/rc.d/bacula.sh ${PREFIX}/etc/rc.d/z-bacula.sh; \ fi + if [ -f ${PREFIX}/etc/rc.d/bacula.sh.sample ]; then \ + ${MV} ${PREFIX}/etc/rc.d/bacula.sh.sample ${PREFIX}/etc/rc.d/z-bacula.sh.sample; \ + fi +.if defined(WITH_CLIENT_ONLY) +# Install start script + ${INSTALL_SCRIPT} ${WRKSRC}/scripts/bacula ${PREFIX}/etc/rc.d/z-bacula.sh.sample # Extend only /etc/services @ ${SETENV} PKG_PREFIX=${PREFIX} \ ${SH} ${PKGINSTALL} ${PORTNAME}