diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2004-12-01 07:45:26 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2004-12-01 07:45:26 +0000 |
commit | 6524951c5ed0e7089c8eea11d8e8cd67f9e84911 (patch) | |
tree | e4bb326096533f0a5bf351a2a8024f429c11e776 /sysutils/bacula-server | |
parent | 9fd663b694150902425fc79494b2a6c8e7dd371e (diff) |
Notes
Diffstat (limited to 'sysutils/bacula-server')
-rw-r--r-- | sysutils/bacula-server/Makefile | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sysutils/bacula-server/Makefile b/sysutils/bacula-server/Makefile index f86202b1deda..444761df1bf9 100644 --- a/sysutils/bacula-server/Makefile +++ b/sysutils/bacula-server/Makefile @@ -73,6 +73,7 @@ PLIST_SUB+= BACULA_DIR=${BACULA_DIR} # Client only or full server version .if defined(WITH_CLIENT_ONLY) +CONFFILES= fd CONFIGURE_ARGS+= --enable-client-only PORTDOCS= bacula.pdf ReleaseNotes html-manual PKGDEINSTALL= ${PKGDIR}/pkg-deinstall.client @@ -99,6 +100,7 @@ PLIST_SUB+= WXCONS="@comment " .endif .else # Server only Options +CONFFILES= sd dir .if defined(WITH_MYSQL) CONFIGURE_ARGS+= --with-mysql=yes USE_MYSQL= yes @@ -194,18 +196,14 @@ post-install: ${CHOWN} -R bacula:bacula ${PREFIX}/share/bacula .endif # Install leaves existing conf files untouched. Respect this here! -.if defined(WITH_CLIENT_ONLY) - for na in fd; do \ -.else - for na in sd dir; do \ -.endif + for na in ${CONFFILES}; do \ if [ -f ${PREFIX}/etc/bacula-$$na.conf.new ]; then \ ${ECHO_CMD} "etc/bacula-$$na.conf.new" >> ${TMPPLIST}; \ elif [ -f ${PREFIX}/etc/bacula-$$na.conf ]; then \ ${MV} ${PREFIX}/etc/bacula-$$na.conf ${PREFIX}/etc/bacula-$$na.conf.sample; \ ${ECHO_CMD} "etc/bacula-$$na.conf.sample" >> ${TMPPLIST}; \ - fi \ - done; \ + fi; \ + done .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR}/html-manual |