aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/hastmon/Makefile
blob: 4680d17fd77d75e2505c692eb5ac9d41c051a7cb (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
PORTNAME=	hastmon
PORTVERSION=	0.3.4
PORTREVISION=	1
CATEGORIES=	net-mgmt

MAINTAINER=	trociny@FreeBSD.org
COMMENT=	Cluster monitoring daemon
WWW=		http://hastmon.googlecode.com/

LICENSE=	BSD2CLAUSE

BUILD_DEPENDS=	mk-configure>=0.20:devel/mk-configure

USE_GITHUB=	yes
GH_ACCOUNT=	trociny

USES=		ssl
MKCMAKE?=	${LOCALBASE}/bin/mkcmake
INSTALL_TARGET=	installdirs install
MAKE_ARGS=	MANDIR=${PREFIX}/share/man

PORTDOCS=	ChangeLog COPYRIGHT README

OPTIONS_DEFINE=	DOCS

post-patch:
	${REINPLACE_CMD} \
		-e "s|\(-lcrypto\)|-L${OPENSSLLIB} \1|g" \
		-e "s|\(-DHAVE_CRYPTO\)|-I${OPENSSLINC} \1|g" \
		${WRKSRC}/hastmon/Makefile \
		${WRKSRC}/hastmonctl/Makefile

do-build:
	${SETENV} ${MKCMAKE_ENV} ${MKCMAKE} -C ${WRKSRC}

do-install:
	${SETENV} ${MKCMAKE_ENV} DESTDIR=${STAGEDIR} \
		${MKCMAKE} -C ${WRKSRC} ${INSTALL_TARGET} ${MAKE_ARGS}

	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>