freepops/freepops-0.2.9-curl_authopt-meta.patch

37 lines
1.4 KiB
Diff

--- freepops-0.2.9/modules/src/luacurl/lua-curl-0.3.0.diff.orig 2011-08-20 22:45:15.625466196 +0300
+++ freepops-0.2.9/modules/src/luacurl/lua-curl-0.3.0.diff 2011-08-20 22:45:20.838472182 +0300
@@ -1,6 +1,5 @@
-diff -ruN lua-curl-0.3.0-orig/find_curl.sh lua-curl-0.3.0/find_curl.sh
---- lua-curl-0.3.0-orig/find_curl.sh 1970-01-01 01:00:00.000000000 +0100
-+++ lua-curl-0.3.0/find_curl.sh 2008-10-25 17:27:40.000000000 +0200
+--- lua-curl-0.3.0/find_curl.sh.orig 2011-08-20 22:43:25.824339763 +0300
++++ lua-curl-0.3.0/find_curl.sh 2011-08-20 22:43:25.824339763 +0300
@@ -0,0 +1,31 @@
+#!/bin/bash
+
@@ -33,9 +32,8 @@
+ fi
+
+fi
-diff -ruN lua-curl-0.3.0-orig/Makefile lua-curl-0.3.0/Makefile
---- lua-curl-0.3.0-orig/Makefile 2008-10-25 17:26:26.000000000 +0200
-+++ lua-curl-0.3.0/Makefile 2008-10-25 17:27:48.000000000 +0200
+--- lua-curl-0.3.0/Makefile.orig 2008-10-25 17:26:26.000000000 +0200
++++ lua-curl-0.3.0/Makefile 2011-08-20 22:44:12.739393860 +0300
@@ -1,110 +1,35 @@
-# TODO: support for abi&libtool, installation of lua-curl.h
+include $(CONFIG)
@@ -177,3 +175,12 @@
# Constants genereated starting from the cURL headers:
+@@ -120,7 +45,7 @@
+
+ curl_authopt.h:$(HEADER)
+ $(H)cat $(HEADER) | grep "CURLAUTH_" | \
+- sed "s/#define *CURL/{\"/" | sed "s/ *\/\*.*\*\///" | \
++ sed "s/#define *CURL/{\"/" | sed "s/ *\/\*.*\*\///" | sed "s/ *\/\*.*//" | \
+ sed "s/ /\",/" | sed "s/$$/},/" > curl_authopt.h
+
+ curl_ftpauthopt.h:$(HEADER)