aboutsummaryrefslogtreecommitdiffstats
path: root/dns/dnscrypt-proxy/Makefile
blob: 5b5f1827fcedba1b7391d5436b6e4803782739de (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Created by: Leo Vandewoestijne <freebsd@dns.company>
# $FreeBSD$

PORTNAME=   dnscrypt-proxy
PORTVERSION=    1.9.5
PORTREVISION=   3
CATEGORIES= dns
MASTER_SITES=   LOCAL/dbaio/${PORTNAME}/

MAINTAINER= freebsd@dns.company
COMMENT=    Boost privacy and security of DNS

LICENSE=    MIT
LICENSE_FILE=   ${WRKSRC}/COPYING

DEPRECATED=     Deprecated by upstream, use dns/dnscrypt-proxy2 instead
EXPIRATION_DATE=    2018-09-25
BROKEN_powerpc64=   fails to compile: fpst.c: error: redefinition of typedef 'FPST'

LIB_DEPENDS=    libsodium.so:security/libsodium

USES=       gmake

USERS=      _dnscrypt-proxy
GROUPS=     _dnscrypt-proxy

GNU_CONFIGURE=  yes

INSTALL_TARGET= install-strip

PORTDOCS=   AUTHORS ChangeLog INSTALL NEWS README* THANKS

CONFLICTS_INSTALL=  dnscrypt-proxy2

OPTIONS_DEFINE= DOCS PLUGINS PLUGINS_RELAXED PLUGINS_ROOT
OPTIONS_SINGLE= RCWHICH
OPTIONS_SINGLE_RCWHICH= RCSINGLE RCMULTI
OPTIONS_DEFAULT=    PLUGINS RCSINGLE
OPTIONS_SUB=    yes

PLUGINS_RELAXED_DESC=   Allow loading plugins owned by other users
PLUGINS_ROOT_DESC=  Only load plugins sitting in the default plugins directory
RCWHICH_DESC=   Rc script to use:
RCSINGLE_DESC=  Use default rc script for single daemon
RCMULTI_DESC=   Use experimental rc script for multiple instances

PLUGINS_CONFIGURE_ENABLE=   plugins
PLUGINS_LIB_DEPENDS=    libltdl.so:devel/libltdl \
        libldns.so:dns/ldns

PLUGINS_USE=    LDCONFIG=${PREFIX}/lib/dnscrypt-proxy
PLUGINS_USES=   libtool
PLUGINS_RELAXED_CONFIGURE_ENABLE=   relaxed-plugins-permissions
PLUGINS_ROOT_CONFIGURE_ENABLE=  plugins-root

RCSINGLE_VARS=  USE_RC_SUBR=${PORTNAME}
RCSINGLE_SUB_FILES= pkg-message
RCMULTI_VARS=   USE_RC_SUBR=${PORTNAME}_multi
RCMULTI_SUB_FILES=  pkg-message_multi

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_MAN} ${WRKSRC}/man/dnscrypt-proxy.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
    ${INSTALL_MAN} ${WRKSRC}/man/hostip.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
    ${MV} ${STAGEDIR}${PREFIX}/etc/dnscrypt-proxy.conf ${STAGEDIR}${PREFIX}/etc/dnscrypt-proxy.conf.sample

.include <bsd.port.mk>