freebsd-ports/dns/dnscrypt-proxy2/Makefile
Vinícius Zavam cbc186ec84 use @FreeBSD.org as MAINTAINER instead of my private address
benchmarks/vegeta
  devel/busybee
  devel/git-lfs
  devel/gnu-efi
  devel/hub
  devel/libe
  devel/py-fabric3
  devel/py-fabric3
  dns/dhisd
  dns/dnscrypt-proxy2
  dns/go-geodns
  emulators/hatari
  irc/weechat-otr
  lang/coffeescript
  net-mgmt/cacti88
  net-mgmt/cacti88-spine
  net-p2p/libbt
  net/py-iplib
  net/py-iplib
  net/py-libfte
  net/py-sbws
  security/obfs4proxy-tor
  security/onionscan
  security/openvpn-admin
  security/py-fteproxy
  security/py-yubikey-manager
  security/super
  sysutils/intel-pcm-devel
  sysutils/openipmi
  sysutils/shim
  sysutils/xbatt
  textproc/multimarkdown
  textproc/regex2dfa
  www/onionshare

Approved by:	araujo (mentor)
Differential Revision:	https://reviews.freebsd.org/D18434
2018-12-05 14:09:12 +00:00

63 lines
1.6 KiB
Makefile

# $FreeBSD$
PORTNAME= dnscrypt-proxy
PORTVERSION= 2.0.19
CATEGORIES= dns security ipv6
PKGNAMESUFFIX= 2
MAINTAINER= egypcio@FreeBSD.org
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
USES= go
USE_RC_SUBR= ${PORTNAME}
USE_GITHUB= yes
GH_ACCOUNT= jedisct1
USERS= _dnscrypt-proxy
GROUPS= _dnscrypt-proxy
PLIST_SUB= USER="${USERS}" GROUP="${GROUPS}"
SUB_LIST= USER="${USERS}" GROUP="${GROUPS}"
SUB_FILES= pkg-message
PORTDOCS= README.*
PORTEXAMPLES= example*
CONFLICTS_INSTALL= dnscrypt-proxy
OPTIONS_DEFINE= DOCS EXAMPLES
do-build:
${RLN} ${WRKSRC}/vendor ${WRKSRC}/src
cd ${WRKSRC}/${PORTNAME} && \
${SETENV} ${MAKE_ENV} ${GO_ENV} GOPATH=${WRKSRC} \
${GO_CMD} build ${GO_BUILDFLAGS} -o ${WRKDIR}/sbin/${PORTNAME}
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/sbin/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
do-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/${PORTNAME} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
post-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
# After 'install' examples because of the priv drop issue with Go.
# Keeping original example files.
@${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 \
${STAGEDIR}${ETCDIR}/${PORTNAME}.toml.sample
.include <bsd.port.mk>