aboutsummaryrefslogtreecommitdiffstats
path: root/dns/gdnsd/Makefile
blob: 302b8c4c93bceb2597776d9ce7edead3c8629345 (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
# Created by: Allan Jude <ports@scaleengine.com>
# $FreeBSD$

PORTNAME=   gdnsd
PORTVERSION=    1.10.1
CATEGORIES= dns
MASTER_SITES=   http://downloads.gdnsd.net/ \
        http://gdnsd.scaleengine.net/gdnsd/

MAINTAINER= ports@scaleengine.com
COMMENT=    Authoritative-only GeoIP-aware DNS server

LICENSE=    GPLv3

LIB_DEPENDS=    libev.so:${PORTSDIR}/devel/libev

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --localstatedir=/var
USE_LDCONFIG=   yes
USE_XZ=     yes
USES=       pkgconfig
CPPFLAGS+=  -I${LOCALBASE}/include -L${LOCALBASE}/lib

USE_RC_SUBR=    gdnsd

USERS?=     gdnsd
GROUPS?=    gdnsd

OPTIONS_DEFINE= GEOIP URCU

GEOIP_DESC=     Enable GeoIP Support
GEOIP_RUN_DEPENDS=  ${LOCALBASE}/share/GeoIP/GeoIP.dat:${PORTSDIR}/net/GeoIP

URCU_DESC=      Read-Copy-Update Support (Faster Zone Parsing)
URCU_CONFIGURE_WITH=    urcu
URCU_LIB_DEPENDS=   liburcu.so:${PORTSDIR}/sysutils/liburcu

.include <bsd.port.options.mk>

post-install:
    ${MKDIR} ${STAGEDIR}${PREFIX}/etc/gdnsd/zones

.include <bsd.port.mk>