1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

o) Fix missing move of bacula.sh.sample to z-bacula.sh.sample

This commit is contained in:
Lars Koeller 2005-05-20 06:38:25 +00:00
parent 4b960f6530
commit a7cb60a0d5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=135675

View File

@ -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}