freebsd-ports/security/libreswan/Makefile
Yuri Victorovich ea7056a268 security/libreswan: Update 4.6 -> 4.7
Reported by:	portscout
2022-05-25 23:52:58 -07:00

49 lines
1.3 KiB
Makefile

PORTNAME= libreswan
DISTVERSION= 4.7
CATEGORIES= security
MASTER_SITES= https://download.libreswan.org/
MAINTAINER= yuri@FreeBSD.org
COMMENT= IPsec and IKE based firewall
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= gawk:lang/gawk \
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 \
libldns.so:dns/ldns \
libnspr4.so:devel/nspr \
libnss3.so:security/nss \
libunbound.so:dns/unbound
USES= bison cpe gmake pkgconfig python
CFLAGS+= -I${WRKSRC}/include/unbound
MAKE_ARGS= PKG_BASE=${LOCALBASE} \
NSS_CFLAGS="`pkg-config --cflags nss`" NSS_LDFLAGS="`pkg-config --libs nss`" \
NSPR_LDFLAGS="`pkg-config --libs nspr`" \
CRYPT_LDFLAGS=-lcrypt \
USE_PTHREAD_SETSCHEDPRIO=false \
WERROR_CFLAGS="" \
PYTHON_BINARY=${PYTHON_CMD}
BINARY_ALIAS= awk=gawk
OPTIONS_DEFINE= DOCS
post-configure:
@cd ${WRKSRC}/mk/defaults && \
${RLN} netbsd.mk freebsd.mk
post-install:
.for f in \
_import_crl addconn algparse asn1check cavp dncheck ecdsasigkey \
enumcheck hunkcheck ipcheck jambufcheck keyidcheck pluto readwriteconf \
routecheck rsasigkey showhostkey timecheck vendoridcheck whack
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/ipsec/${f}
.endfor
.include <bsd.port.mk>