[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / dnsdist

File: [cvs.NetBSD.org] / pkgsrc / net / dnsdist / Makefile (download)

Revision 1.9, Sat Dec 15 21:12:22 2018 UTC (5 years, 3 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4
Changes since 1.8: +2 -2 lines

*: update email for fhajny

# $NetBSD: Makefile,v 1.9 2018/12/15 21:12:22 wiz Exp $

DISTNAME=	dnsdist-1.3.2
CATEGORIES=	net
MASTER_SITES=	https://downloads.powerdns.com/releases/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	fhajny@NetBSD.org
HOMEPAGE=	https://dnsdist.org/
COMMENT=	Highly DNS-, DoS- and abuse-aware loadbalancer
LICENSE=	gnu-gpl-v2

GNU_CONFIGURE=	yes
USE_LANGUAGES=	c c++11
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-re2
CONFIGURE_ARGS+=	--with-protobuf
CONFIGURE_ARGS+=	--without-net-snmp
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"