mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
bbc8c4d740
Approved by: portmgr (not really, but touches unstaged ports)
75 lines
2.1 KiB
Makefile
75 lines
2.1 KiB
Makefile
# Created by: mgrooms@shrew.net
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ike
|
|
PORTVERSION= 2.2.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= security net
|
|
MASTER_SITES= https://www.shrew.net/download/ike/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-release
|
|
EXTRACT_SUFX= .tbz2
|
|
|
|
MAINTAINER= mgrooms@shrew.net
|
|
COMMENT= Shrew Soft IKE daemon and client tools
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
USE_RC_SUBR= iked
|
|
USES= bison cmake tar:bzip2
|
|
USE_OPENSSL= yes
|
|
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
|
|
QTGUI_DESC= Enable QT client front end applications
|
|
NATT_DESC= Enable NAT-Traversal
|
|
LDAP_DESC= Enable LDAP XAuth daemon support
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
|
CMAKE_ARGS+= -DDEBUG=YES
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MLDAP}
|
|
USE_OPENLDAP= YES
|
|
CMAKE_ARGS+= -DLDAP=YES
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNATT}
|
|
CMAKE_ARGS+= -DNATT=YES
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MQTGUI}
|
|
CMAKE_ARGS+= -DQTGUI=YES
|
|
USE_QT_VER= 4
|
|
USE_QT4= gui moc_build qmake_build rcc_build uic_build
|
|
MAN1+= qikea.1 qikec.1
|
|
PLIST_SUB+= QTGUI=""
|
|
.else
|
|
PLIST_SUB+= QTGUI="@comment "
|
|
.endif
|
|
|
|
post-install:
|
|
@if ! ${SYSCTL} -a | ${GREP} -q ipsec; then \
|
|
${ECHO_MSG} "===> -------------------------------------------------------------------------"; \
|
|
${ECHO_MSG} "===> WARNNG: You need IPsec support in your kernel, please see:"; \
|
|
${ECHO_MSG} "===> http://www.freebsd.org/doc/en/books/handbook/ipsec.html"; \
|
|
${ECHO_MSG} "===> -------------------------------------------------------------------------"; \
|
|
fi ;
|
|
.if ${PORT_OPTIONS:MNATT}
|
|
@${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} "===> -------------------------------------------------------------------------"
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|