freebsd-ports/security/racoon2/Makefile

71 lines
1.9 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: racoon2
# Date created: 4 Feb 2005
2000-07-05 11:19:28 +02:00
# Whom: sumikawa
#
# $FreeBSD$
#
PORTNAME= racoon2
PORTVERSION= 20050128b
CATEGORIES= security net ipv6
MASTER_SITES= ftp://ftp.kame.net/pub/racoon2/
EXTRACT_SUFX= .tgz
2000-07-05 11:19:28 +02:00
MAINTAINER= sumikawa@FreeBSD.org
COMMENT= Racoon2 IPsec daemon
2000-07-05 11:19:28 +02:00
.if !exists(/usr/lib/libkrb5.a)
BROKEN= "Kerberos5 is required in the system"
.endif
USE_RC_SUBR= YES
USE_OPENSSL= YES
2000-07-05 11:19:28 +02:00
USE_AUTOCONF_VER=259
CONFIGURE_TARGET=
2000-07-05 11:19:28 +02:00
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--sysconfdir=${LOCALBASE}/etc
USE_REINPLACE= yes
2000-07-05 11:19:28 +02:00
.if !defined(NOPORTDOCS)
PORTDOCS= INSTALL USAGE.iked USAGE.kinkd USAGE.spmd config-usage.ja.txt
PORTDOCS+= draft-ietf-ipsec-ikev2-17.txt draft-ietf-kink-kink-06.txt
PORTDOCS+= iked-memo.ja.txt kink-spec-supplement.ja.txt
PORTDOCS+= kinkd-data-struct.obj kinkd-impl.ja.txt kinkd-install.ja.txt
PORTDOCS+= kinkd-state-txn.obj libracoon.ja.txt specification.ja.txt
PORTDOCS+= spmif.txt system-message.ja.txt
.endif
2000-07-05 11:19:28 +02:00
pre-patch:
(cd ${WRKSRC}/samples ;\
${MV} racoon2.conf racoon2.conf.in ;\
${MV} init.d-kinkd init.d-kinkd.in ;\
${MV} init.d-spmd init.d-spmd.in ;\
${MV} rc.d-kinkd rc.d-kinkd.in ;\
${MV} rc.d-spmd rc.d-spmd.in )
2000-07-05 11:19:28 +02:00
post-patch:
.if !defined(NOPORTDOCS)
.for FILE in ${PORTDOCS}
${REINPLACE_CMD} -e 's|/usr/local/racoon2|${LOCALBASE}|' ${WRKSRC}/doc/${FILE}
.endfor
.endif
2000-10-16 23:02:15 +02:00
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT.jp ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.iked ${DOCSDIR}
.for FILE in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${DOCSDIR}
.endfor
.endif
2000-10-16 23:02:15 +02:00
@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 11:19:28 +02:00
.include <bsd.port.mk>