summaryrefslogtreecommitdiff
path: root/comms/ebusd/Makefile
blob: 338f9ae26849aa4b9d9d7a0ec05ab35d1e2d6403 (plain)
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

PORTNAME=	ebusd
PORTVERSION=	21.2
DISTVERSIONPREFIX=	v
CATEGORIES=	comms

MAINTAINER=	samm@FreeBSD.org
COMMENT=	Daemon for communication with eBUS heating systems

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libargp.so:devel/argp-standalone

USES=		autoreconf compiler:c++11-lang localbase:ldflags

USE_GITHUB=	yes
GH_ACCOUNT=	john30

USE_RC_SUBR=	ebusd

USERS=		ebusd
GROUPS=		ebusd

LOGDIR=		/var/log/${PORTNAME}
RUNDIR=		/var/run/${PORTNAME}
CPPFLAGS+=	-I${LOCALBASE}/include
GNU_CONFIGURE=	yes

PLIST_SUB=	USER=${USERS} GROUP=${GROUPS} \
		LOGDIR=${LOGDIR} \
		RUNDIR=${RUNDIR}

OPTIONS_DEFINE=	MQTT
OPTIONS_DEFAULT=MQTT
MQTT_DESC=	MQTT protocol support

MQTT_CONFIGURE_WITH=	mqtt
MQTT_LIB_DEPENDS=	libmosquitto.so:net/mosquitto
MQTT_VARS=		LIBS+=-lmosquitto

post-install:
	${MKDIR} ${STAGEDIR}${LOGDIR}
	${MKDIR} ${STAGEDIR}${RUNDIR}

.include <bsd.port.mk>