aboutsummaryrefslogtreecommitdiffstats
path: root/dns/dnscrypt-wrapper/Makefile
blob: 1a488784947fa3c61d1f0ddd06d5aff850ed5d3c (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
# $FreeBSD$

PORTNAME=   dnscrypt-wrapper
PORTVERSION=    0.2
DISTVERSIONPREFIX=  v
PORTREVISION=   2
CATEGORIES= dns

MAINTAINER= freebsd@toyingwithfate.com
COMMENT=    Adds dnscrypt support to any name resolver

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libsodium.so:${PORTSDIR}/security/libsodium \
        libevent.so:${PORTSDIR}/devel/libevent2

USE_GITHUB= yes
GH_ACCOUNT= Cofyc

USERS=      _dnscrypt-wrapper
ETCDNSCRYPTWRAPPER= ${PREFIX}/etc/${PORTNAME}
SUB_LIST+=  ETCDNSCRYPTWRAPPER="${ETCDNSCRYPTWRAPPER}" USERS="${USERS}"
USE_RC_SUBR=    ${PORTNAME}

USES=       gmake
MAKE_ARGS=  LDFLAGS="-L${LOCALBASE}/lib" CFLAGS="-I${LOCALBASE}/include" PREFIX="${STAGEDIR}${PREFIX}"

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/*
    ${MKDIR} ${STAGEDIR}${ETCDNSCRYPTWRAPPER}

.include <bsd.port.mk>