aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/monit/Makefile
blob: 4282a6f46165075ad57e379ec91d406a7ba76e5b (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
48
49
50
51
# New ports collection makefile for:   monit
# Date created:        4 January 2005
# Whom:                Martin Pala <martinp@tildeslash.com>
#
# $FreeBSD$
#

PORTNAME=   monit
PORTVERSION=    5.5
CATEGORIES= sysutils
MASTER_SITES=   http://www.mmonit.com/monit/dist/

MAINTAINER= martinp@tildeslash.com
COMMENT=    Unix system management and proactive monitoring

MAN1=       monit.1

GNU_CONFIGURE=  yes
USE_BISON=  build
USE_GMAKE=  yes
USE_RC_SUBR=    ${PORTNAME}

CONFIGURE_ENV=  CONFIG_SHELL="${SH}" \
        LOCALBASE="${LOCALBASE}"

OPTIONS_DEFINE= SSL
OPTIONS_DEFAULT=SSL

PLIST_FILES=    bin/monit \
        etc/monitrc.sample

SUB_FILES=  pkg-message

DOCS=       CHANGES COPYING README
PORTDOCS=   ${DOCS:T}

.include <bsd.port.options.mk>

.if empty(PORT_OPTIONS:MSSL)
CONFIGURE_ARGS+=    --without-ssl
.endif

post-install:
    ${INSTALL} -m 600 ${WRKSRC}/monitrc ${PREFIX}/etc/monitrc.sample
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL} -m 644 ${DOCS} ${DOCSDIR}/
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>