2000-07-05 05:19:28 -04:00
|
|
|
# New ports collection makefile for: racoon
|
|
|
|
# Date created: 4 July 2000
|
|
|
|
# Whom: sumikawa
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= racoon
|
2001-05-06 14:14:13 -04:00
|
|
|
PORTVERSION= 20010418a
|
2000-07-05 05:19:28 -04:00
|
|
|
CATEGORIES= security net
|
|
|
|
MASTER_SITES= ftp://ftp.kame.net/pub/kame/misc/
|
|
|
|
|
|
|
|
MAINTAINER= sumikawa@FreeBSD.org
|
|
|
|
|
|
|
|
.if !exists(/usr/lib/libipsec.so.1)
|
|
|
|
BROKEN= "You must upgrade the OS"
|
|
|
|
.endif
|
|
|
|
|
2000-09-21 21:59:06 -04:00
|
|
|
USE_OPENSSL= YES
|
2000-07-05 05:19:28 -04:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/racoon
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV+=CPPFLAGS=-I${LOCALBASE}/include CFLAGS=-I${LOCALBASE}/include \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${WRKSRC}/../libipsec"
|
|
|
|
CONFIGURE_ARGS+=--enable-debug
|
|
|
|
CONFIGURE_ARGS+=--enable-ipv6
|
|
|
|
CONFIGURE_ARGS+=--sysconfdir=${LOCALBASE}/etc
|
|
|
|
|
|
|
|
MAN5= racoon.conf.5
|
|
|
|
MAN8= racoon.8
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
${MV} ${WRKSRC}/racoon.8 ${WRKSRC}/racoon.8.in
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
(cd ${WRKSRC}/../libipsec; make)
|
|
|
|
|
2000-10-16 17:02:15 -04:00
|
|
|
post-install:
|
|
|
|
@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 05:19:28 -04:00
|
|
|
.include <bsd.port.mk>
|