svn commit: r564177 - in head/dns/powerdns-recursor: . files

Dima Panov fluffy at FreeBSD.org
Sat Feb 6 02:09:28 UTC 2021


Author: fluffy
Date: Sat Feb  6 02:09:27 2021
New Revision: 564177
URL: https://svnweb.freebsd.org/changeset/ports/564177

Log:
  dns/powerdns-recursor: unbreak build with lua54
  
  Switch to autoreconf to avoid heavy multilina patching of configure script
  
  PR:		253078
  Submitted by:	fluffy
  Approved by:	maintainer
  MFH:		2021Q1

Added:
  head/dns/powerdns-recursor/files/patch-m4_pdns__check__libcrypto.m4   (contents, props changed)
  head/dns/powerdns-recursor/files/patch-m4_pdns__with__lua.m4   (contents, props changed)
Deleted:
  head/dns/powerdns-recursor/files/patch-configure
Modified:
  head/dns/powerdns-recursor/Makefile

Modified: head/dns/powerdns-recursor/Makefile
==============================================================================
--- head/dns/powerdns-recursor/Makefile	Sat Feb  6 02:07:47 2021	(r564176)
+++ head/dns/powerdns-recursor/Makefile	Sat Feb  6 02:09:27 2021	(r564177)
@@ -24,8 +24,8 @@ BUILD_DEPENDS=	${LOCALBASE}/include/boost/shared_ptr.h
 LIB_DEPENDS=	libboost_context.so:devel/boost-libs \
 		libprotobuf.so:devel/protobuf
 
-USES=		compiler:c++11-lib cpe gmake localbase:ldflags pkgconfig ssl \
-		tar:bzip2
+USES=		autoreconf compiler:c++11-lib cpe gmake libtool localbase:ldflags \
+		pkgconfig ssl tar:bzip2
 
 CPE_VENDOR=	powerdns
 USE_RC_SUBR=	pdns-recursor

Added: head/dns/powerdns-recursor/files/patch-m4_pdns__check__libcrypto.m4
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/powerdns-recursor/files/patch-m4_pdns__check__libcrypto.m4	Sat Feb  6 02:09:27 2021	(r564177)
@@ -0,0 +1,15 @@
+--- m4/pdns_check_libcrypto.m4.orig	2020-11-16 16:30:04 UTC
++++ m4/pdns_check_libcrypto.m4
+@@ -75,8 +75,10 @@ AC_DEFUN([PDNS_CHECK_LIBCRYPTO], [
+         for ssldir in $ssldirs; do
+             AC_MSG_CHECKING([for openssl/crypto.h in $ssldir])
+             if test -f "$ssldir/include/openssl/crypto.h"; then
+-                LIBCRYPTO_INCLUDES="-I$ssldir/include"
+-                LIBCRYPTO_LDFLAGS="-L$ssldir/lib"
++                if test $ssldir != /usr; then
++                    LIBCRYPTO_INCLUDES="-I$ssldir/include"
++                    LIBCRYPTO_LDFLAGS="-L$ssldir/lib"
++                fi
+                 LIBCRYPTO_LIBS="-lcrypto"
+                 found=true
+                 AC_MSG_RESULT([yes])

Added: head/dns/powerdns-recursor/files/patch-m4_pdns__with__lua.m4
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/powerdns-recursor/files/patch-m4_pdns__with__lua.m4	Sat Feb  6 02:09:27 2021	(r564177)
@@ -0,0 +1,11 @@
+--- m4/pdns_with_lua.m4.orig	2020-09-30 10:42:53 UTC
++++ m4/pdns_with_lua.m4
+@@ -41,7 +41,7 @@ AC_DEFUN([PDNS_WITH_LUA],[
+       ], [ : ])
+       AS_IF([test -z "$LUAPC"], [
+         found_lua=n
+-        m4_foreach_w([luapc], [lua5.3 lua-5.3 lua53 lua5.2 lua-5.2 lua52 lua5.1 lua-5.1 lua51 lua], [
++        m4_foreach_w([luapc], [lua5.4 lua-5.4 lua54 lua5.3 lua-5.3 lua53 lua5.2 lua-5.2 lua52 lua5.1 lua-5.1 lua51 lua], [
+           AS_IF([test "$found_lua" != "y"], [
+             PKG_CHECK_MODULES([LUA], [luapc >= ${lua_min_version}], [
+               AC_DEFINE([HAVE_LUA], [1], [Define to 1 if you have lua])


More information about the svn-ports-all mailing list