blob: 5eb121ce443fe1797b52225eff34c929f8960eec (
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
69
70
71
72
73
74
75
76
|
# Created by: Carlos J Puga Medina <cpm@fbsd.es>
# $FreeBSD$
PORTNAME= ocserv
PORTVERSION= 0.10.8
CATEGORIES= net security
MASTER_SITES= ftp://ftp.infradead.org/pub/ocserv/
MAINTAINER= cpm@fbsd.es
COMMENT= Server implementing the AnyConnect SSL VPN protocol
LICENSE= GPLv2
BUILD_DEPENDS= autogen:${PORTSDIR}/devel/autogen \
gsed:${PORTSDIR}/textproc/gsed \
bash:${PORTSDIR}/shells/bash
LIB_DEPENDS= liblz4.so:${PORTSDIR}/archivers/liblz4 \
libiconv.so:${PORTSDIR}/converters/libiconv \
libtalloc.so:${PORTSDIR}/devel/talloc \
libprotobuf-c.so:${PORTSDIR}/devel/protobuf-c \
libgnutls.so:${PORTSDIR}/security/gnutls \
libtasn1.so:${PORTSDIR}/security/libtasn1
USES= autoreconf cpe gmake gperf libtool ncurses pathfix pkgconfig readline tar:xz
CPE_VENDOR= infradead
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lintl
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS= --disable-nls \
--enable-local-libopts \
--without-http-parser \
--without-pcl-lib \
--without-radius
USERS= _ocserv
GROUPS= _ocserv
USE_RC_SUBR= ocserv
OPTIONS_DEFINE= DOCS EXAMPLES GSSAPI
PORTDOCS= AUTHORS ChangeLog INSTALL NEWS README TODO
PORTEXAMPLES= profile.xml sample.config sample.passwd
GSSAPI_USES= gssapi:mit
GSSAPI_LIB_DEPENDS= libkrb5support.so:${PORTSDIR}/security/krb5
GSSAPI_CONFIGURE_OFF= --without-gssapi
.include <bsd.port.options.mk>
post-patch:
${RM} ${WRKSRC}/doc/occtl.8
${RM} ${WRKSRC}/doc/ocpasswd.8
${RM} ${WRKSRC}/doc/ocserv.8
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/occtl
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ocpasswd
${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/ocserv
${MKDIR} ${STAGEDIR}${PREFIX}/etc/ocserv/
${MKDIR} ${STAGEDIR}/var/run/ocserv/
${CP} ${FILESDIR}/ocserv.conf ${STAGEDIR}${PREFIX}/etc/ocserv/conf.sample
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>
|