summaryrefslogtreecommitdiff
path: root/sysutils/healthd/Makefile
blob: a0933b15f2afea9f9de7d05fd52fd1c1d41711a0 (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
52
53
# Created by: jim@thehousleys.net
# $FreeBSD$

PORTNAME=	healthd
PORTVERSION=	0.7.9
PORTREVISION=	2
CATEGORIES=	sysutils ipv6
MASTER_SITES=	http://healthd.thehousleys.net/ \
		http://healthd1.thehousleys.net/

MAINTAINER=	apache@FreeBSD.org
COMMENT=	A daemon to monitor vital motherboard parameters

OPTIONS_DEFINE=	IPV6 FULL_CONFIG
NO_STAGE=	yes
.include <bsd.port.options.mk>

FULL_CONFIG_DESC= Remotely reading the full config

ONLY_FOR_ARCHS=	i386 amd64
USE_RC_SUBR=	${PORTNAME}
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--exec-prefix=${PREFIX}

MAN8=		healthd.8 healthdc.8
INSTALL_TARGET=	install-all

.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+=	--enable-ipv6
.else
CONFIGURE_ARGS+=	--disable-ipv6
.endif

.if ${PORT_OPTIONS:MFULL_CONFIG}
CONFIGURE_ARGS+=	--enable-full-config
.else
CONFIGURE_ARGS+=	--disable-full-config
.endif

post-install:
	@if [ ! -f ${PREFIX}/etc/healthd.conf ]; then \
		${ECHO} "Installing ${PREFIX}/etc/healthd.conf configuration file."; \
		${ECHO} "It is recommended you edit this file to match your system"; \
		${ECHO} "before running the program."; \
		${CP} ${PREFIX}/etc/healthd.conf.sample ${PREFIX}/etc/healthd.conf; \
	fi
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}/
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
	${INSTALL_DATA} ${WRKSRC}/PROTOCOL ${DOCSDIR}/
.endif

.include <bsd.port.mk>