aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/bareos-server/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/bareos-server/Makefile.common')
-rw-r--r--sysutils/bareos-server/Makefile.common23
1 files changed, 22 insertions, 1 deletions
diff --git a/sysutils/bareos-server/Makefile.common b/sysutils/bareos-server/Makefile.common
index 93deefb42f26..6963cd937883 100644
--- a/sysutils/bareos-server/Makefile.common
+++ b/sysutils/bareos-server/Makefile.common
@@ -3,19 +3,31 @@
post-patch:
@${REINPLACE_CMD} -e 's|_NONSHARED||g' ${WRKSRC}/src/filed/Makefile.in
+ @${REINPLACE_CMD} -e 's|-lbareoscfg|@JANSSON_LIBS@ @LIBINTL@ -lbareoscfg|g' ${WRKSRC}/src/qt-tray-monitor/tray-monitor.pro.in
post-build:
.if ${PKGNAMEPREFIX} == "nagios-check_"
${MAKE_CMD} -C ${WRKSRC}/examples/nagios/check_bareos
.endif
+pre-install:
+.if ${PKGNAMESUFFIX} == "-traymonitor"
+. for d in client director monitor storage
+ ${MKDIR} ${STAGEDIR}${ETCDIR}/tray-monitor.d/${d}
+ ${FIND} ${WRKSRC}/src/defaultconfigs/tray-monitor.d/${d} -type f -name '*.conf' -exec ${MV} -v {} {}.sample \;
+. endfor
+.endif
+
do-install:
.if ${PKGNAMESUFFIX} == "-bat"
# Install config files and preserve existing ones
${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_SCRIPT} ${WRKSRC}/src/qt-console/bat.conf ${STAGEDIR}${PREFIX}/etc/bareos/bat.conf.sample
${INSTALL_MAN} ${WRKSRC}/manpages/bat.1 ${STAGEDIR}${PREFIX}/man/man1/
- ${INSTALL_PROGRAM} ${WRKSRC}/src/qt-console/bat ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/qt-console/bat ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/src/images/bat.png ${STAGEDIR}${PREFIX}/share/pixmaps
+ ${INSTALL_DATA} ${WRKSRC}/src/images/bat.svg ${STAGEDIR}${PREFIX}/share/pixmaps
+ ${INSTALL_DATA} ${WRKSRC}/src/qt-console/bat.desktop ${STAGEDIR}${DESKTOPDIR}
.endif
.if ${PKGNAMEPREFIX} == "nagios-check_"
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
@@ -26,3 +38,12 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/filed/static-bareos-fd ${STAGEDIR}${PREFIX}/sbin/bareos-fd-static
${INSTALL_PROGRAM} ${WRKSRC}/src/console/static-bconsole ${STAGEDIR}${PREFIX}/sbin/bconsole-static
.endif
+.if ${PKGNAMESUFFIX} == "-traymonitor"
+# Install config files and preserve existing ones
+.for d in client director monitor storage
+ ${INSTALL_SCRIPT} ${WRKSRC}/src/defaultconfigs/tray-monitor.d/${d}/*.sample ${STAGEDIR}${ETCDIR}/tray-monitor.d/${d}/
+.endfor
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/qt-tray-monitor/bareos-tray-monitor ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/src/qt-tray-monitor/bareos-tray-monitor.xpm ${STAGEDIR}${PREFIX}/share/pixmaps
+ ${INSTALL_DATA} ${WRKSRC}/src/qt-tray-monitor/bareos-tray-monitor.desktop ${STAGEDIR}${DESKTOPDIR}
+.endif
/opendnssec?id=4500e6f95eef76996051b447f00584b31e4abedf'>In the rc.d scripts, change assignments to rcvar to use thedougb2012-01-141-1/+1 * - Update to 1.3.4miwi2011-12-184-25/+34 * Incremental improvements to the rc.d script perdougb2011-09-252-18/+10 * - Update to 1.3.2dhn2011-09-212-3/+3 * - Mark broken with Ruby 1.9swills2011-08-061-1/+5 * Update to 1.3.0jlaffaye2011-07-164-8/+75 * - Update to 1.2.1dhn2011-03-254-9/+25 * - Update to 1.2.0pav2011-01-193-49/+13 * - Add databases/sqlite3 to BUILD_DEPENDS (minimal version required 3.4.2)nivit2010-12-122-2/+3 * - Update to 1.1.3.araujo2010-09-132-4/+4 * - Update to 1.1.2sylvio2010-09-062-8/+6 * Increase minimum required version of dnsrubyarved2010-08-151-1/+2 * - Update to 1.1.1.araujo2010-07-112-4/+4 * - Update to 1.1.0sylvio2010-05-293-9/+7 * - Update to 1.0.0 releasepav2010-02-113-15/+19