1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/security/racoon2/Makefile
Munechika SUMIKAWA beb842fa8e - Make an option for kinkd support. This should work on 4-STABLE
- Now kinkd is disabled in default
- use set_rcvar

Noticed by:	kris
Submitted by:	jau@iki.fi (set_rcvar patch)
2006-02-13 15:09:16 +00:00

82 lines
2.0 KiB
Makefile

# New ports collection makefile for: racoon2
# Date created: 4 Feb 2005
# Whom: sumikawa
#
# $FreeBSD$
#
PORTNAME= racoon2
PORTVERSION= 20051102a
PORTREVISION= 2
CATEGORIES= security net ipv6
MASTER_SITES= ftp://ftp.kame.net/pub/racoon2/
EXTRACT_SUFX= .tgz
MAINTAINER= sumikawa@FreeBSD.org
COMMENT= Racoon2 IPsec daemon
USE_RC_SUBR= YES
USE_OPENSSL= YES
USE_AUTOTOOLS= autoconf:259
CONFIGURE_TARGET=
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${LOCALBASE}/etc
OPTIONS= KINK "enable KINK support" off
.include <bsd.port.pre.mk>
pre-configure:
.if defined (WITH_KINK)
.if !exists(/usr/lib/libkrb5.a)
@${ECHO_MSG} 'Required Kerberos5 is not in this system. Disable KINK support.'
CONFIGURE_ARGS+= --disable-kinkd
PLIST_SUB+= KINK="@comment "
.else
CONFIGURE_ARGS+= --enable-kinkd
MAKE_ENV= WITH_KINK=yes
MAN8+= kinkd.8
PLIST_SUB+= KINK=""
.endif
.else
CONFIGURE_ARGS+= --disable-kinkd
PLIST_SUB+= KINK="@comment "
.endif
.if !defined(NOPORTDOCS)
PORTDOCS+= INSTALL USAGE USAGE.iked USAGE.spmd config-usage.ja.txt
PORTDOCS+= config-usage.txt iked-memo.ja.txt libracoon.ja.txt
PORTDOCS+= specification.ja.txt spmif.txt style.txt system-message.ja.txt
.if defined (WITH_KINK)
PORTDOCS+= USAGE.kinkd kinkd-data-struct.obj kinkd-impl.ja.txt
PORTDOCS+= kinkd-install.ja.txt kinkd-state-txn.obj
.endif
.endif
MAN8+= spmd.8 spmdctl.8 pskgen.8
post-patch:
.if !defined(NOPORTDOCS)
.for FILE in ${PORTDOCS}
@${REINPLACE_CMD} -e 's|/usr/local/racoon2|${LOCALBASE}|' ${WRKSRC}/doc/${FILE}
.endfor
.endif
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT.jp ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.for FILE in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${DOCSDIR}
.endfor
.endif
@if [ -z `/sbin/sysctl -a | ${GREP} -q ipsec && echo ipsec` ]; then \
${ECHO_MSG} "WARNING: IPsec feature is disabled on this host"; \
${ECHO_MSG} " You must build the kernel if you want to run racoon on the host"; \
fi ;
.include <bsd.port.post.mk>