Skip to contentSkip to conversation

fcgiwrap: add recipe

PATCH In review [email protected] 3 participants 3 messages Nov 23, 2020 – Dec 3, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fcgiwrap: add recipe

From: Senthil Selvaganesan <[email protected]>

fcgiwrap is a simple server for running CGI applications over FastCGI. It hopes to provide clean CGI support to Nginx and other web servers that may need it. Homepage: https://github.com/gnosek/fcgiwrap.

---
 .../recipes-support/fcgiwrap/fcgiwrap_git.bb  | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-webserver/recipes-support/fcgiwrap/fcgiwrap_git.bb
meta-webserver/recipes-support/fcgiwrap/fcgiwrap_git.bb new file +22 -0
new file mode 100644
index 000000000..f33b066c0
@@ -0,0 +1,22 @@
+SUMMARY = "FastCGI wrapper for CGI scripts"
+DESCRIPTION = "FcgiWrap is a simple server for running CGI applications over FastCGI. Fcgiwrap can be used together with Nginx to serve CGI or Perl scripts"
+HOMEPAGE = "https://github.com/gnosek/fcgiwrap"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=a95d02d614a3a0232d4e6e51b7963c5b"
+
+SRCREV = "99c942c90063c73734e56bacaa65f947772d9186"
+SRC_URI = "git://github.com/gnosek/fcgiwrap.git;protocol=https"
+
+DEPENDS = "fcgi"
+S = "${WORKDIR}/git"
+B = "${S}/../build/"
+CFLAGS_prepend = "-I${S}/../build/"
+EXTRA_OEMAKE = "VPATH=${S}"
+
+inherit autotools pkgconfig
+
+do_install() {
+    install -d "${D}/usr/sbin/"
+    install -m 755 ${B}/fcgiwrap ${D}/usr/sbin/fcgiwrap
+}
Signature · 1 line
2.29.2
#1 lore raw
Quoted 7 lines · Joshua Watt via lists.openembedded.org

From: Senthil Selvaganesan <[email protected]>

fcgiwrap is a simple server for running CGI applications over FastCGI. It hopes to provide clean CGI support to Nginx and other web servers that may need it. Homepage: https://github.com/gnosek/fcgiwrap.

lets add it to packagegroup-meta-webserver.bb as well

Quoted 16 lines
---
 .../recipes-support/fcgiwrap/fcgiwrap_git.bb  | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-webserver/recipes-support/fcgiwrap/fcgiwrap_git.bb
meta-webserver/recipes-support/fcgiwrap/fcgiwrap_git.bb new file +3 -0
new file mode 100644
index 000000000..f33b066c0
@@ -0,0 +1,22 @@
+SUMMARY = "FastCGI wrapper for CGI scripts"
+DESCRIPTION = "FcgiWrap is a simple server for running CGI applications over FastCGI. Fcgiwrap can be used together with Nginx to serve CGI or Perl scripts"
+HOMEPAGE = "https://github.com/gnosek/fcgiwrap"

meta-webserver/recipes-support/fcgiwrap/fcgiwrap_git.bb line 13

Quoted 10 lines
meta-webserver/recipes-support/fcgiwrap/fcgiwrap_git.bb new file +10 -0
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=a95d02d614a3a0232d4e6e51b7963c5b"
+
+SRCREV = "99c942c90063c73734e56bacaa65f947772d9186"
+SRC_URI = "git://github.com/gnosek/fcgiwrap.git;protocol=https"
+
+DEPENDS = "fcgi"
+S = "${WORKDIR}/git"
+B = "${S}/../build/"

this seems redundant

meta-webserver/recipes-support/fcgiwrap/fcgiwrap_git.bb line 14

Quoted 1 line
meta-webserver/recipes-support/fcgiwrap/fcgiwrap_git.bb new file +1 -0
+CFLAGS_prepend = "-I${S}/../build/"

perhaps =+ is fine here without prepend

meta-webserver/recipes-support/fcgiwrap/fcgiwrap_git.bb line 21

Quoted 7 lines
meta-webserver/recipes-support/fcgiwrap/fcgiwrap_git.bb new file +7 -0
+EXTRA_OEMAKE = "VPATH=${S}"
+
+inherit autotools pkgconfig
+
+do_install() {
+    install -d "${D}/usr/sbin/"
+    install -m 755 ${B}/fcgiwrap ${D}/usr/sbin/fcgiwrap

install -Dm 077 ${B}/fcgiwrap ${D}${sbindir}/fcgiwrap

would be a single liner

Quoted 7 lines
meta-webserver/recipes-support/fcgiwrap/fcgiwrap_git.bb new file +1 -1
+}
--

2.29.2

#2 lore raw

PATCH v2 1/1 fcgiwrap: add recipe

In reply to [email protected]

From: Senthil Selvaganesan <[email protected]>

fcgiwrap is a simple server for running CGI applications over FastCGI. It hopes to provide clean CGI support to Nginx and other web servers that may need it. Homepage: https://github.com/gnosek/fcgiwrap.

---
 .../packagegroup-meta-webserver.bb            |   1 +
 ...001-Fix-implicit-fallthrough-warning.patch | 313 ++++++++++++++++++
 .../recipes-support/fcgiwrap/fcgiwrap_git.bb  |  24 ++
 3 files changed, 338 insertions(+)
 create mode 100644 meta-webserver/recipes-support/fcgiwrap/fcgiwrap/0001-Fix-implicit-fallthrough-warning.patch
 create mode 100644 meta-webserver/recipes-support/fcgiwrap/fcgiwrap_git.bb
meta-webserver/recipes-core/packagesgroups/packagegroup-meta-webserver.bb +1 -0
index e3e68582c..2fa5bc4a9 100644
@@ -38,6 +38,7 @@ RDEPENDS_packagegroup-meta-webserver-php = "\
 RDEPENDS_packagegroup-meta-webserver-support = "\
     spawn-fcgi \
     fcgi \
+    fcgiwrap \
 "
 
 RDEPENDS_packagegroup-meta-webserver-webadmin = "\
meta-webserver/recipes-support/fcgiwrap/fcgiwrap/0001-Fix-implicit-fallthrough-warning.patch new file +313 -0

313 lines not on this page · raw message

meta-webserver/recipes-support/fcgiwrap/fcgiwrap_git.bb new file +24 -0
new file mode 100644
index 000000000..a9a8ce054
@@ -0,0 +1,24 @@
+SUMMARY = "FastCGI wrapper for CGI scripts"
+DESCRIPTION = "FcgiWrap is a simple server for running CGI applications over FastCGI. Fcgiwrap can be used together with Nginx to serve CGI or Perl scripts"
+HOMEPAGE = "https://github.com/gnosek/fcgiwrap"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=a95d02d614a3a0232d4e6e51b7963c5b"
+
+DEPENDS = "fcgi"
+
+SRC_URI = "git://github.com/gnosek/fcgiwrap.git;protocol=https;branch=${BRANCH} \
+           file://0001-Fix-implicit-fallthrough-warning.patch \
+           "
+BRANCH = "master"
+SRCREV = "99c942c90063c73734e56bacaa65f947772d9186"
+
+S = "${WORKDIR}/git"
+CFLAGS =+ "-I${B}"
+EXTRA_OEMAKE = "VPATH=${S}"
+
+inherit autotools pkgconfig
+
+do_install() {
+    install -Dm 755 ${B}/fcgiwrap ${D}${sbindir}/fcgiwrap
+}
Signature · 1 line
2.29.2