aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/bacula-server/Makefile
diff options
context:
space:
mode:
authorlkoeller <lkoeller@FreeBSD.org>2005-05-20 14:38:25 +0800
committerlkoeller <lkoeller@FreeBSD.org>2005-05-20 14:38:25 +0800
commitefd951224a819db06a461541a937448124a92ff8 (patch)
tree4ed37d613d96ba1d6fd10dda34486dd728580bf1 /sysutils/bacula-server/Makefile
parentfe129d1896ab5ee1f13f8ff5c0763dc98753920f (diff)
downloadfreebsd-ports-graphics-efd951224a819db06a461541a937448124a92ff8.tar.gz
freebsd-ports-graphics-efd951224a819db06a461541a937448124a92ff8.tar.zst
freebsd-ports-graphics-efd951224a819db06a461541a937448124a92ff8.zip
o) Fix missing move of bacula.sh.sample to z-bacula.sh.sample
Diffstat (limited to 'sysutils/bacula-server/Makefile')
-rw-r--r--sysutils/bacula-server/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/sysutils/bacula-server/Makefile b/sysutils/bacula-server/Makefile
index 9db10d6ed33..0c0a6263c5f 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}