blob: 5c6cb396487c018cbf93e7631d01f0964c335dfc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
PORTNAME= hiawatha-monitor
PORTVERSION= 1.6
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= https://www.hiawatha-webserver.org/files/
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
DISTNAME= monitor-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Monitoring tool for the Hiawatha web server
WWW= https://www.hiawatha-webserver.org/monitor
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= php:flavors shebangfix
USE_PHP= ctype mysqli 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>
|