freebsd-ports/www/hiawatha-monitor/Makefile
Tobias Kortkamp 4cbeb6ad77 New port: www/hiawatha-monitor
The Hiawatha Monitor is a monitoring tool for the Hiawatha web
server.  It can be used to keep track of the performance and security
of all your Hiawatha web servers via one single interface.  It is
not a replacement for analytics software or the local logfiles, but
it gives you a quick and easy overview of how your web servers are
performing and which ones require some attention.

The Hiawatha Monitor is a PHP web application with a MySQL database
backend.  It requires the cron daemon for periodic downloading of
statistical information from the web servers it monitors.

WWW: https://www.hiawatha-webserver.org/monitor
2018-11-30 10:58:21 +00:00

47 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= hiawatha-monitor
PORTVERSION= 1.6
CATEGORIES= www
MASTER_SITES= https://www.hiawatha-webserver.org/files/
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
DISTNAME= monitor-${PORTVERSION}
MAINTAINER= tobik@FreeBSD.org
COMMENT= Monitoring tool for the Hiawatha webserver
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= php:flavors shebangfix
USE_PHP= ctype mysqli openssl xml xsl zlib
SHEBANG_FILES= database/delete_old_logs \
database/fetch_webserver_logs \
database/flush_cache \
database/private_pages \
database/send_reports \
database/set_password
NO_ARCH= yes
NO_BUILD= yes
SUB_FILES= pkg-message
WRKSRC= ${WRKDIR}/monitor
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's,/var/www/monitor,${WWWDIR},g' ${WRKSRC}/INSTALL
do-install:
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
cd ${STAGEDIR}${WWWDIR} && ${CHMOD} ${BINMODE} ${SHEBANG_FILES}
.for f in private_pages.conf public_pages.conf website.conf
${MV} ${STAGEDIR}${WWWDIR}/settings/${f} \
${STAGEDIR}${WWWDIR}/settings/${f}.sample
.endfor
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/INSTALL ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>