summaryrefslogtreecommitdiff
path: root/dns/gdnsd/Makefile
blob: b8164be5469e56df17d2e6cba0b567319b83c84e (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
# New ports collection makefile for:	gdnsd
# Date created:			Tue May 15, 2012
# Whom:				Stefan Caunter <stef@scaleengine.com>
#
# $FreeBSD$
#

PORTNAME=	gdnsd
PORTVERSION=	1.6.8
CATEGORIES=	dns
MASTER_SITES=	https://github.com/blblack/gdnsd/downloads/ \
		http://gdnsd.scaleengine.net/gdnsd/

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

LICENSE=	GPLv3

OPTIONS_DEFINE=	GEOIP

GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes

MAN1=		gdnsd_geoip_test.1
MAN3=		gdnsd-plugin-api.3
MAN5=		gdnsd.config.5 gdnsd.zonefile.5
MAN8=		gdnsd.8 gdnsd-plugin-simplefo.8 gdnsd-plugin-multifo.8 \
		gdnsd-plugin-metafo.8 gdnsd-plugin-geoip.8 \
		gdnsd-plugin-weighted.8
MANCOMPRESSED=	no

USE_RC_SUBR=	gdnsd

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MWITH_GEOIP}
RUN_DEPENDS+=	${LOCALBASE}/share/GeoIP/GeoIP.dat:${PORTSDIR}/net/GeoIP
.endif

post-install:
	${CP} ${WRKDIR}/${DISTNAME}/docs/config.example ${ETCDIR}/config-dist
	@if [ ! -f ${ETCDIR}/config ]; then \
		${CP} -p ${WRKDIR}/${DISTNAME}/docs/config.example ${ETCDIR}/config ; \
	fi
	${CP} ${WRKDIR}/${DISTNAME}/docs/example.com ${ETCDIR}/example.com

.include <bsd.port.mk>