2005-02-18 10:53:40 +01:00
|
|
|
# $NetBSD: Makefile,v 1.11 2005/02/18 09:53:40 manu Exp $
|
2004-11-09 23:42:20 +01:00
|
|
|
#
|
|
|
|
|
2005-02-18 10:53:40 +01:00
|
|
|
DISTNAME= ipsec-tools-0.5
|
2004-11-09 23:42:20 +01:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ipsec-tools/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
MAINTAINER= manu@NetBSD.org
|
2004-11-10 09:43:44 +01:00
|
|
|
HOMEPAGE= http://ipsec-tools.sourceforge.net/
|
2004-11-09 23:42:20 +01:00
|
|
|
COMMENT= Ipsec-tools racoon IKE daemon
|
|
|
|
|
|
|
|
USE_BUILDLINK3= yes
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2004-11-11 12:49:15 +01:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.ipsec-tools
|
|
|
|
PKG_DEFAULT_OPTIONS+= radius
|
|
|
|
PKG_SUPPORTED_OPTIONS+= radius
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mradius)
|
2004-11-11 12:51:12 +01:00
|
|
|
. include "../../net/libradius/buildlink3.mk"
|
2004-11-11 12:49:15 +01:00
|
|
|
CONFIGURE_ARGS+= --with-libradius
|
2004-11-11 13:13:24 +01:00
|
|
|
LIBS+= ${BUILDLINK_LDADD.libradius}
|
2004-11-11 12:49:15 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-frag --enable-hybrid
|
2005-02-18 10:53:40 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-natt=kernel
|
2004-11-09 23:42:20 +01:00
|
|
|
|
2005-01-12 16:31:11 +01:00
|
|
|
PKG_SYSCONFSUBDIR= racoon
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
|
|
|
2004-11-09 23:42:20 +01:00
|
|
|
SAMPLE_DIR= ${WRKSRC}/src/racoon/samples
|
|
|
|
EXAMPLE_DIR= ${PREFIX}/share/examples/ipsec-tools
|
2004-11-10 09:43:44 +01:00
|
|
|
|
2004-11-11 11:53:08 +01:00
|
|
|
pre-configure:
|
|
|
|
${RM} ${WRKSRC}/src/racoon/cfparse.c
|
|
|
|
${RM} ${WRKSRC}/src/racoon/cftoken.c
|
|
|
|
|
2004-11-09 23:42:20 +01:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLE_DIR}
|
|
|
|
${INSTALL_DATA} ${SAMPLE_DIR}/psk.txt ${EXAMPLE_DIR}
|
|
|
|
${INSTALL_DATA} ${SAMPLE_DIR}/psk.txt.in ${EXAMPLE_DIR}
|
|
|
|
${INSTALL_DATA} ${SAMPLE_DIR}/psk.txt.sample ${EXAMPLE_DIR}
|
|
|
|
${INSTALL_DATA} ${SAMPLE_DIR}/racoon.conf ${EXAMPLE_DIR}
|
|
|
|
${INSTALL_DATA} ${SAMPLE_DIR}/racoon.conf.in ${EXAMPLE_DIR}
|
|
|
|
${INSTALL_DATA} ${SAMPLE_DIR}/racoon.conf.sample ${EXAMPLE_DIR}
|
|
|
|
${INSTALL_DATA} ${SAMPLE_DIR}/racoon.conf.sample-cvpn ${EXAMPLE_DIR}
|
|
|
|
${INSTALL_DATA} ${SAMPLE_DIR}/racoon.conf.sample-gssapi ${EXAMPLE_DIR}
|
|
|
|
${INSTALL_DATA} ${SAMPLE_DIR}/racoon.conf.sample-inherit ${EXAMPLE_DIR}
|
|
|
|
${INSTALL_DATA} ${SAMPLE_DIR}/racoon.conf.sample-natt ${EXAMPLE_DIR}
|
|
|
|
${INSTALL_DATA} ${SAMPLE_DIR}/racoon.conf.sample-plainrsa ${EXAMPLE_DIR}
|
|
|
|
|
2004-11-10 10:11:34 +01:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2004-11-10 09:43:44 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|