freebsd-ports/dns/gdnsd2/Makefile
Ryan Steinmetz 920d4cdee7 New port: dns/gdnsd2:
gdnsd is an Authoritative-only DNS server.  This port tracks the 2.x release.

The initial g stands for Geographic, as gdnsd offers a plugin system for
geographic (or other sorts of) balancing, redirection, and
service-state-conscious failover. If you don't care about that feature,
it's still quite good at being a very fast, lean, and resilient
authoritative-only server for static DNS data.

gdnsd is written in C using libev and pthreads with a focus on high
performance, low latency service. It does not offer any form of caching or
recursive service, and does not support DNSSEC.

WWW: https://github.com/blblack/gdnsd/
2014-11-07 16:38:36 +00:00

56 lines
1.4 KiB
Makefile

# Created by: Allan Jude <allanjude@freebsd.org>
# $FreeBSD$
PORTNAME= gdnsd
PORTVERSION= 2.1.0
CATEGORIES= dns
MASTER_SITES= https://github.com/blblack/gdnsd/releases/download/v${PORTVERSION}/ \
http://mirrors.rit.edu/zi/ \
http://gdnsd.scaleengine.net/gdnsd/
PKGNAMESUFFIX= 2
MAINTAINER= zi@freebsd.org
COMMENT= Authoritative-only GeoIP-aware DNS server
LICENSE= GPLv3
LIB_DEPENDS= libev.so:${PORTSDIR}/devel/libev
FETCH_ARGS= -Fpr
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var
USE_LDCONFIG= yes
USES= pkgconfig libtool tar:xz perl5
USE_PERL5= build
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFLICTS_INSTALL= gdnsd-1.[0-9]*
USE_RC_SUBR= gdnsd
USERS?= gdnsd
GROUPS?= gdnsd
OPTIONS_DEFINE= DOCS GEOIP URCU
OPTIONS_DEFAULT=GEOIP
GEOIP_DESC= Enable GeoIP Support
GEOIP_RUN_DEPENDS= GeoIP>=0:${PORTSDIR}/net/GeoIP
URCU_DESC= Read-Copy-Update Support (Faster Zone Parsing)
URCU_CONFIGURE_WITH= urcu
URCU_LIB_DEPENDS= liburcu.so:${PORTSDIR}/sysutils/liburcu
post-patch:
@${REINPLACE_CMD} -e 's|$${localstatedir}/lib/$${PACKAGE_NAME}|/var/db/${PORTNAME}|g' \
${WRKSRC}/configure
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/libgdnsd.so
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/plugin_*.so
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/gdnsd/geoip \
${STAGEDIR}${PREFIX}/etc/gdnsd/zones \
${STAGEDIR}/var/run/gdnsd
.include <bsd.port.mk>