git: 22784d03f650 - main - security/libreswan: Unbundle unbound-event.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Nov 2022 01:44:23 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=22784d03f650254ab0516030594719946b475db1 commit 22784d03f650254ab0516030594719946b475db1 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2022-11-08 01:37:04 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2022-11-08 01:44:19 +0000 security/libreswan: Unbundle unbound-event.h Use the header from dns/unbound. PR: 263838 Reported by: Andrew Cagney <andrew.cagney@gmail.com> --- security/libreswan/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/security/libreswan/Makefile b/security/libreswan/Makefile index abcbbf95589b..bd101cc16091 100644 --- a/security/libreswan/Makefile +++ b/security/libreswan/Makefile @@ -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