From cf2b32527010772faaccc1d53959fb11d13a2e9c Mon Sep 17 00:00:00 2001 From: Munechika SUMIKAWA Date: Wed, 2 Feb 2005 13:06:25 +0000 Subject: - Make it broken when Kerberos5 is not installed in the system - Correct paths in documents --- security/racoon2/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'security/racoon2/Makefile') diff --git a/security/racoon2/Makefile b/security/racoon2/Makefile index feffbb4a1432..130a6356e518 100644 --- a/security/racoon2/Makefile +++ b/security/racoon2/Makefile @@ -14,6 +14,10 @@ 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 @@ -21,6 +25,7 @@ USE_AUTOCONF_VER=259 CONFIGURE_TARGET= GNU_CONFIGURE= yes CONFIGURE_ARGS+=--sysconfdir=${LOCALBASE}/etc +USE_REINPLACE= yes .if !defined(NOPORTDOCS) PORTDOCS= INSTALL USAGE.iked USAGE.kinkd USAGE.spmd config-usage.ja.txt @@ -39,6 +44,13 @@ pre-patch: ${MV} rc.d-kinkd rc.d-kinkd.in ;\ ${MV} rc.d-spmd rc.d-spmd.in ) +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} -- cgit v1.2.3