blob: 5fd74010dd9817d00f2243f9ea603c7913882405 (
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
|
# Created by: Damian Gerow
# $FreeBSD$
PORTNAME= openconnect
PORTVERSION= 5.01
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= xml2:${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-openssl-version-check
USE_AUTOTOOLS= aclocal autoconf automake libtool
USES= pathfix pkgconfig
USE_GMAKE= yes
USE_OPENSSL= yes
ACLOCAL_ARGS= -I .
AUTOMAKE_ARGS= --add-missing
USE_LDCONFIG= yes
PORTDOCS= *
MAN8= openconnect.8
OPTIONS_DEFINE= PROXY GNUTLS
PROXY_DESC= Enable automatic proxy configuratio via libproxy
GNUTLS_DESC= Use GnuTLS instead of OpenSSL(EXPERIMENTAL)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGNUTLS}
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
CONFIGURE_ARGS+=--with-gnutls \
--with-system-cafile=${LOCALBASE}/share/certs/ca-root-nss.crt
RUN_DEPENDS+= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
BUILD_DEPENDS+= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
.endif
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MPROXY}
LIB_DEPENDS+= proxy:${PORTSDIR}/net/libproxy
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/TODO ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
|