bket 28b22aa277 Update to dnscrypt-proxy-2.0.19.
Maintainer responded with "Looks good".

OK mestre@ (who had the same diff).
2018-11-30 16:10:01 +00:00

39 lines
912 B
Makefile

# $OpenBSD: Makefile,v 1.38 2018/11/30 16:10:01 bket Exp $
COMMENT = flexible DNS proxy, with support for encrypted DNS protocols
GH_ACCOUNT = jedisct1
GH_PROJECT = dnscrypt-proxy
GH_TAGNAME = 2.0.19
CATEGORIES = net
HOMEPAGE = https://dnscrypt.info/
MAINTAINER = Frank Denis <dnscrypt@pureftpd.org>
# ISC
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = c pthread
MODULES = lang/go
MODGO_TYPE = bin
MODGO_ENV = PATH="${PORTPATH}" HOME="${PORTHOME}"
INSTDIR = ${PREFIX}/share/examples/dnscrypt-proxy
post-patch:
${SUBST_CMD} ${WRKDIST}/dnscrypt-proxy/example-dnscrypt-proxy.toml
do-build:
cd ${WRKSRC}/dnscrypt-proxy && ${MODGO_CMD} build
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dnscrypt-proxy/dnscrypt-proxy ${PREFIX}/bin/
${INSTALL_DATA_DIR} ${INSTDIR}
${INSTALL_DATA} ${WRKSRC}/dnscrypt-proxy/example-* ${INSTDIR}
rm -f ${INSTDIR}/example-dnscrypt-proxy.toml.{beforesubst,orig}
.include <bsd.port.mk>