From 2d5ce2e9f2d8f923a865c68f062c9b303a24dfd5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 22 Oct 2020 11:21:34 +0200 Subject: new package --- ip2proxy-bundledlib.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 ip2proxy-bundledlib.patch (limited to 'ip2proxy-bundledlib.patch') diff --git a/ip2proxy-bundledlib.patch b/ip2proxy-bundledlib.patch new file mode 100644 index 0000000..6f53f26 --- /dev/null +++ b/ip2proxy-bundledlib.patch @@ -0,0 +1,27 @@ +diff -up ./config.m4.rpm ./config.m4 +--- ./config.m4.rpm 2020-10-22 10:42:41.698002764 +0200 ++++ ./config.m4 2020-10-22 10:53:11.200722296 +0200 +@@ -8,6 +8,16 @@ dnl Make sure that the comment is aligne + + if test "$PHP_IP2PROXY" != "no"; then + ++ if [ test -r $PHP_IP2PROXY/IP2Proxy.c ]; then ++ # use bunbled library ++ PHP_ADD_INCLUDE($PHP_IP2PROXY) ++ PHP_ADD_BUILD_DIR($PHP_IP2PROXY) ++ ++ PHP_ADD_LIBRARY(rt, 1, IP2PROXY_SHARED_LIBADD) ++ ++ PHP_SUBST(IP2PROXY_SHARED_LIBADD) ++ PHP_NEW_EXTENSION(ip2proxy, ip2proxy.c $PHP_IP2PROXY/IP2Proxy.c, $ext_shared) ++ else + # --with-ip2proxy -> check with-path + SEARCH_PATH="/usr/local /usr /opt/local" + SEARCH_FOR="/include/IP2Proxy.h" +@@ -63,5 +73,6 @@ if test "$PHP_IP2PROXY" != "no"; then + PHP_SUBST(IP2PROXY_SHARED_LIBADD) + + PHP_NEW_EXTENSION(ip2proxy, ip2proxy.c, $ext_shared) ++ fi + fi + -- cgit