2018-03-25 14:46:17 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dnscrypt-proxy
|
2020-06-12 10:34:48 +00:00
|
|
|
PORTVERSION= 2.0.44
|
2019-10-09 10:34:56 +00:00
|
|
|
CATEGORIES= dns security
|
2018-03-25 14:46:17 +00:00
|
|
|
PKGNAMESUFFIX= 2
|
|
|
|
|
2018-12-05 14:09:12 +00:00
|
|
|
MAINTAINER= egypcio@FreeBSD.org
|
2018-03-25 14:46:17 +00:00
|
|
|
COMMENT= Flexible DNS proxy with support for encrypted protocols
|
|
|
|
|
|
|
|
LICENSE= ISCL
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
|
|
|
RUN_DEPENDS= ca_root_nss>=3.35:security/ca_root_nss
|
|
|
|
|
2019-09-29 22:29:39 +00:00
|
|
|
USES= go:modules
|
2018-10-15 08:58:30 +00:00
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
2018-03-25 14:46:17 +00:00
|
|
|
USE_GITHUB= yes
|
2018-10-15 08:58:30 +00:00
|
|
|
|
2019-10-30 18:40:15 +00:00
|
|
|
GH_ACCOUNT= DNSCrypt
|
2018-10-15 08:58:30 +00:00
|
|
|
|
2019-09-29 22:29:39 +00:00
|
|
|
GO_TARGET= ./dnscrypt-proxy:${PREFIX}/sbin/dnscrypt-proxy
|
|
|
|
|
2018-03-25 14:46:17 +00:00
|
|
|
USERS= _dnscrypt-proxy
|
|
|
|
GROUPS= _dnscrypt-proxy
|
|
|
|
|
2018-04-18 02:25:48 +00:00
|
|
|
PLIST_SUB= USER="${USERS}" GROUP="${GROUPS}"
|
|
|
|
SUB_LIST= USER="${USERS}" GROUP="${GROUPS}"
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2018-03-26 13:40:19 +00:00
|
|
|
PORTDOCS= README.*
|
|
|
|
PORTEXAMPLES= example*
|
2018-03-25 14:46:17 +00:00
|
|
|
|
|
|
|
CONFLICTS_INSTALL= dnscrypt-proxy
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
|
|
|
do-install-DOCS-on:
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2018-03-26 13:40:19 +00:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2018-03-25 14:46:17 +00:00
|
|
|
|
|
|
|
do-install-EXAMPLES-on:
|
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2018-03-26 13:40:19 +00:00
|
|
|
cd ${WRKSRC}/${PORTNAME} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
|
2018-03-25 14:46:17 +00:00
|
|
|
|
|
|
|
post-install:
|
2018-04-18 02:25:48 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
|
|
# After 'install' examples because of the priv drop issue with Go.
|
|
|
|
# Keeping original example files.
|
2018-03-25 14:46:17 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
"s#\['127.0.0.1:53', '\[::1\]:53'\]#\['127.0.0.1:5353'\]#" \
|
|
|
|
${WRKSRC}/${PORTNAME}/example-${PORTNAME}.toml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/example-${PORTNAME}.toml \
|
2018-04-18 02:25:48 +00:00
|
|
|
${STAGEDIR}${ETCDIR}/${PORTNAME}.toml.sample
|
2018-03-25 14:46:17 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|