summaryrefslogtreecommitdiff
path: root/net/dnscrypt-proxy2/Makefile
blob: 00eba0b805e0cf4296df16e3d15ce68c00260c7a (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
# $NetBSD: Makefile,v 1.34 2020/03/30 10:09:34 nia Exp $

PKGNAME=	dnscrypt-proxy2-2.0.42
DISTNAME=	dnscrypt-proxy-${PKGVERSION_NOREV}
CATEGORIES=	net security
MASTER_SITES=	${MASTER_SITE_GITHUB:=jedisct1/}
GITHUB_PROJECT=	dnscrypt-proxy
GITHUB_TAG=	${PKGVERSION_NOREV}

MAINTAINER=	nia@NetBSD.org
HOMEPAGE=	https://github.com/jedisct1/dnscrypt-proxy
COMMENT=	DNS proxy with support for encrypted protocols
LICENSE=	isc

EXTRACT_USING=	bsdtar
USE_TOOLS+=	pax

GO_SRCPATH=	github.com/jedisct1/dnscrypt-proxy/
GO_DIST_BASE=	${DISTNAME}

EGDIR=		${PREFIX}/share/examples/dnscrypt-proxy

RCD_SCRIPTS=	dnscrypt_proxy
CONF_FILES=	${EGDIR}/dnscrypt_proxy.toml ${PKG_SYSCONFDIR}/dnscrypt_proxy.toml

INSTALLATION_DIRS+=	${EGDIR}

do-install:
	${RUN} cd ${WRKDIR}; [ ! -d bin ] || ${PAX} -rw bin ${DESTDIR}${PREFIX}
	${INSTALL_DATA} ${FILESDIR}/dnscrypt_proxy.toml ${DESTDIR}${EGDIR}/dnscrypt_proxy.toml

.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"