pkgsrc/security/ipsec-tools/Makefile
bad 05972d3b74 Update ipsec-tools to 0.6.6.
Changes since 0.6.3:

0.6.6
	* src/racoon/isakmp_xauth.c: Build fix
	* src/racoon/pfkey.c: Sets NAT-T ports to 0 if no NAT
	  encapsulation in pk_sendgetspi().
	* src/racoon/pfkey.c: Sets NAT-T ports to 0 if no NAT
	  encapsulation in pk_sendupdate().
	* src/racoon/isakmp_xauth.c: fix memory leak
	* src/racoon/{cfparse.y|handler.h}: typos

0.6.5
	* src/racoon/isakmp.c: Fixed zombie PH1 handler when isakmp_send()
	  fails in isakmp_ph1resend()
	* src/racoon/{cfparse.y|ipsec_doi.c}: Temporary fix for /32
	  subnets parsing.
	* src/racoon/isakmp_cfg.c: make software behave as the documentation
	  advertise for INTERNAL_NETMASK4. Keep the old INTERNAL_MASK4 to
	  avoid breaking backward compatibility.
	* src/racoon/session.c: Fixed / cleaned up signal handling.

0.6.4
	* configure.ac src/racoon/plog.c: backported Fred's workaround for
	  %zu problems on (at least) FreeBSD4.
	* src/racoon/session.c: backport: fix possible race conditions in
	  signal handlers (see session.c 1.17).
	* src/libipsec/pfkey_dump.c: fixed compilation when NAT_T
	  disabled (Fred has still some CVS problems).
	* src/libipsec/{libpfkey.h|pfkey_dump.c}: add a sadump_withports
	  function to display SAD entries with their associated ports.
	* src/setkey/{parse.y|setkey.c|setkey.8}: allow to use setkey -p flag
	  in conjunction with -D to show SADs with the port, allow both get and
	  delete commands to use bracketed ports if needed.
	* src/racoon/racoon.conf.5: Style changes
2006-10-25 17:12:18 +00:00

85 lines
3 KiB
Makefile

# $NetBSD: Makefile,v 1.24 2006/10/25 17:12:18 bad Exp $
DISTNAME= ipsec-tools-0.6.6
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ipsec-tools/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= manu@NetBSD.org
HOMEPAGE= http://ipsec-tools.sourceforge.net/
COMMENT= IPsec-tools racoon IKE daemon
ONLY_FOR_PLATFORM= NetBSD-[3-9].*-* Linux-2.[6-9].*-*
USE_PKGLOCALEDIR= yes
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
PKG_OPTIONS_VAR= PKG_OPTIONS.ipsec-tools
PKG_SUPPORTED_OPTIONS= radius
PKG_SUGGESTED_OPTIONS= radius
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mradius)
. include "../../net/libradius/buildlink3.mk"
CONFIGURE_ARGS+= --with-libradius
LIBS+= ${BUILDLINK_LDADD.libradius}
.endif
.if exists(/usr/include/security/pam_modules.h)
CONFIGURE_ARGS+= --with-libpam
.endif
CONFIGURE_ARGS+= --enable-frag --enable-hybrid
CONFIGURE_ARGS+= --enable-adminport --enable-dpd
CONFIGURE_ARGS+= --enable-natt=kernel
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
PLIST_SUBST+= VARBASE=${VARBASE:Q}
PKG_SYSCONFSUBDIR= racoon
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
SAMPLE_DIR= ${WRKSRC}/src/racoon/samples
EXAMPLE_DIR= ${PREFIX}/share/examples/ipsec-tools
pre-configure:
${RM} -f ${WRKSRC}/src/racoon/cfparse.c
${RM} -f ${WRKSRC}/src/racoon/cftoken.c
.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
post-install:
${INSTALL_DATA_DIR} ${EXAMPLE_DIR}
${INSTALL_DATA_DIR} ${EXAMPLE_DIR}/roadwarrior
${INSTALL_DATA_DIR} ${EXAMPLE_DIR}/roadwarrior/client
${INSTALL_DATA_DIR} ${EXAMPLE_DIR}/roadwarrior/server
${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}
${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
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"