forked from Lainports/freebsd-ports
A big Thank You to the original contributors of these ports: * Alex Trull <freebsd.alex@trull.org> * Alonso Cardenas <acm@FreeBSD.org> * Boris Samorodov <bsam@FreeBSD.org> * David Shane Holden <dpejesh@yahoo.com> * Felix Palmen <felix@palmen-it.de> * Hirohisa Yamaguchi <umq@ueo.co.jp> * Kevin Bowling <kbowling@FreeBSD.org> * Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> * Markus Mann, CTS - FreeBSD Team <de-freebsd@ctseuro.com> * Matthias Andree * Matthias Fechner <mfechner@FreeBSD.org> * Oleg Sidorkin <osidorkin@gmail.com> * Oliver Lehmann * Radim Kolar <hsn@sendmail.cz> * Timothy Beyer <beyert@cs.ucr.edu> * hq@FreeBSD.org * johalun0@gmail.com * lev@FreeBSD.org * rooneg@electricjellyfish.net With hat: portmgr
28 lines
1.2 KiB
Text
28 lines
1.2 KiB
Text
post-build:
|
|
.if ${PKGNAMEPREFIX} == "nagios-check_"
|
|
${MAKE_CMD} -C ${WRKSRC}/examples/nagios/check_bareos
|
|
.endif
|
|
|
|
pre-install:
|
|
.if ${PKGNAMESUFFIX} == "18-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 \;
|
|
. endfor
|
|
.endif
|
|
|
|
do-install:
|
|
.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} == "18-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} ${WRKSRC}/core/src/qt-tray-monitor/bareos-tray-monitor ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/core/src/qt-tray-monitor/bareos-tray-monitor.xpm ${STAGEDIR}${PREFIX}/share/pixmaps
|
|
${INSTALL_DATA} ${WRKSRC}/core/src/qt-tray-monitor/bareos-tray-monitor.desktop ${STAGEDIR}${DESKTOPDIR}
|
|
.endif
|