mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-27 10:03:20 +00:00
ee0f74884f
Additional change required to fixup pkg-plist was to move rc.d files to their proper location. MFH: 2020Q3 (fixes 13-CURRENT build errors)
71 lines
1.9 KiB
Makefile
71 lines
1.9 KiB
Makefile
# Created by: sumikawa
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= racoon2
|
|
PORTVERSION= ${RACOON2_COMMIT_DATE}
|
|
CATEGORIES= security net
|
|
HASH= f96b7ab
|
|
RACOON2_COMMIT_DATE=202000801
|
|
|
|
MAINTAINER= cy@FreeBSD.org
|
|
COMMENT= Racoon2 IPsec daemon
|
|
|
|
BROKEN_FreeBSD_11= Requires openssl to build
|
|
|
|
CONFLICTS= racoon2-legacy-*
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= zoulasc
|
|
GH_TAGNAME= ${HASH}
|
|
|
|
USES= autoreconf libtool:build perl5 tar:tgz ssl
|
|
CONFIGURE_ARGS+= --enable-natt \
|
|
--prefix=${STAGEDIR}/${PREFIX}
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= YACC=/usr/bin/yacc perl_bindir=${LOCALBASE}/bin/perl5 \
|
|
STAGEDIR=${STAGEDIR} PREFIX=${PREFIX}
|
|
|
|
MAKE_ENV= STAGEDIR=${STAGEDIR} PREFIX=${PREFIX}
|
|
|
|
CFLAGS= -DHAVE_CONFIG_H
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
OPTIONS_DEFAULT= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
PORTDOCS+= INSTALL USAGE config-usage.ja.txt config-usage.txt
|
|
PORTDOCS+= iked-memo.ja.txt libracoon.ja.txt specification.ja.txt
|
|
PORTDOCS+= spmif.txt style.txt system-message.ja.txt
|
|
.endif
|
|
|
|
post-patch:
|
|
# @${REINPLACE_CMD} 's|/var/run/racoon2|$$(STAGEDIR)&|' \
|
|
${WRKSRC}/samples/Makefile.in
|
|
${REINPLACE_CMD} 's|$$(sysconfdir)|${STAGEDIR}/${PREFIX}/etc|' ${WRKSRC}/samples/rc.d/Makefile.am
|
|
@${LN} -sf ${LOCALBASE}/share/automake-1.16/ylwrap ${WRKSRC}/lib
|
|
|
|
post-patch-DOCS-on:
|
|
.for FILE in ${PORTDOCS}
|
|
@${REINPLACE_CMD} -e 's|/usr/local/racoon2|${PREFIX}|' ${WRKSRC}/doc/${FILE}
|
|
.endfor
|
|
|
|
post-install:
|
|
@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 ;
|
|
|
|
post-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT.jp ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
|
.for FILE in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|