sthen 10f4c6d6b1 update to dnscrypt-proxy-2.0.44 and adjust ownership/permissions on
/var/dnscrypt-proxy/ and contained files to work with upstream changes.
From Nam Nguyen.
2020-06-29 22:11:45 +00:00

41 lines
911 B
Makefile

# $OpenBSD: Makefile,v 1.54 2020/06/29 22:11:45 sthen Exp $
COMMENT = flexible DNS proxy with support for encrypted DNS protocols
GH_ACCOUNT = jedisct1
GH_PROJECT = dnscrypt-proxy
GH_TAGNAME = 2.0.44
CATEGORIES = net
HOMEPAGE = https://dnscrypt.info/
MAINTAINER = Nam Nguyen <namn@berkeley.edu>
# ISC
PERMIT_PACKAGE = Yes
WANTLIB = c pthread
MODULES = lang/go
MODGO_TYPE = bin
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-test:
cd ${WRKSRC}/dnscrypt-proxy && ${MODGO_CMD} test
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>