2000-07-01 03:11:28 +02:00
|
|
|
# $NetBSD: Makefile,v 1.11 2000/07/01 01:11:28 itojun Exp $
|
2000-04-04 05:01:11 +02:00
|
|
|
#
|
|
|
|
|
2000-07-01 03:11:28 +02:00
|
|
|
DISTNAME= racoon-20000701a
|
2000-04-04 05:01:11 +02:00
|
|
|
CATEGORIES= security net
|
2000-06-12 12:45:52 +02:00
|
|
|
MASTER_SITES= ftp://ftp.kame.net/pub/kame/misc/
|
2000-04-04 05:01:11 +02:00
|
|
|
|
|
|
|
MAINTAINER= itojun@kame.net
|
|
|
|
HOMEPAGE= http:/www.kame.net/
|
|
|
|
|
2000-06-12 13:21:31 +02:00
|
|
|
RESTRICTED= "Crypto; export-controlled"
|
2000-06-12 12:45:52 +02:00
|
|
|
|
2000-04-12 17:09:49 +02:00
|
|
|
# this is not compatible with cross build - there's no other way
|
|
|
|
.if !exists(/usr/include/netinet6/ipsec.h)
|
|
|
|
IGNORE+= "requires ipsec-ready NetBSD"
|
|
|
|
.endif
|
|
|
|
|
2000-06-12 12:45:52 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
BUILD_DEFS+= USE_INET6
|
|
|
|
|
2000-04-04 05:01:11 +02:00
|
|
|
# openssl is necessary for RSA libraries
|
2000-04-25 21:10:10 +02:00
|
|
|
# if PATENTEDOPENSSLSRC is defined, then we assume that
|
|
|
|
# RSA already exists in the OpenSSL built as part of the
|
|
|
|
# base distribution.
|
|
|
|
.if !defined(PATENTEDOPENSSLSRC)
|
2000-04-21 04:34:43 +02:00
|
|
|
DEPENDS+= openssl-0.9.*:../../security/openssl
|
2000-06-12 12:45:52 +02:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include CFLAGS=-I${LOCALBASE}/include \
|
|
|
|
LIBS="-L${LOCALBASE}/lib -L${WRKSRC}/../libipsec"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ENV+= LIBS="-L${WRKSRC}/../libipsec"
|
2000-04-25 21:10:10 +02:00
|
|
|
.endif
|
2000-04-04 05:01:11 +02:00
|
|
|
|
|
|
|
CONFLICTS+= racoon-*
|
|
|
|
|
2000-06-12 12:45:52 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/racoon
|
2000-04-04 05:01:11 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+=--enable-debug
|
|
|
|
.if defined(USE_INET6) && ${USE_INET6} == "YES"
|
|
|
|
CONFIGURE_ARGS+=--enable-ipv6
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ipv6
|
|
|
|
.endif
|
2000-06-12 12:45:52 +02:00
|
|
|
CONFIGURE_ARGS+=--sysconfdir=/etc/racoon
|
2000-04-04 05:01:11 +02:00
|
|
|
|
2000-06-12 12:45:52 +02:00
|
|
|
pre-configure:
|
|
|
|
(cd ${WRKSRC}/../libipsec; make)
|
2000-04-04 05:01:11 +02:00
|
|
|
|
2000-06-12 12:45:52 +02:00
|
|
|
post-install:
|
|
|
|
${MKDIR} ${PREFIX}/share/examples/racoon
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/samples/racoon.conf.sample \
|
|
|
|
${PREFIX}/share/examples/racoon
|
2000-04-04 05:01:11 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|