diff options
Diffstat (limited to 'meta-webserver/recipes-httpd/monkey/monkey_1.8.4.bb')
| -rw-r--r-- | meta-webserver/recipes-httpd/monkey/monkey_1.8.4.bb | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/monkey/monkey_1.8.4.bb b/meta-webserver/recipes-httpd/monkey/monkey_1.8.4.bb new file mode 100644 index 0000000000..126a2a6fa5 --- /dev/null +++ b/meta-webserver/recipes-httpd/monkey/monkey_1.8.4.bb | |||
| @@ -0,0 +1,86 @@ | |||
| 1 | SUMMARY = "Fast and Lightweight HTTP Server for Linux" | ||
| 2 | HOMEPAGE = "https://github.com/monkey/monkey/issues/414" | ||
| 3 | BUGTRACKER = "https://github.com/monkey/monkey/issues" | ||
| 4 | |||
| 5 | LICENSE = "Apache-2.0" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93" | ||
| 7 | |||
| 8 | SECTION = "net" | ||
| 9 | |||
| 10 | SRC_URI = "git://github.com/monkey/monkey;branch=master;protocol=https \ | ||
| 11 | file://0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch \ | ||
| 12 | file://0001-include-Fix-location-of-mk_core.h-etal.patch \ | ||
| 13 | file://monkey.service \ | ||
| 14 | file://monkey.init" | ||
| 15 | |||
| 16 | SRCREV = "94af273244369e1a8426d0d1f6376475aff90db9" | ||
| 17 | |||
| 18 | UPSTREAM_CHECK_COMMITS = "1" | ||
| 19 | |||
| 20 | EXTRA_OECMAKE = "-DMK_PATH_LOG=${localstatedir}/log/monkey/ \ | ||
| 21 | -DPID_FILE=/run/monkey.pid \ | ||
| 22 | -DMK_PATH_CONF=${sysconfdir}/monkey/ \ | ||
| 23 | -DWITH_PLUGINS=* \ | ||
| 24 | -DWITHOUT_PLUGINS=mbedtls \ | ||
| 25 | -DWITH_DEBUG=1 \ | ||
| 26 | -DDEFAULT_USER='www-data' \ | ||
| 27 | -DWITH_SYSTEM_MALLOC=1 \ | ||
| 28 | " | ||
| 29 | |||
| 30 | EXTRA_OECMAKE:append:libc-musl = " -DWITH_MUSL=1 " | ||
| 31 | |||
| 32 | DISABLE_STATIC = "" | ||
| 33 | |||
| 34 | inherit cmake pkgconfig update-rc.d systemd | ||
| 35 | |||
| 36 | do_configure:append() { | ||
| 37 | sed -i -e 's|${STAGING_BINDIR_TOOLCHAIN}/||g' ${B}/include/monkey/mk_env.h | ||
| 38 | } | ||
| 39 | |||
| 40 | do_install:append() { | ||
| 41 | install -Dm 0755 ${UNPACKDIR}/monkey.init ${D}${sysconfdir}/init.d/monkey | ||
| 42 | # Create /var/log/monkey in runtime. | ||
| 43 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then | ||
| 44 | install -d ${D}${nonarch_libdir}/tmpfiles.d | ||
| 45 | echo "d ${localstatedir}/log/${BPN} 0755 ${BPN} ${BPN} -" > ${D}${nonarch_libdir}/tmpfiles.d/${BPN}.conf | ||
| 46 | fi | ||
| 47 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'sysvinit', d)}" ]; then | ||
| 48 | install -d ${D}${sysconfdir}/default/volatiles | ||
| 49 | echo "d ${BPN} ${BPN} 0755 ${localstatedir}/log/${BPN} none" > ${D}${sysconfdir}/default/volatiles/99_${BPN} | ||
| 50 | fi | ||
| 51 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
| 52 | install -Dm 644 ${UNPACKDIR}/monkey.service ${D}/${systemd_unitdir}/system/monkey.service | ||
| 53 | fi | ||
| 54 | } | ||
| 55 | |||
| 56 | INITSCRIPT_NAME = "monkey" | ||
| 57 | INITSCRIPT_PARAMS = "defaults 70" | ||
| 58 | |||
| 59 | SYSTEMD_SERVICE:${PN} = "monkey.service" | ||
| 60 | |||
| 61 | PACKAGES += "${PN}-plugins" | ||
| 62 | |||
| 63 | FILES:${PN}-plugins = "${libdir}/monkey-*.so" | ||
| 64 | |||
| 65 | FILES:${PN} += "${nonarch_libdir}/tmpfiles.d" | ||
| 66 | |||
| 67 | CONFFILES:${PN} = "${sysconfdir}/monkey/monkey.conf \ | ||
| 68 | ${sysconfdir}/monkey/sites/default \ | ||
| 69 | ${sysconfdir}/monkey/monkey.mime \ | ||
| 70 | ${sysconfdir}/monkey/plugins.load \ | ||
| 71 | ${sysconfdir}/monkey/plugins/proxy_reverse/proxy_reverse.conf \ | ||
| 72 | ${sysconfdir}/monkey/plugins/mandril/mandril.conf \ | ||
| 73 | ${sysconfdir}/monkey/plugins/fastcgi/fastcgi.conf \ | ||
| 74 | ${sysconfdir}/monkey/plugins/logger/logger.conf \ | ||
| 75 | ${sysconfdir}/monkey/plugins/cgi/cgi.conf \ | ||
| 76 | ${sysconfdir}/monkey/plugins/cheetah/cheetah.conf \ | ||
| 77 | ${sysconfdir}/monkey/plugins/dirlisting/dirhtml.conf \ | ||
| 78 | ${sysconfdir}/monkey/plugins/dirlisting/themes/guineo/header.theme \ | ||
| 79 | ${sysconfdir}/monkey/plugins/dirlisting/themes/guineo/footer.theme \ | ||
| 80 | ${sysconfdir}/monkey/plugins/dirlisting/themes/guineo/entry.theme \ | ||
| 81 | ${sysconfdir}/monkey/plugins/auth/README \ | ||
| 82 | ${sysconfdir}/monkey/plugins/auth/monkey.users \ | ||
| 83 | " | ||
| 84 | |||
| 85 | CVE_STATUS[CVE-2013-2183] = "cpe-incorrect: Current version (1.6.9) is not affected. Issue was addressed in version 1.3.0" | ||
| 86 | CVE_STATUS[CVE-2013-1771] = "not-applicable-platform: this is gentoo specific CVE" | ||
