Files
ports/sysutils/monit/Makefile
Stefan Eßer 39f07e11a9 sysutils/monit: Add CPE information
Approved by:	portmgr (blanket)
2021-10-13 15:52:58 +02:00

46 lines
1020 B
Makefile

# Created by: Martin Pala <martinp@tildeslash.com>
PORTNAME= monit
DISTVERSION= 5.29.0
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= https://mmonit.com/monit/dist/
MAINTAINER= martinp@tildeslash.com
COMMENT= Unix system management and proactive monitoring
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= bison cpe gmake
CPE_VENDOR= m${PORTNAME}
USE_RC_SUBR= ${PORTNAME}
GNU_CONFIGURE= yes
SUB_FILES= pkg-message
PLIST_FILES= bin/monit \
etc/monitrc.sample \
man/man1/monit.1.gz
PORTDOCS= CHANGES COPYING
OPTIONS_DEFINE= DOCS PAM SSL
OPTIONS_DEFAULT= PAM SSL
PAM_CONFIGURE_OFF= --without-pam
SSL_USES= ssl
SSL_CONFIGURE_OFF= --without-ssl
post-install:
${INSTALL} -m 600 ${WRKSRC}/monitrc ${STAGEDIR}${PREFIX}/etc/monitrc.sample
@${REINPLACE_CMD} -i '' -e \
"s|include /etc/monit.d|include ${PREFIX}/etc/monit.d|" \
${STAGEDIR}${PREFIX}/etc/monitrc.sample
${INSTALL} -d ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL} -m 644 ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>