mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
- with USE_OPENSSL, users can choose base OpenSSL or the one in the ports
- fix configure script so that WITHOUT_LIBEVENT works - install some docs PR: ports/123853 Submitted by: Tomoyuki Sakurai <cherry at trombik.org>
This commit is contained in:
parent
b977a2fc92
commit
b663a290a5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=214975
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= unbound
|
||||
PORTVERSION= 1.0.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= dns
|
||||
MASTER_SITES= http://unbound.net/downloads/
|
||||
|
||||
@ -14,7 +15,10 @@ MAINTAINER= sem@FreeBSD.org
|
||||
COMMENT= A validating, recursive, and caching DNS resolver
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_OPENSSL= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE}
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
USE_RC_SUBR= unbound
|
||||
@ -24,6 +28,8 @@ MAN3= libunbound.3
|
||||
MAN5= unbound.conf.5
|
||||
MAN8= unbound.8 unbound-checkconf.8
|
||||
|
||||
PORTDOCS= CREDITS Changelog FEATURES LICENSE README README.svn \
|
||||
README.tests TODO plan requirements.txt
|
||||
PKGINSTALL= ${WRKDIR}/pkg-install
|
||||
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
||||
SUB_FILES= pkg-install pkg-deinstall
|
||||
@ -34,7 +40,9 @@ OPTIONS= LIBEVENT "is useful when using many (10000) outgoing ports" off
|
||||
|
||||
.if defined(WITH_LIBEVENT)
|
||||
LIB_DEPENDS+= event:${PORTSDIR}/devel/libevent
|
||||
CONFIGURE_ARGS+= --with-libevent=${PREFIX}
|
||||
CONFIGURE_ARGS+= --with-libevent=${LOCALBASE}
|
||||
.else
|
||||
CONFIGURE_ARGS+= --with-libevent=no
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@ -45,5 +53,11 @@ pre-install:
|
||||
|
||||
post-install:
|
||||
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}; \
|
||||
for f in ${PORTDOCS}; do \
|
||||
cd ${WRKSRC}/doc && ${INSTALL_DATA} $${f} ${DOCSDIR}/; \
|
||||
done
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
11
dns/unbound/files/patch-configure
Normal file
11
dns/unbound/files/patch-configure
Normal file
@ -0,0 +1,11 @@
|
||||
--- configure.orig 2008-06-17 01:16:01.000000000 +0400
|
||||
+++ configure 2008-06-17 01:16:29.000000000 +0400
|
||||
@@ -22125,7 +22125,7 @@
|
||||
withval="no"
|
||||
fi
|
||||
|
||||
-if test x_$withval == x_yes -o x_$withval != x_no; then
|
||||
+if test x_$withval = x_yes -o x_$withval != x_no; then
|
||||
{ echo "$as_me:$LINENO: checking for libevent" >&5
|
||||
echo $ECHO_N "checking for libevent... $ECHO_C" >&6; }
|
||||
if test x_$withval = x_ -o x_$withval = x_yes; then
|
Loading…
Reference in New Issue
Block a user