Update textproc/zorba to version 2.7.0_16
[dports.git] / net / ocserv / Makefile
1 # Created by: Carlos J Puga Medina <cpm@fbsd.es>
2 # $FreeBSD$
3
4 PORTNAME=       ocserv
5 PORTVERSION=    0.11.9
6 CATEGORIES=     net security
7 MASTER_SITES=   ftp://ftp.infradead.org/pub/ocserv/ \
8                 LOCAL/cpm
9
10 MAINTAINER=     cpm@FreeBSD.org
11 COMMENT=        Server implementing the AnyConnect SSL VPN protocol
12
13 LICENSE=        GPLv2+
14 LICENSE_FILE=   ${WRKSRC}/LICENSE
15
16 BUILD_DEPENDS=  autogen:devel/autogen \
17                 bash:shells/bash \
18                 gsed:textproc/gsed
19 LIB_DEPENDS=    liblz4.so:archivers/liblz4 \
20                 libiconv.so:converters/libiconv \
21                 libev.so:devel/libev \
22                 libtalloc.so:devel/talloc \
23                 libprotobuf-c.so:devel/protobuf-c \
24                 libgnutls.so:security/gnutls \
25                 libtasn1.so:security/libtasn1 \
26                 libnettle.so:security/nettle \
27                 liboath.so:security/oath-toolkit
28
29 USES=           autoreconf cpe gmake gperf libtool localbase ncurses \
30                 pathfix pkgconfig readline tar:xz
31 CPE_VENDOR=     infradead
32 GNU_CONFIGURE=  yes
33 USE_LDCONFIG=   yes
34
35 CONFIGURE_ARGS= --disable-nls \
36                 --enable-local-libopts \
37                 --without-http-parser \
38                 --without-pcl-lib
39
40 USERS=          _ocserv
41 GROUPS=         _ocserv
42
43 USE_RC_SUBR=    ocserv
44
45 PLIST_SUB=      USERS="${USERS}" GROUPS="${GROUPS}"
46
47 OPTIONS_DEFINE=         DOCS EXAMPLES GSSAPI RADIUS
48
49 PORTDOCS=       AUTHORS ChangeLog NEWS README TODO
50 PORTEXAMPLES=   profile.xml sample.config sample.passwd
51
52 GSSAPI_USES=            gssapi:mit
53 GSSAPI_LIB_DEPENDS=     libkrb5support.so:security/krb5
54 GSSAPI_CONFIGURE_OFF=   --without-gssapi
55
56 RADIUS_LIB_DEPENDS=     libradcli.so:net/radcli
57 RADIUS_CONFIGURE_OFF=   --without-radius
58
59 post-patch:
60         @${RM} ${WRKSRC}/doc/*.8
61
62 post-install:
63         @${MKDIR} ${STAGEDIR}${PREFIX}/etc/ocserv
64         @${MKDIR} ${STAGEDIR}/var/run/ocserv
65         ${INSTALL_DATA} ${FILESDIR}/ocserv.conf ${STAGEDIR}${PREFIX}/etc/ocserv/conf.sample
66
67 post-install-DOCS-on:
68         @${MKDIR} ${STAGEDIR}${DOCSDIR}
69         cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
70
71 post-install-EXAMPLES-on:
72         @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
73         cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
74
75 .include <bsd.port.mk>