From patchwork Mon Sep 30 11:38:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jacob Kjaergaard X-Patchwork-Id: 279130 X-Patchwork-Delegate: esben@haabendal.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id 9679F2C00C5 for ; Mon, 30 Sep 2013 21:38:33 +1000 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id AFAD3447E8 for ; Mon, 30 Sep 2013 13:38:31 +0200 (CEST) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail01.prevas.se (mail01.prevas.se [62.95.78.3]) by hugin.dotsrc.org (Postfix) with ESMTPS id EC7E93FA48 for ; Mon, 30 Sep 2013 13:38:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=3381; q=dns/txt; s=ironport1; t=1380541110; x=1412077110; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kEwskkVamYmrzq5pXsFh46Tfic8qMWuYjEDnRUMZ2Vs=; b=lJi4y0FafjGDJCgHnMm+eaybFdX6fJpkKzHX/WRIOKlj1G5CeSBnA2gn 5L1zDYHj5zAB1t2OJFgZRC551JUAj4xgXuHOL6XYOUTpLZAU4/9I/DNUp QwXGPW2wT4YZu4OdBiWSjXqluHN9q3ADAgNsoOr/rRViqr9zexJWK5L7U U=; X-IronPort-AV: E=Sophos;i="4.90,1007,1371074400"; d="scan'208";a="3977342" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport1.prevas.se with ESMTP/TLS/AES128-SHA; 30 Sep 2013 13:38:29 +0200 Received: from arh116.prevas.se (172.16.11.2) by smtp.prevas.se (172.16.8.105) with Microsoft SMTP Server (TLS) id 14.2.347.0; Mon, 30 Sep 2013 13:38:29 +0200 From: To: Subject: [base] fastcgi: Add new recipe for fastcgi Date: Mon, 30 Sep 2013 13:38:24 +0200 Message-ID: <1380541104-25572-4-git-send-email-jabk@prevas.dk> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1380541104-25572-1-git-send-email-jabk@prevas.dk> References: <1380541104-25572-1-git-send-email-jabk@prevas.dk> MIME-Version: 1.0 X-Originating-IP: [172.16.11.2] X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org From: Christian Sørensen --- 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 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 ++#include + #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