39 lines
912 B
Makefile
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>
|