diff options
Diffstat (limited to 'sysutils/bareos-server/Makefile.common')
| -rw-r--r-- | sysutils/bareos-server/Makefile.common | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/sysutils/bareos-server/Makefile.common b/sysutils/bareos-server/Makefile.common index 59adba5749c8..d818daabe6be 100644 --- a/sysutils/bareos-server/Makefile.common +++ b/sysutils/bareos-server/Makefile.common @@ -1,12 +1,12 @@ post-patch: -.if (${PKGNAMESUFFIX} == "-traymonitor-qt5") || (${PKGNAMESUFFIX} == "-traymonitor-qt6") +.if ${PKGNAMESUFFIX} == "-traymonitor" @${REINPLACE_CMD} -e 's|-Werror -Wall|-Wall|g' ${PATCH_WRKSRC}/core/CMakeLists.txt @${REINPLACE_CMD} -e 's|\@bindir\@|${LOCALBASE}/bin|g' ${WRKSRC}/core/src/qt-tray-monitor/bareos-tray-monitor.desktop.in - @${REINPLACE_CMD} '206d' ${WRKSRC}/CMakeLists.txt + @${REINPLACE_CMD} '217d' ${WRKSRC}/CMakeLists.txt .endif post-extract: -.if (${PKGNAMESUFFIX} == "-traymonitor-qt5") || (${PKGNAMESUFFIX} == "-traymonitor-qt6") +.if ${PKGNAMESUFFIX} == "-traymonitor" @${MV} ${WRKSRC}/core/src/defaultconfigs/tray-monitor.d/client/FileDaemon-local.conf.in \ ${WRKSRC}/core/src/defaultconfigs/tray-monitor.d/client/FileDaemon-local.conf @${MV} ${WRKSRC}/core/src/defaultconfigs/tray-monitor.d/director/Director-local.conf.in \ @@ -15,6 +15,14 @@ post-extract: ${WRKSRC}/core/src/defaultconfigs/tray-monitor.d/monitor/bareos-mon.conf @${MV} ${WRKSRC}/core/src/defaultconfigs/tray-monitor.d/storage/StorageDaemon-local.conf.in \ ${WRKSRC}/core/src/defaultconfigs/tray-monitor.d/storage/StorageDaemon-local.conf + @${MV} ${WRKSRC}/contrib/misc/media_vault/media_vault.ini.example.in \ + ${WRKSRC}/contrib/misc/media_vault/media_vault.ini.in + @${MV} ${WRKSRC}/contrib/misc/media_vault/job_admin-media_vault.conf.example.in \ + ${WRKSRC}/contrib/misc/media_vault/job_admin-media_vault.conf.in + @${MV} ${WRKSRC}/contrib/misc/media_vault/console_media_vault.conf.example \ + ${WRKSRC}/contrib/misc/media_vault/console_media_vault.conf + @${MV} ${WRKSRC}/contrib/misc/media_vault/profile_media_vault.conf.example \ + ${WRKSRC}/contrib/misc/media_vault/profile_media_vault.conf .endif post-build: @@ -23,7 +31,7 @@ post-build: .endif pre-install: -.if (${PKGNAMESUFFIX} == "-traymonitor-qt5") || (${PKGNAMESUFFIX} == "-traymonitor-qt6") +.if (${PKGNAMESUFFIX} == "-traymonitor") . for d in client director monitor storage ${MKDIR} ${STAGEDIR}${ETCDIR}/tray-monitor.d/${d} ${FIND} ${WRKSRC}/core/src/defaultconfigs/tray-monitor.d/${d} -type f -name '*.conf' -exec ${MV} -v {} {}.sample \; @@ -40,12 +48,15 @@ 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-qt5") || (${PKGNAMESUFFIX} == "-traymonitor-qt6") +.if (${PKGNAMESUFFIX} == "-traymonitor") # Install config files and preserve existing ones .for d in client director monitor storage ${INSTALL_SCRIPT} ${WRKSRC}/core/src/defaultconfigs/tray-monitor.d/${d}/*.sample ${STAGEDIR}${ETCDIR}/tray-monitor.d/${d}/ .endfor ${INSTALL_PROGRAM} ${CONFIGURE_WRKSRC}/core/src/qt-tray-monitor/bareos-tray-monitor ${STAGEDIR}${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/core/src/images/bareos_1.png ${STAGEDIR}${PREFIX}/share/pixmaps/bareos-tray-monitor.png + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps + ${INSTALL_DATA} ${WRKSRC}/core/src/images/bareos-logo_128x128.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/bareos-tray-monitor.png + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps + ${INSTALL_DATA} ${WRKSRC}/core/src/images/bareos-logo.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/bareos-tray-monitor.svg ${INSTALL_DATA} ${WRKSRC}/core/src/qt-tray-monitor/bareos-tray-monitor.desktop.in ${STAGEDIR}${DESKTOPDIR}/bareos-tray-monitor.desktop .endif |
