summaryrefslogtreecommitdiff
path: root/security/racoon2/Makefile
blob: cd203c67172f351bb344e15402227cfda90a99a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:	racoon2
# Date created:		4 Feb 2005
# Whom:			sumikawa
#
# $FreeBSD$
#

PORTNAME=	racoon2
PORTVERSION=	20051102a
PORTREVISION=	1
CATEGORIES=	security net ipv6
MASTER_SITES=	ftp://ftp.kame.net/pub/racoon2/
EXTRACT_SUFX=	.tgz

MAINTAINER=	sumikawa@FreeBSD.org
COMMENT=	Racoon2 IPsec daemon

.if !exists(/usr/lib/libkrb5.a)
BROKEN=		"Kerberos5 is required in the system"
.endif

USE_RC_SUBR=	YES
USE_OPENSSL=	YES

USE_AUTOTOOLS=	autoconf:259
CONFIGURE_TARGET=
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--sysconfdir=${LOCALBASE}/etc
USE_REINPLACE=	yes

.if !defined(NOPORTDOCS)
PORTDOCS=	INSTALL USAGE USAGE.iked USAGE.kinkd USAGE.spmd
PORTDOCS+=	config-usage.ja.txt config-usage.txt
PORTDOCS+=	iked-memo.ja.txt kinkd-data-struct.obj kinkd-impl.ja.txt
PORTDOCS+=	kinkd-install.ja.txt kinkd-state-txn.obj libracoon.ja.txt
PORTDOCS+=	specification.ja.txt spmif.txt style.txt system-message.ja.txt
.endif

MAN8=		spmd.8 spmdctl.8 kinkd.8 pskgen.8

post-patch:
.if !defined(NOPORTDOCS)
.for FILE in ${PORTDOCS}
	${REINPLACE_CMD} -e 's|/usr/local/racoon2|${LOCALBASE}|' ${WRKSRC}/doc/${FILE}
.endfor
.endif

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/COPYRIGHT.jp ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.for FILE in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${DOCSDIR}
.endfor
.endif
	@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 ;

.include <bsd.port.mk>