aboutsummaryrefslogtreecommitdiffstats
path: root/security/openconnect/Makefile
blob: 36864a68b6116d8c40768bdb2cc8ccdf428c43dd (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
# Created by: Damian Gerow <dgerow@afflictions.org>
# $FreeBSD$

PORTNAME=   openconnect
PORTVERSION=    7.06
CATEGORIES= security
MASTER_SITES=   ftp://ftp.infradead.org/pub/openconnect/ \
        http://mirrors.rit.edu/zi/

MAINTAINER= zi@FreeBSD.org
COMMENT=    Client for Cisco's AnyConnect SSL VPN

LICENSE=    LGPL21
LICENSE_FILE=   ${WRKSRC}/COPYING.LGPL

LIB_DEPENDS=    libxml2.so:${PORTSDIR}/textproc/libxml2
RUN_DEPENDS=    vpnc-script:${PORTSDIR}/sysutils/vpnc-scripts

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-nls --with-vpnc-script=${LOCALBASE}/sbin/vpnc-script \
        --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \
        --without-stoken --without-openssl-version-check
USES=       cpe gmake libtool pkgconfig python:build
CPE_VENDOR= infradead
INSTALL_TARGET= install-strip
USE_LDCONFIG=   yes
PORTDOCS=   *

OPTIONS_DEFINE= PROXY GNUTLS

PROXY_DESC=     Automatic proxy configuration via libproxy
PROXY_LIB_DEPENDS=  libproxy.so:${PORTSDIR}/net/libproxy
PROXY_CONFIGURE_WITH=   libproxy

GNUTLS_DESC=        Use GnuTLS instead of OpenSSL (experimental)
GNUTLS_LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls
GNUTLS_CONFIGURE_WITH=  gnutls
GNUTLS_USE_OFF=     OPENSSL=yes

post-install:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/TODO ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>