2000-07-05 11:19:28 +02:00
|
|
|
# New ports collection makefile for: racoon
|
|
|
|
# Date created: 4 July 2000
|
|
|
|
# Whom: sumikawa
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= racoon
|
2004-01-19 11:29:40 +01:00
|
|
|
PORTVERSION= 20040116a
|
2000-07-05 11:19:28 +02:00
|
|
|
CATEGORIES= security net
|
|
|
|
MASTER_SITES= ftp://ftp.kame.net/pub/kame/misc/
|
|
|
|
|
|
|
|
MAINTAINER= sumikawa@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= KAME racoon IKE daemon
|
2000-07-05 11:19:28 +02:00
|
|
|
|
2003-09-26 18:38:53 +02:00
|
|
|
.if !exists(/usr/lib/libipsec.so.1) && !exists(/lib/libipsec.so.1)
|
2000-07-05 11:19:28 +02:00
|
|
|
BROKEN= "You must upgrade the OS"
|
|
|
|
.endif
|
|
|
|
|
2004-01-06 16:31:09 +01:00
|
|
|
USE_RC_SUBR= YES
|
2000-09-22 03:59:06 +02:00
|
|
|
USE_OPENSSL= YES
|
2000-07-05 11:19:28 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/racoon
|
|
|
|
GNU_CONFIGURE= yes
|
2003-09-01 15:50:26 +02:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include CFLAGS=-I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -L${WRKSRC}/../libipsec
|
2000-07-05 11:19:28 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-debug
|
|
|
|
CONFIGURE_ARGS+=--enable-ipv6
|
|
|
|
CONFIGURE_ARGS+=--sysconfdir=${LOCALBASE}/etc
|
2002-04-26 06:02:50 +02:00
|
|
|
CONFIGURE_ARGS+=--with-pkgversion=freebsd-${PORTVERSION}
|
2000-07-05 11:19:28 +02:00
|
|
|
|
|
|
|
MAN5= racoon.conf.5
|
|
|
|
MAN8= racoon.8
|
|
|
|
|
2004-01-06 16:31:09 +01:00
|
|
|
RC_SCRIPTS_SUB= PREFIX=${PREFIX} \
|
|
|
|
RC_SUBR=${RC_SUBR}
|
|
|
|
|
2000-07-05 11:19:28 +02:00
|
|
|
pre-patch:
|
|
|
|
${MV} ${WRKSRC}/racoon.8 ${WRKSRC}/racoon.8.in
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
(cd ${WRKSRC}/../libipsec; make)
|
|
|
|
|
2000-10-16 23:02:15 +02:00
|
|
|
post-install:
|
2004-01-06 16:31:09 +01:00
|
|
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
${FILESDIR}/racoon.sh > ${PREFIX}/etc/rc.d/racoon.sh
|
2002-11-03 16:43:59 +01:00
|
|
|
@${CHMOD} +x ${PREFIX}/etc/rc.d/racoon.sh
|
2000-10-16 23:02:15 +02:00
|
|
|
@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 ;
|
|
|
|
|
2000-07-05 11:19:28 +02:00
|
|
|
.include <bsd.port.mk>
|