aboutsummaryrefslogtreecommitdiffstats
path: root/dns/dnsdist/Makefile
blob: 8b001678e82713e8507af0b46ba7ec4aa44cf6cb (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
# Created by: Carlos J Puga Medina <cpm@fbsd.es>
# $FreeBSD$

PORTNAME=   dnsdist
DISTVERSION=    1.0.0-alpha2
CATEGORIES= dns net
MASTER_SITES=   https://downloads.powerdns.com/releases/ \
        LOCAL/cpm

MAINTAINER= cpm@FreeBSD.org
COMMENT=    Highly DNS-, DoS- and abuse-aware loadbalancer

LICENSE=    GPLv2 UNLICENSE
LICENSE_COMB=   multi
LICENSE_NAME_UNLICENSE= The Unlicense
LICENSE_FILE_UNLICENSE= ${WRKSRC}/ext/incbin/UNLICENSE
LICENSE_PERMS_UNLICENSE=    dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

BUILD_DEPENDS=  ${LOCALBASE}/lib/libatomic_ops.a:devel/libatomic_ops
LIB_DEPENDS=    libboost_serialization.so:devel/boost-libs \
        libsodium.so:security/libsodium

CXXFLAGS+=  -D_GLIBCXX_USE_C99
LDFLAGS+=   -L${LOCALBASE}/lib -latomic
GNU_CONFIGURE=  yes
USE_GCC=    yes
USES=       bison cpe gmake libedit libtool lua:52 pkgconfig tar:bz2
CONFIGURE_ARGS= --enable-dnscrypt --enable-libsodium
INSTALL_TARGET= install-strip

USE_RC_SUBR=    dnsdist

post-install:
    ${INSTALL_DATA} ${FILESDIR}/dnsdist.conf.sample \
        ${STAGEDIR}${PREFIX}/etc

.include <bsd.port.mk>