aboutsummaryrefslogtreecommitdiff
path: root/ftp/php4-curl
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2006-12-13 12:41:35 +0000
committerPeter Pentchev <roam@FreeBSD.org>2006-12-13 12:41:35 +0000
commit64e068d25c1370f67d2f0d779ac1719f9bc5d137 (patch)
treee8e79d2b112a29862848aa733e4b3f9387c78d2e /ftp/php4-curl
parent68ee2dd59c7dc7173d1688b825cc1c5a70f097c1 (diff)
downloadports-64e068d25c1370f67d2f0d779ac1719f9bc5d137.tar.gz
ports-64e068d25c1370f67d2f0d779ac1719f9bc5d137.zip
Notes
Diffstat (limited to 'ftp/php4-curl')
-rw-r--r--ftp/php4-curl/Makefile2
-rw-r--r--ftp/php4-curl/files/patch-curl.c22
2 files changed, 24 insertions, 0 deletions
diff --git a/ftp/php4-curl/Makefile b/ftp/php4-curl/Makefile
index d41004f301e6..376245d6adad 100644
--- a/ftp/php4-curl/Makefile
+++ b/ftp/php4-curl/Makefile
@@ -11,4 +11,6 @@ MASTERDIR= ${.CURDIR}/../../lang/php4
PKGNAMESUFFIX= -curl
+PORTREVISION= 2
+
.include "${MASTERDIR}/Makefile"
diff --git a/ftp/php4-curl/files/patch-curl.c b/ftp/php4-curl/files/patch-curl.c
new file mode 100644
index 000000000000..1c703f38578c
--- /dev/null
+++ b/ftp/php4-curl/files/patch-curl.c
@@ -0,0 +1,22 @@
+--- curl.c.orig Wed Dec 6 11:12:37 2006
++++ curl.c Wed Dec 6 11:13:27 2006
+@@ -258,7 +258,9 @@
+ REGISTER_CURL_CONSTANT(CURLOPT_FTPAPPEND);
+ REGISTER_CURL_CONSTANT(CURLOPT_NETRC);
+ REGISTER_CURL_CONSTANT(CURLOPT_FOLLOWLOCATION);
++#if CURLOPT_FTPASCII != 0
+ REGISTER_CURL_CONSTANT(CURLOPT_FTPASCII);
++#endif
+ REGISTER_CURL_CONSTANT(CURLOPT_PUT);
+ #if CURLOPT_MUTE != 0
+ REGISTER_CURL_CONSTANT(CURLOPT_MUTE);
+@@ -296,7 +298,9 @@
+ REGISTER_CURL_CONSTANT(CURLOPT_FILETIME);
+ REGISTER_CURL_CONSTANT(CURLOPT_WRITEFUNCTION);
+ REGISTER_CURL_CONSTANT(CURLOPT_READFUNCTION);
++#if CURLOPT_PASSWDFUNCTION != 0
+ REGISTER_CURL_CONSTANT(CURLOPT_PASSWDFUNCTION);
++#endif
+ REGISTER_CURL_CONSTANT(CURLOPT_HEADERFUNCTION);
+ REGISTER_CURL_CONSTANT(CURLOPT_MAXREDIRS);
+ REGISTER_CURL_CONSTANT(CURLOPT_MAXCONNECTS);