summaryrefslogtreecommitdiff
path: root/dns/inadyn/Makefile
blob: 368bb2c216683a9ab16f8f89f59e6f6c3f16e9a3 (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
47
# Created by: Alex Samorukov <samm@freebsd.org>

PORTNAME=	inadyn
PORTVERSION=	2.9.1
CATEGORIES=	dns
MASTER_SITES=	https://github.com/troglobit/${PORTNAME}/releases/download/v${PORTVERSION}/

MAINTAINER=	samm@FreeBSD.org
COMMENT=	Dynamic DNS update client

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libconfuse.so:devel/libconfuse
RUN_DEPENDS=	ca_root_nss>=0:security/ca_root_nss

USES=		pkgconfig tar:xz

GNU_CONFIGURE=	yes

USERS=		inadyn
GROUPS=		inadyn

USE_RC_SUBR=	inadyn

OPTIONS_DEFINE=		DOCS EXAMPLES
OPTIONS_DEFAULT=	OPENSSL
OPTIONS_SINGLE=		TLS
OPTIONS_SINGLE_TLS=	GNUTLS OPENSSL

GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls
OPENSSL_USES=		ssl
OPENSSL_CONFIGURE_ENABLE=	openssl
OPENSSL_CONFIGURE_ON=	OpenSSL_CFLAGS=-I${OPENSSLINC} OpenSSL_LIBS="-L${OPENSSLLIB} -lssl"

post-patch:
	@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" \
		${WRKSRC}/man/inadyn.8 ${WRKSRC}/man/inadyn.conf.5 \
		${WRKSRC}/examples/README.md ${WRKSRC}/examples/inadyn.conf

post-install:
	${MV} ${STAGEDIR}${DOCSDIR}/examples ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${STAGEDIR}${EXAMPLESDIR}/inadyn.conf ${STAGEDIR}${PREFIX}/etc/inadyn.conf.sample
	${MKDIR} ${STAGEDIR}/var/cache/inadyn
	${MKDIR} ${STAGEDIR}/var/run/inadyn

.include <bsd.port.mk>