# $OpenBSD: Makefile,v 1.86 2019/11/19 12:39:04 espie Exp $

COMMENT =           Non-caching, non-recursing authorative DNS server
DISTNAME =          delphinusdnsd-${VERSION}
VERSION =           1.4.1
PKGNAME =           ${DISTNAME}
CATEGORIES =        net

HOMEPAGE =          https://delphinusdns.org/
MAINTAINER =        Ricardo Santos <eu@pirata.sh>

# BSD
PERMIT_PACKAGE =    Yes
#uses pledge()

MASTER_SITES =      https://delphinusdns.org/download/

WANTLIB +=          c ssl crypto util
CFLAGS=             -Wall -g
LDFLAGS=            -Wall -g

CONFIGURE_STYLE =   simple
CONFIGURE_ARGS =    --user=_ddd \
                    --location=/var/delphinusdnsd

post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/delphinusdnsd
        ${INSTALL_DATA} ${WRKDIST}/examples/Master/example1.conf \
            ${PREFIX}/share/examples/delphinusdnsd

.include <bsd.port.mk>
