security/libreswan: Unbundle unbound-event.h

Use the header from dns/unbound.

PR:		263838
Reported by:	Andrew Cagney <andrew.cagney@gmail.com>
This commit is contained in:
Yuri Victorovich 2022-11-07 17:37:04 -08:00
parent bf9e1249fa
commit 22784d03f6
1 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= libreswan
DISTVERSION= 4.7
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= https://download.libreswan.org/
@ -11,6 +12,7 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= gawk:lang/gawk \
${NONEXISTENT}:dns/unbound:patch \
xmlto:textproc/xmlto # build requires xmlto, but manpages aren't installed: https://github.com/libreswan/libreswan/issues/479
LIB_DEPENDS= libcurl.so:ftp/curl \
libevent.so:devel/libevent \
@ -21,6 +23,8 @@ LIB_DEPENDS= libcurl.so:ftp/curl \
USES= bison cpe gmake pkgconfig python
UNBOUND_WRKSRC= `${MAKE} -C ${PORTSDIR}/dns/unbound -V WRKSRC`
CFLAGS+= -I${WRKSRC}/include/unbound
MAKE_ARGS= PKG_BASE=${LOCALBASE} \
@ -35,6 +39,9 @@ BINARY_ALIAS= awk=gawk
OPTIONS_DEFINE= DOCS
post-patch:
@${RM} ${WRKSRC}/include/unbound/unbound-event.h && ${LN} -s ${UNBOUND_WRKSRC}/libunbound/unbound-event.h ${WRKSRC}/include/unbound/unbound-event.h
post-configure:
@cd ${WRKSRC}/mk/defaults && \
${RLN} netbsd.mk freebsd.mk