aboutsummaryrefslogtreecommitdiffstats
path: root/security/ike/Makefile
blob: 3020da1fa3075cf1b391e1e61e2ac5f36ab7e20f (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
# Created by: mgrooms@shrew.net
# $FreeBSD$

PORTNAME=   ike
PORTVERSION=    2.2.1
PORTREVISION=   2
CATEGORIES= security net
MASTER_SITES=   https://www.shrew.net/download/ike/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-release

MAINTAINER= mgrooms@shrew.net
COMMENT=    Shrew Soft IKE daemon and client tools

ONLY_FOR_ARCHS= i386 amd64

USE_RC_SUBR=    iked
USES=       bison cmake libedit localbase:ldflags tar:tbz2 ssl
USE_LDCONFIG=   yes
WRKSRC=     ${WRKDIR}/${PORTNAME}

CMAKE_ARGS= -DETCDIR:PATH="${PREFIX}/etc" \
        -DBINDIR:PATH="${PREFIX}/bin" \
        -DSBINDIR:PATH="${PREFIX}/sbin" \
        -DLIBDIR:PATH="${PREFIX}/lib" \
        -DMANDIR:PATH="${PREFIX}/man"

OPTIONS_DEFINE= QTGUI NATT LDAP DEBUG
OPTIONS_SUB=    yes

QTGUI_DESC= Enable QT client front end applications
NATT_DESC=  Enable NAT-Traversal
LDAP_DESC=  Enable LDAP XAuth daemon support

DEBUG_CMAKE_ON= -DDEBUG=YES

LDAP_USE=   OPENLDAP=yes
LDAP_CMAKE_ON=  -DLDAP=YES
NATT_CMAKE_ON=  -DNATT=YES
QTGUI_CMAKE_ON= -DQTGUI=YES
QTGUI_USES= qt:4
QTGUI_USE=  QT=gui,moc_build,qmake_build,rcc_build,uic_build

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MQTGUI}
DEPRECATED=     Qt4 has been EOL since december 2015
EXPIRATION_DATE=    2019-03-15
.endif

post-install:
    @if ! ${SYSCTL} -a | ${GREP} -q ipsec; then \
    ${ECHO_MSG} "===> -------------------------------------------------------------------------"; \
    ${ECHO_MSG} "===> WARNING: You need IPsec support in your kernel, please see:"; \
    ${ECHO_MSG} "===>   http://www.freebsd.org/doc/en/books/handbook/ipsec.html"; \
    ${ECHO_MSG} "===> -------------------------------------------------------------------------"; \
    fi ;

post-install-NATT-on:
    @${ECHO_MSG} "===> -------------------------------------------------------------------------"
    @${ECHO_MSG} "===> WARNING: To use NAT Traversal ( NAT-T ) support, please be sure to"
    @${ECHO_MSG} "===> include the following line in your kernel config file."
    @${ECHO_MSG} "===>   options IPSEC_NAT_T"
    @${ECHO_MSG} "===> -------------------------------------------------------------------------"

.include <bsd.port.mk>