diff mbox

[base] fastcgi: Add new recipe for fastcgi

Message ID 1380541104-25572-4-git-send-email-jabk@prevas.dk
State Accepted
Delegated to: Esben Haabendal
Headers show

Commit Message

Jacob Kjaergaard Sept. 30, 2013, 11:38 a.m. UTC
From: Christian Sørensen <christian.braunersorensen@prevas.dk>

---
 recipes/fastcgi/fastcgi_2.4.0.oe              |   16 +++++++++++++++
 recipes/fastcgi/fastcgi_2.4.0.oe.sig          |    1 +
 recipes/fastcgi/files/cstdio.patch            |   12 ++++++++++++
 recipes/fastcgi/files/link-against-math.patch |   26 +++++++++++++++++++++++++
 4 files changed, 55 insertions(+)
 create mode 100644 recipes/fastcgi/fastcgi_2.4.0.oe
 create mode 100644 recipes/fastcgi/fastcgi_2.4.0.oe.sig
 create mode 100644 recipes/fastcgi/files/cstdio.patch
 create mode 100644 recipes/fastcgi/files/link-against-math.patch

Comments

Esben Haabendal Oct. 14, 2013, 2:09 p.m. UTC | #1
Merged to master, thanks.

/Esben
diff mbox

Patch

diff --git a/recipes/fastcgi/fastcgi_2.4.0.oe b/recipes/fastcgi/fastcgi_2.4.0.oe
new file mode 100644
index 0000000..1647851
--- /dev/null
+++ b/recipes/fastcgi/fastcgi_2.4.0.oe
@@ -0,0 +1,16 @@ 
+LICENSE = "Open Market"
+DESCRIPTION = "Fast CGI backend (web server to CGI handler) library"
+
+inherit autotools pkgconfig auto-package-utils auto-package-libs
+
+SRC_URI = "http://www.fastcgi.com/dist/fcgi-${PV}.tar.gz \
+	file://link-against-math.patch \
+	file://cstdio.patch"
+
+S= "${SRCDIR}/fcgi-${PV}"
+
+AUTO_PACKAGE_UTILS = "cgi-fcgi"
+AUTO_PACKAGE_LIBS = "fcgi"
+
+PARALLEL_MAKE=""
+
diff --git a/recipes/fastcgi/fastcgi_2.4.0.oe.sig b/recipes/fastcgi/fastcgi_2.4.0.oe.sig
new file mode 100644
index 0000000..a9ea1e4
--- /dev/null
+++ b/recipes/fastcgi/fastcgi_2.4.0.oe.sig
@@ -0,0 +1 @@ 
+2329404159e8b8315e524b9eaf1de763202c6e6a  fcgi-2.4.0.tar.gz
diff --git a/recipes/fastcgi/files/cstdio.patch b/recipes/fastcgi/files/cstdio.patch
new file mode 100644
index 0000000..90ce2e7
--- /dev/null
+++ b/recipes/fastcgi/files/cstdio.patch
@@ -0,0 +1,12 @@ 
+Index: fcgi-2.4.0/libfcgi/fcgio.cpp
+===================================================================
+--- fcgi-2.4.0.orig/libfcgi/fcgio.cpp	2009-09-16 23:20:20.504735309 +0200
++++ fcgi-2.4.0/libfcgi/fcgio.cpp	2009-09-16 23:20:34.325635844 +0200
+@@ -23,6 +23,7 @@
+ #endif
+ 
+ #include <limits.h>
++#include <cstdio>
+ #include "fcgio.h"
+ 
+ using std::streambuf;
diff --git a/recipes/fastcgi/files/link-against-math.patch b/recipes/fastcgi/files/link-against-math.patch
new file mode 100644
index 0000000..37a9a03
--- /dev/null
+++ b/recipes/fastcgi/files/link-against-math.patch
@@ -0,0 +1,26 @@ 
+Need to link against the C math library (-lm) at least for uclibc.
+
+Index: fcgi-2.4.0/cgi-fcgi/Makefile.am
+===================================================================
+--- fcgi-2.4.0.orig/cgi-fcgi/Makefile.am	2008-07-09 20:54:56.000000000 +0200
++++ fcgi-2.4.0/cgi-fcgi/Makefile.am	2008-07-09 20:55:12.000000000 +0200
+@@ -11,5 +11,5 @@
+ LIBDIR      = ../libfcgi
+ LIBFCGI     = $(LIBDIR)/libfcgi.la
+ 
+-LDADD = $(LIBFCGI)
++LDADD = $(LIBFCGI) -lm
+ cgi_fcgi_SOURCES = $(INCLUDE_FILES) cgi-fcgi.c
+Index: fcgi-2.4.0/examples/Makefile.am
+===================================================================
+--- fcgi-2.4.0.orig/examples/Makefile.am	2008-07-09 20:54:56.000000000 +0200
++++ fcgi-2.4.0/examples/Makefile.am	2008-07-09 20:55:11.000000000 +0200
+@@ -21,7 +21,7 @@
+ LIBDIR      = ../libfcgi
+ LIBFCGI     = $(LIBDIR)/libfcgi.la
+ 
+-LDADD = $(LIBFCGI)
++LDADD = $(LIBFCGI) -lm
+ 
+ echo_SOURCES       = $(INCLUDE_FILES) echo.c
+ echo_x_SOURCES     = $(INCLUDE_FILES) echo-x.c