2009-01-10 18:13:01 +01:00
|
|
|
# $NetBSD: Makefile,v 1.29 2009/01/10 17:13:01 manu Exp $
|
2004-11-09 23:42:20 +01:00
|
|
|
|
2008-08-16 08:55:18 +02:00
|
|
|
DISTNAME= ipsec-tools-0.7.1
|
2004-11-09 23:42:20 +01:00
|
|
|
CATEGORIES= security
|
2008-08-16 08:55:18 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_NETBSD:=ipsec-tools/}
|
2005-05-10 14:39:28 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2004-11-09 23:42:20 +01:00
|
|
|
|
|
|
|
MAINTAINER= manu@NetBSD.org
|
2004-11-10 09:43:44 +01:00
|
|
|
HOMEPAGE= http://ipsec-tools.sourceforge.net/
|
2005-06-01 16:35:31 +02:00
|
|
|
COMMENT= IPsec-tools racoon IKE daemon
|
2004-11-09 23:42:20 +01:00
|
|
|
|
2009-01-10 18:13:01 +01:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-[3-9].*-* FreeBSD-[5-9].*-* Linux-2.[6-9].*-*
|
2005-09-02 19:01:13 +02:00
|
|
|
|
2004-11-09 23:42:20 +01:00
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2007-02-22 20:26:05 +01:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.ipsec-tools
|
2005-05-31 12:01:36 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= radius
|
|
|
|
PKG_SUGGESTED_OPTIONS= radius
|
2004-11-11 12:49:15 +01:00
|
|
|
|
|
|
|
.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
|
|
|
|
|
2005-08-05 14:04:33 +02:00
|
|
|
.if exists(/usr/include/security/pam_modules.h)
|
|
|
|
CONFIGURE_ARGS+= --with-libpam
|
|
|
|
.endif
|
|
|
|
|
2004-11-11 12:49:15 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-frag --enable-hybrid
|
2005-03-23 17:49:39 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-adminport --enable-dpd
|
2005-02-18 10:53:40 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-natt=kernel
|
2004-11-09 23:42:20 +01:00
|
|
|
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= VARBASE=${VARBASE:Q}
|
2005-08-05 14:04:33 +02:00
|
|
|
|
2005-01-12 16:31:11 +01:00
|
|
|
PKG_SYSCONFSUBDIR= racoon
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
2005-01-12 16:31:11 +01:00
|
|
|
|
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:
|
2005-03-23 17:49:39 +01:00
|
|
|
${RM} -f ${WRKSRC}/src/racoon/cfparse.c
|
|
|
|
${RM} -f ${WRKSRC}/src/racoon/cftoken.c
|
2005-08-05 14:04:33 +02:00
|
|
|
.if (${OPSYS} == "NetBSD")
|
|
|
|
${MKDIR} ${BUILDLINK_DIR}/include/netinet6
|
|
|
|
${EGREP} -v 'extern.*ipsec_.*_policy' /usr/include/netinet6/ipsec.h \
|
|
|
|
>${BUILDLINK_DIR}/include/netinet6/ipsec.h
|
|
|
|
.endif
|
2004-11-11 11:53:08 +01:00
|
|
|
|
2004-11-09 23:42:20 +01:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLE_DIR}
|
2005-02-20 02:03:30 +01:00
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLE_DIR}/roadwarrior
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLE_DIR}/roadwarrior/client
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLE_DIR}/roadwarrior/server
|
2004-11-09 23:42:20 +01:00
|
|
|
${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-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}
|
2005-02-20 02:03:30 +01:00
|
|
|
${INSTALL_DATA} ${SAMPLE_DIR}/roadwarrior/README \
|
|
|
|
${EXAMPLE_DIR}/roadwarrior
|
|
|
|
${INSTALL_DATA} ${SAMPLE_DIR}/roadwarrior/client/racoon.conf \
|
|
|
|
${EXAMPLE_DIR}/roadwarrior/client
|
|
|
|
${INSTALL_DATA} ${SAMPLE_DIR}/roadwarrior/client/phase1-up.sh \
|
|
|
|
${EXAMPLE_DIR}/roadwarrior/client
|
|
|
|
${INSTALL_DATA} ${SAMPLE_DIR}/roadwarrior/client/phase1-down.sh \
|
|
|
|
${EXAMPLE_DIR}/roadwarrior/client
|
|
|
|
${INSTALL_DATA} ${SAMPLE_DIR}/roadwarrior/server/racoon.conf \
|
|
|
|
${EXAMPLE_DIR}/roadwarrior/server
|
|
|
|
${INSTALL_DATA} ${SAMPLE_DIR}/roadwarrior/server/racoon.conf-radius \
|
|
|
|
${EXAMPLE_DIR}/roadwarrior/server
|
2004-11-09 23:42:20 +01:00
|
|
|
|
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"
|