blob: ff743a741556d3939c9b859828b17f808356de4b (
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
48
49
50
51
|
# $NetBSD: Makefile,v 1.2 2017/08/22 17:00:35 fhajny Exp $
DISTNAME= dnsdist-1.2.0
CATEGORIES= net
MASTER_SITES= https://downloads.powerdns.com/releases/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= filip@joyent.com
HOMEPAGE= http://dnsdist.org/
COMMENT= Highly DNS-, DoS- and abuse-aware loadbalancer
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= gmake pkg-config
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= DNSDIST_USER DNSDIST_GROUP
DNSDIST_USER?= dnsdist
DNSDIST_GROUP?= dnsdist
PKG_GROUPS+= ${DNSDIST_GROUP}
PKG_USERS+= ${DNSDIST_USER}:${DNSDIST_GROUP}
PKG_GECOS.${DNSDIST_USER}= dnsdist daemon user
FILES_SUBST+= DNSDIST_USER=${DNSDIST_USER}
FILES_SUBST+= DNSDIST_GROUP=${DNSDIST_GROUP}
CONF_FILES+= share/examples/dnsdist/dnsdist.conf \
${PKG_SYSCONFDIR}/dnsdist.conf
CONFIGURE_ARGS+= --enable-dnscrypt
CONFIGURE_ARGS+= --enable-libsodium
CONFIGURE_ARGS+= --enable-protobuf
CONFIGURE_ARGS+= --enable-re2
CONFIGURE_ENV+= LIBEDIT_CFLAGS="-I${BUILDLINK_PREFIX.libedit}/include"
CONFIGURE_ENV+= LIBEDIT_LIBS="-L${BUILDLINK_PREFIX.libedit}/lib -ledit"
INSTALLATION_DIRS+= share/examples/dnsdist
RCD_SCRIPTS+= dnsdist
post-install:
${INSTALL_DATA} ${.CURDIR}/files/dnsdist.conf \
${DESTDIR}${PREFIX}/share/examples/dnsdist
.include "../../devel/boost-headers/buildlink3.mk"
.include "../../devel/editline/buildlink3.mk"
.include "../../devel/protobuf/buildlink3.mk"
.include "../../devel/re2/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"
.include "../../security/libsodium/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|