c38f2ffe95
NOTE: I am unsure of how stable this is. Please proceed with caution. Also coming in: * sysutils/bacula13-client * sysutils/bacula13-docs * net-mgmt/nagios-check_bacula13 Not present yet: sysutils/bacula13-client-static because of unknown build issues.
24 lines
993 B
Text
24 lines
993 B
Text
.include <bsd.port.pre.mk>
|
|
|
|
post-build:
|
|
.if ${PKGNAMEPREFIX} == "nagios-check_"
|
|
${MAKE_CMD} -C ${WRKSRC}/examples/nagios/check_bacula
|
|
.endif
|
|
|
|
do-install:
|
|
.if ${PKGNAMESUFFIX} == "11-bat"
|
|
# Install config files and preserve existing ones
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/src/qt-console/bat.conf ${STAGEDIR}${PREFIX}/etc/bacula/bat.conf.sample
|
|
${INSTALL_MAN} ${WRKSRC}/manpages/bat.1 ${STAGEDIR}${PREFIX}/man/man1/
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/qt-console/bat ${STAGEDIR}${PREFIX}/sbin
|
|
.endif
|
|
.if ${PKGNAMEPREFIX} == "nagios-check_"
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
|
|
${INSTALL_PROGRAM} ${WRKSRC}/examples/nagios/check_bacula/check_bacula \
|
|
${STAGEDIR}${PREFIX}/libexec/nagios
|
|
.endif
|
|
.if ${PKGNAMESUFFIX} == "11-client-static"
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/filed/static-bacula-fd ${STAGEDIR}${PREFIX}/sbin/bacula-fd-static
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/console/static-bconsole ${STAGEDIR}${PREFIX}/sbin/bconsole-static
|
|
.endif
|