aboutsummaryrefslogtreecommitdiffstats
path: root/security/gnupg/Makefile
blob: 3bebd0f564d9ef4f57276191cc5232ce448c7af1 (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
# $FreeBSD$

PORTNAME=   gnupg
PORTVERSION=    2.1.23
PORTREVISION=   1
CATEGORIES= security
MASTER_SITES=   GNUPG

MAINTAINER= adamw@FreeBSD.org
COMMENT=    The GNU Privacy Guard (modern version)

LICENSE=    GPLv3 LGPL3
LICENSE_COMB=   multi
LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING
LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING.LGPL3

LIB_DEPENDS=    libassuan.so:security/libassuan \
        libgcrypt.so:security/libgcrypt \
        libgpg-error.so:security/libgpg-error \
        libksba.so:security/libksba \
        libnpth.so:devel/npth
BUILD_DEPENDS=  libassuan>=2.4.3:security/libassuan \
        libgpg-error>=1.16:security/libgpg-error
RUN_DEPENDS=    pinentry:security/pinentry

CONFLICTS=  gnupg-2.0.* gnupg-2.2.* dirmngr-[0-9]*
CPE_VENDOR= gnupg

USES=       compiler:c11 cpe gmake iconv pkgconfig readline sqlite tar:bzip2
CONFIGURE_ARGS= --disable-ntbtls --disable-wks-tools \
        --enable-gpg-is-gpg2 --enable-symcryptrun
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
INFO=       gnupg
TEST_TARGET=    check

OPTIONS_DEFINE= GNUTLS LDAP SCDAEMON NLS DOCS SUID_GPG
OPTIONS_DEFAULT=GNUTLS SCDAEMON
NO_OPTIONS_SORT=yes
OPTIONS_SUB=    yes

LDAP_DESC=  LDAP keyserver interface
SCDAEMON_DESC=  Enable Smartcard daemon (with libusb)
SUID_GPG_DESC=  Install GPG with suid
# In jail, SUID is required to avoid warning (security.bsd.unprivileged_mlock sysctl is not used in jail).

GNUTLS_CONFIGURE_ENABLE=gnutls
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls

LDAP_CONFIGURE_WITH=    ldap=${LOCALBASE}
LDAP_LIBS=      -L${LOCALBASE}/lib
LDAP_USE=       OPENLDAP=yes
LDAP_USES=      readline

NLS_CONFIGURE_ENABLE=   nls
NLS_USES=       gettext

SCDAEMON_CONFIGURE_ENABLE=  scdaemon

post-install:
    @${MV} ${STAGEDIR}${DATADIR}/help*.txt ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>