aboutsummaryrefslogtreecommitdiffstats
path: root/dns/dnscrypt-proxy/Makefile
blob: ca047fc0dbb32b123a85294292441a30693036fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Created by: Leo Vandewoestijne <freebsd@dns-lab.com>
# $FreeBSD$

PORTNAME=   dnscrypt-proxy
PORTVERSION=    1.3.2
CATEGORIES= dns
MASTER_SITES=   http://download.dnscrypt.org/dnscrypt-proxy/ \
        http://www.dns-lab.com/downloads/dnscrypt-proxy/

MAINTAINER= freebsd@dns-lab.com
COMMENT=    Boost privacy and security of DNS

LIB_DEPENDS=    libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
        libsodium.so:${PORTSDIR}/security/libsodium

GNU_CONFIGURE=  yes
USES=       gmake

SUB_FILES=  pkg-message

USE_RC_SUBR=    ${PORTNAME}

MAN8=       dnscrypt-proxy.8 hostip.8

PORTDOCS=   AUTHORS COPYING ChangeLog INSTALL NEWS README \
        README-PLUGINS.markdown README-WINDOWS.markdown \
        README.markdown TECHNOTES THANKS

OPTIONS_DEFINE= DOCS

NO_STAGE=   yes
.include <bsd.port.options.mk>

pre-install:
    ${INSTALL_MAN} ${WRKSRC}/man/dnscrypt-proxy.8 ${MAN8PREFIX}/man/man8/
    ${INSTALL_MAN} ${WRKSRC}/man/hostip.8 ${MAN8PREFIX}/man/man8/

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
.endif
    @${CAT} ${WRKDIR}/pkg-message

.include <bsd.port.mk>