Lines 1-63
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= dnscrypt-proxy |
3 |
PORTNAME= dnscrypt-proxy |
4 |
PORTVERSION= 2.0.15 |
4 |
PORTVERSION= 2.0.16 |
5 |
CATEGORIES= dns security ipv6 |
5 |
CATEGORIES= dns security ipv6 |
6 |
PKGNAMESUFFIX= 2 |
6 |
PKGNAMESUFFIX= 2 |
7 |
|
7 |
|
8 |
MAINTAINER= egypcio@googlemail.com |
8 |
MAINTAINER= egypcio@googlemail.com |
9 |
COMMENT= Flexible DNS proxy with support for encrypted protocols |
9 |
COMMENT= Flexible DNS proxy with support for encrypted protocols |
10 |
|
10 |
|
11 |
LICENSE= ISCL |
11 |
LICENSE= ISCL |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
|
13 |
|
14 |
BUILD_DEPENDS= go:lang/go |
|
|
15 |
RUN_DEPENDS= ca_root_nss>=3.35:security/ca_root_nss |
14 |
RUN_DEPENDS= ca_root_nss>=3.35:security/ca_root_nss |
16 |
|
15 |
|
17 |
USE_RC_SUBR= ${PORTNAME} |
16 |
USE_RC_SUBR= ${PORTNAME} |
18 |
|
17 |
|
|
|
18 |
USES= go |
19 |
USE_GITHUB= yes |
19 |
USE_GITHUB= yes |
20 |
GH_ACCOUNT= jedisct1 |
20 |
GH_ACCOUNT= jedisct1 |
21 |
|
21 |
|
22 |
USERS= _dnscrypt-proxy |
22 |
USERS= _dnscrypt-proxy |
23 |
GROUPS= _dnscrypt-proxy |
23 |
GROUPS= _dnscrypt-proxy |
24 |
|
24 |
|
25 |
PLIST_SUB= USER="${USERS}" GROUP="${GROUPS}" |
25 |
PLIST_SUB= USER="${USERS}" GROUP="${GROUPS}" |
26 |
SUB_LIST= USER="${USERS}" GROUP="${GROUPS}" |
26 |
SUB_LIST= USER="${USERS}" GROUP="${GROUPS}" |
27 |
SUB_FILES= pkg-message |
27 |
SUB_FILES= pkg-message |
28 |
|
28 |
|
29 |
PORTDOCS= README.* |
29 |
PORTDOCS= README.* |
30 |
PORTEXAMPLES= example* |
30 |
PORTEXAMPLES= example* |
31 |
|
31 |
|
32 |
CONFLICTS_INSTALL= dnscrypt-proxy |
32 |
CONFLICTS_INSTALL= dnscrypt-proxy |
33 |
|
33 |
|
34 |
OPTIONS_DEFINE= DOCS EXAMPLES |
34 |
OPTIONS_DEFINE= DOCS EXAMPLES |
35 |
|
35 |
|
36 |
do-build: |
36 |
do-build: |
37 |
${RLN} ${WRKSRC}/vendor ${WRKSRC}/src |
37 |
${RLN} ${WRKSRC}/vendor ${WRKSRC}/src |
38 |
cd ${WRKSRC}/${PORTNAME} && \ |
38 |
cd ${WRKSRC}/${PORTNAME} && \ |
39 |
${SETENV} ${MAKE_ENV} ${BUILD_ENV} GOPATH=${WRKSRC} \ |
39 |
${SETENV} ${MAKE_ENV} ${GO_ENV} GOPATH=${WRKSRC} \ |
40 |
go build -ldflags "-s -w" -o ${WRKDIR}/sbin/${PORTNAME} |
40 |
${GO_CMD} build -ldflags "-s -w" -o ${WRKDIR}/sbin/${PORTNAME} |
41 |
|
41 |
|
42 |
do-install: |
42 |
do-install: |
43 |
${INSTALL_PROGRAM} ${WRKDIR}/sbin/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin |
43 |
${INSTALL_PROGRAM} ${WRKDIR}/sbin/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin |
44 |
|
44 |
|
45 |
do-install-DOCS-on: |
45 |
do-install-DOCS-on: |
46 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
46 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
47 |
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} |
47 |
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} |
48 |
|
48 |
|
49 |
do-install-EXAMPLES-on: |
49 |
do-install-EXAMPLES-on: |
50 |
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
50 |
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
51 |
cd ${WRKSRC}/${PORTNAME} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR} |
51 |
cd ${WRKSRC}/${PORTNAME} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR} |
52 |
|
52 |
|
53 |
post-install: |
53 |
post-install: |
54 |
${MKDIR} ${STAGEDIR}${ETCDIR} |
54 |
${MKDIR} ${STAGEDIR}${ETCDIR} |
55 |
# After 'install' examples because of the priv drop issue with Go. |
55 |
# After 'install' examples because of the priv drop issue with Go. |
56 |
# Keeping original example files. |
56 |
# Keeping original example files. |
57 |
@${REINPLACE_CMD} -e \ |
57 |
@${REINPLACE_CMD} -e \ |
58 |
"s#\['127.0.0.1:53', '\[::1\]:53'\]#\['127.0.0.1:5353'\]#" \ |
58 |
"s#\['127.0.0.1:53', '\[::1\]:53'\]#\['127.0.0.1:5353'\]#" \ |
59 |
${WRKSRC}/${PORTNAME}/example-${PORTNAME}.toml |
59 |
${WRKSRC}/${PORTNAME}/example-${PORTNAME}.toml |
60 |
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/example-${PORTNAME}.toml \ |
60 |
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/example-${PORTNAME}.toml \ |
61 |
${STAGEDIR}${ETCDIR}/${PORTNAME}.toml.sample |
61 |
${STAGEDIR}${ETCDIR}/${PORTNAME}.toml.sample |
62 |
|
62 |
|
63 |
.include <bsd.port.mk> |
63 |
.include <bsd.port.mk> |