- Fix traymonitor and client-static build
Reported by: pkg-fallout
This commit is contained in:
parent
102c760de1
commit
bdba873938
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=535684
@ -12,38 +12,24 @@ post-build:
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
.if ${PKGNAMESUFFIX} == "-traymonitor"
|
||||
.if ${PKGNAMESUFFIX} == "16-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
|
||||
.if ${PKGNAMESUFFIX} == "-bat"
|
||||
@${MV} ${WRKSRC}/manpages/bat.1 ${WRKSRC}/manpages/${PORTNAME:S/16//}-bat.1
|
||||
@${MV} ${WRKSRC}/src/qt-console/bat.desktop ${WRKSRC}/src/qt-console/${PORTNAME:S/16//}-bat.desktop
|
||||
.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/${PORTNAME:S/16//}-bat.1 ${STAGEDIR}${PREFIX}/man/man1/
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/qt-console/bat ${STAGEDIR}${PREFIX}/bin/${PORTNAME:S/16//}-bat
|
||||
${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/${PORTNAME:S/16//}-bat.desktop ${STAGEDIR}${DESKTOPDIR}
|
||||
.endif
|
||||
.if ${PKGNAMEPREFIX} == "nagios-check_"
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/examples/nagios/check_bareos/check_bareos \
|
||||
${STAGEDIR}${PREFIX}/libexec/nagios
|
||||
.endif
|
||||
.if ${PKGNAMESUFFIX} == "-client-static"
|
||||
.if ${PKGNAMESUFFIX} == "16-client-static"
|
||||
${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"
|
||||
.if ${PKGNAMESUFFIX} == "16-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}/
|
||||
|
Loading…
Reference in New Issue
Block a user