Skip to contentSkip to conversation

: add Monkey HTTP Server.

PATCH In review Eduardo Silva 3 participants 5 messages Jun 5, 2014 – Jun 12, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : add Monkey HTTP Server.

This patch adds the Monkey HTTP Server v1.5.0 recipes. The content on this patch includes the modifications suggested by people in the Maling List.

---
 .../recipes-httpd/monkey/monkey_1.5.0.bb           | 36 ++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 meta-webserver/recipes-httpd/monkey/monkey_1.5.0.bb
meta-webserver/recipes-httpd/monkey/monkey_1.5.0.bb new file +36 -0
new file mode 100644
index 0000000..07a202f
@@ -0,0 +1,36 @@
+SUMMARY = "Fast and Lightweight HTTP Server for Linux"
+HOMEPAGE = "http://monkey-project.com"
+BUGTRACKER = "https://github.com/monkey/monkey/issues"
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
+
+SECTION = "net"
+
+SRC_URI = "http://monkey-project.com/releases/1.5/monkey-${PV}.tar.gz"
+SRC_URI[md5sum] = "9123fc371334621fde1c060ab17adcd3"
+SRC_URI[sha256sum] = "f7a5e4839822750930a723f63a4edbf700e0fb8299a4b3637bd8bab5b1d098a7"
+
+EXTRA_OECONF = " \
+             --plugdir=${libdir}/monkey/ \
+             --logdir=${localstatedir}/log/monkey/ \
+             --pidfile=${localstatedir}/run/monkey.pid \
+             --default-user=www-data \
+             --datadir= ${localstatedir}/www/monkey/ \
+             --sysconfdir=${sysconfdir}/monkey/ \
+             --enable-plugins=* \
+             --disable-plugins=polarssl \
+             --debug \
+             --malloc-libc \
+"
+
+inherit autotools pkgconfig update-rc.d systemd
+
+INITSCRIPT_NAME = "monkey"
+INITSCRIPT_PARAMS = "defaults 70"
+
+SYSTEMD_SERVICE_${PN} = "monkey.service"
+
+FILES_${PN} += "${localstatedir}/www/monkey/"
+
+CONFFILES_${PN} = "${sysconfdir}/monkey/"
Signature · 1 line
1.9.1
#1 lore raw
Quoted 25 lines · Eduardo Silva

This patch adds the Monkey HTTP Server v1.5.0 recipes. The content on this patch includes the modifications suggested by people in the Maling List.

---
  .../recipes-httpd/monkey/monkey_1.5.0.bb           | 36 ++++++++++++++++++++++
  1 file changed, 36 insertions(+)

create mode 100644 meta-webserver/recipes-httpd/monkey/monkey_1.5.0.bb

meta-webserver/recipes-httpd/monkey/monkey_1.5.0.bb new file +9 -0
new file mode 100644
index 0000000..07a202f
@@ -0,0 +1,36 @@
+SUMMARY = "Fast and Lightweight HTTP Server for Linux"
+HOMEPAGE = "http://monkey-project.com"
+BUGTRACKER = "https://github.com/monkey/monkey/issues"
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
+
+SECTION = "net"
+

meta-webserver/recipes-httpd/monkey/monkey_1.5.0.bb line 19

Quoted 10 lines
meta-webserver/recipes-httpd/monkey/monkey_1.5.0.bb new file +10 -0
+SRC_URI = "http://monkey-project.com/releases/1.5/monkey-${PV}.tar.gz"
+SRC_URI[md5sum] = "9123fc371334621fde1c060ab17adcd3"
+SRC_URI[sha256sum] = "f7a5e4839822750930a723f63a4edbf700e0fb8299a4b3637bd8bab5b1d098a7"
+
+EXTRA_OECONF = " \
+             --plugdir=${libdir}/monkey/ \
+             --logdir=${localstatedir}/log/monkey/ \
+             --pidfile=${localstatedir}/run/monkey.pid \
+             --default-user=www-data \
+             --datadir= ${localstatedir}/www/monkey/ \

Here is an extra space, perhaps a typo, please ?

// Robert

Quoted 18 lines
meta-webserver/recipes-httpd/monkey/monkey_1.5.0.bb new file +17 -0
+             --sysconfdir=${sysconfdir}/monkey/ \
+             --enable-plugins=* \
+             --disable-plugins=polarssl \
+             --debug \
+             --malloc-libc \
+"
+
+inherit autotools pkgconfig update-rc.d systemd
+
+INITSCRIPT_NAME = "monkey"
+INITSCRIPT_PARAMS = "defaults 70"
+
+SYSTEMD_SERVICE_${PN} = "monkey.service"
+
+FILES_${PN} += "${localstatedir}/www/monkey/"
+
+CONFFILES_${PN} = "${sysconfdir}/monkey/"
#2 lore raw
Quoted 32 lines · On Wednesday 11 June 2014 12:17:28 Robert Yang wrote:
Quoted 31 lines · Eduardo Silva

This patch adds the Monkey HTTP Server v1.5.0 recipes. The content on this patch includes the modifications suggested by people in the Maling List.

---

  .../recipes-httpd/monkey/monkey_1.5.0.bb           | 36

++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 meta-webserver/recipes-httpd/monkey/monkey_1.5.0.bb

(quoted diff) +0 -0

b/meta-webserver/recipes-httpd/monkey/monkey_1.5.0.bb new file mode 100644
index 0000000..07a202f

meta-webserver/recipes-httpd/monkey/monkey_1.5.0.bb new file +12 -0
@@ -0,0 +1,36 @@
+SUMMARY = "Fast and Lightweight HTTP Server for Linux"
+HOMEPAGE = "http://monkey-project.com"
+BUGTRACKER = "https://github.com/monkey/monkey/issues"
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
+
+SECTION = "net"
+
+SRC_URI = "http://monkey-project.com/releases/1.5/monkey-${PV}.tar.gz"
+SRC_URI[md5sum] = "9123fc371334621fde1c060ab17adcd3"
+SRC_URI[sha256sum] =

"f7a5e4839822750930a723f63a4edbf700e0fb8299a4b3637bd8bab5b1d098a7" +

Quoted 8 lines

meta-webserver/recipes-httpd/monkey/monkey_1.5.0.bb line 19

Quoted 6 lines
meta-webserver/recipes-httpd/monkey/monkey_1.5.0.bb new file +6 -0
+EXTRA_OECONF = " \
+             --plugdir=${libdir}/monkey/ \
+             --logdir=${localstatedir}/log/monkey/ \
+             --pidfile=${localstatedir}/run/monkey.pid \
+             --default-user=www-data \
+             --datadir= ${localstatedir}/www/monkey/ \

Here is an extra space, perhaps a typo, please ?

Yes, also I just tried building it with that fixed and with the change in master to use separate build directories for autotools the build fails:

----------------- snip ------------------
ERROR: Function failed: do_compile (log file is located at /media/large/tmp/work/core2-64-poky-linux/monkey/1.5.0- r0/temp/log.do_compile.22474)
ERROR: Logfile of failure stored in: /media/large/tmp/work/core2-64-poky- linux/monkey/1.5.0-r0/temp/log.do_compile.22474
Log data follows:
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']

| DEBUG: Executing shell function do_compile
| NOTE: make -j 8
| sed: can't read monkey.pc.in: No such file or directory
| make: *** [monkey.pc] Error 2
| ERROR: oe_runmake failed
| WARNING: /media/large/tmp/work/core2-64-poky-linux/monkey/1.5.0-

r0/temp/run.do_compile.22474:1 exit 1 from
| exit 1
| ERROR: Function failed: do_compile (log file is located at /media/large/tmp/work/core2-64-poky-linux/monkey/1.5.0- r0/temp/log.do_compile.22474)
ERROR: Task 6 (/home/paul/poky/meta-oe/meta-webserver/recipes- httpd/monkey/monkey_1.5.0.bb, do_compile) failed with exit code '1' ----------------- snip ------------------

The quick fix for this is to inherit autotools-brokensep; a more desirable long-term fix would be to fix monkey to allow building it in a separate build directory.

Eduardo, could you please send patches for these?

Thanks,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#3 lore raw

Hi all,

/media/large/tmp/work/core2-64-poky-linux/monkey/1.5.0-

Quoted 5 lines

r0/temp/log.do_compile.22474)
ERROR: Task 6 (/home/paul/poky/meta-oe/meta-webserver/recipes- httpd/monkey/monkey_1.5.0.bb, do_compile) failed with exit code '1' ----------------- snip ------------------

Quoted 7 lines

The quick fix for this is to inherit autotools-brokensep; a more desirable long-term fix would be to fix monkey to allow building it in a separate build
directory.

Eduardo, could you please send patches for these?

thanks for tracking down this problem.

After verify, our configure script miss that feature (i am wondering why this problem did not happened on our local tests), as this is something that is breaking the build we will work in a long-term fix. You should receive today a patch for the quickfix plus the new recipe for Monkey v1.5.1 (minor release).

cheers,

#4 lore raw
Quoted 13 lines · Eduardo Silva

Hi all,

/media/large/tmp/work/core2-64-poky-linux/monkey/1.5.0- r0/temp/log.do_compile.22474)
ERROR: Task 6 (/home/paul/poky/meta-oe/meta-webserver/recipes- httpd/monkey/monkey_1.5.0.bb <http://monkey_1.5.0.bb>, do_compile) failed with exit code '1'
----------------- snip ------------------

The quick fix for this is to inherit autotools-brokensep; a more desirable long-term fix would be to fix monkey to allow building it in a separate build directory.

Quoted 7 lines

Eduardo, could you please send patches for these?

thanks for tracking down this problem.

After verify, our configure script miss that feature (i am wondering why this problem did not happened on our local tests), as this is something that is

Are you using oe-core's master branch ? Separate builds by default is enabled after daisy released.

// Robert

Quoted 6 lines

breaking the build we will work in a long-term fix. You should receive today a patch for the quickfix plus the new recipe for Monkey v1.5.1 (minor release).

cheers,