aboutsummaryrefslogtreecommitdiffstats
path: root/dns/curvedns/Makefile
blob: 4902c1d93230313af91076d6aab7ae32ca77d57f (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
# Created by: Leo Vandewoestijne <freebsd@dns-lab.com>
# $FreeBSD$

PORTNAME=   curvedns
PORTVERSION=    0.88.b
PORTREVISION=   5
CATEGORIES= dns
DISTNAME=   curvedns-0.88-unstable

MAINTAINER= vsevolod@FreeBSD.org
COMMENT=    Forwarder adding DNSCurve to an authoritative nameserver

LIB_DEPENDS=    libev.so:${PORTSDIR}/devel/libev \
        libsodium.so:${PORTSDIR}/security/libsodium \
        libexecinfo.so:${PORTSDIR}/devel/libexecinfo
RUN_DEPENDS=    setuidgid:${PORTSDIR}/sysutils/daemontools
BUILD_DEPENDS=  bash:${PORTSDIR}/shells/bash

USE_GITHUB= yes
GH_ACCOUNT= vstakhov
GH_TAGNAME= 0.87
GH_COMMIT=  a88e27e

ALL_TARGET= targets

CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

USERS=      bind
GROUPS=     bind
CURVE_UID=  53
CURVE_GID=  53

SUB_FILES=  pkg-message

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/curvedns ${WRKSRC}/curvedns-keygen ${STAGEDIR}${PREFIX}/bin/
    ${MKDIR} ${STAGEDIR}${PREFIX}/etc/curvedns/log ${STAGEDIR}${PREFIX}/etc/curvedns/env
    ${INSTALL_SCRIPT} ${WRKSRC}/contrib/curvedns-run ${STAGEDIR}${PREFIX}/etc/curvedns/run.sample
    ${INSTALL_SCRIPT} ${WRKSRC}/contrib/curvedns-log-run ${STAGEDIR}${PREFIX}/etc/curvedns/log/run.sample
    ${ECHO_CMD} ${CURVE_UID} > ${STAGEDIR}${PREFIX}/etc/curvedns/env/UID
    ${ECHO_CMD} ${CURVE_GID} > ${STAGEDIR}${PREFIX}/etc/curvedns/env/GID

.include <bsd.port.mk>