Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "Fast and Lightweight HTTP Server for Linux" |
| 2 | HOMEPAGE = "http://monkey-project.com" |
| 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 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 10 | DEPENDS_append_libc-musl = " libexecinfo" |
| 11 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 12 | SRC_URI = "http://monkey-project.com/releases/1.5/monkey-${PV}.tar.gz \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 13 | file://0001-configure-Respect-LIBS-variable-from-env.patch \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 14 | file://monkey.service \ |
| 15 | file://monkey.init" |
| 16 | |
| 17 | SRC_URI[md5sum] = "9699e4c9ea6ce6b989907c252ae80254" |
| 18 | SRC_URI[sha256sum] = "7c3d845306aa74ee6effd7ab6169d16ac4e6450e564954d0d0baa2d1e9be1a22" |
| 19 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 20 | UPSTREAM_CHECK_URI = "https://github.com/monkey/monkey/releases" |
| 21 | UPSTREAM_CHECK_REGEX = "v(?P<pver>\d+(\.\d+)+).tar.gz" |
| 22 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 23 | EXTRA_OECONF = "--plugdir=${libdir}/monkey/ \ |
| 24 | --logdir=${localstatedir}/log/monkey/ \ |
| 25 | --pidfile=${localstatedir}/run/monkey.pid \ |
| 26 | --default-user=www-data \ |
| 27 | --datadir=${localstatedir}/www/monkey/ \ |
| 28 | --sysconfdir=${sysconfdir}/monkey/ \ |
| 29 | --enable-plugins=* \ |
| 30 | --disable-plugins=mbedtls \ |
| 31 | --debug \ |
| 32 | --malloc-libc" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 33 | |
| 34 | do_configure_prepend_libc-musl() { |
| 35 | export LIBS="-lexecinfo" |
| 36 | } |
| 37 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 38 | DISABLE_STATIC = "" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 39 | CLEANBROKEN = "1" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 40 | |
| 41 | inherit autotools-brokensep pkgconfig update-rc.d systemd |
| 42 | |
| 43 | INITSCRIPT_NAME = "monkey" |
| 44 | INITSCRIPT_PARAMS = "defaults 70" |
| 45 | |
| 46 | SYSTEMD_SERVICE_${PN} = "monkey.service" |
| 47 | |
| 48 | FILES_${PN} += "${localstatedir}/www/monkey/" |
| 49 | |
| 50 | CONFFILES_${PN} = "${sysconfdir}/monkey/monkey.conf \ |
| 51 | ${sysconfdir}/monkey/sites/default \ |
| 52 | ${sysconfdir}/monkey/monkey.mime \ |
| 53 | ${sysconfdir}/monkey/plugins.load \ |
| 54 | ${sysconfdir}/monkey/plugins/proxy_reverse/proxy_reverse.conf \ |
| 55 | ${sysconfdir}/monkey/plugins/mandril/mandril.conf \ |
| 56 | ${sysconfdir}/monkey/plugins/fastcgi/fastcgi.conf \ |
| 57 | ${sysconfdir}/monkey/plugins/logger/logger.conf \ |
| 58 | ${sysconfdir}/monkey/plugins/cgi/cgi.conf \ |
| 59 | ${sysconfdir}/monkey/plugins/cheetah/cheetah.conf \ |
| 60 | ${sysconfdir}/monkey/plugins/dirlisting/dirhtml.conf \ |
| 61 | ${sysconfdir}/monkey/plugins/dirlisting/themes/guineo/header.theme \ |
| 62 | ${sysconfdir}/monkey/plugins/dirlisting/themes/guineo/footer.theme \ |
| 63 | ${sysconfdir}/monkey/plugins/dirlisting/themes/guineo/entry.theme \ |
| 64 | ${sysconfdir}/monkey/plugins/auth/README \ |
| 65 | ${sysconfdir}/monkey/plugins/auth/monkey.users \ |
| 66 | " |
| 67 | |
| 68 | do_install_append() { |
| 69 | |
| 70 | mkdir -p ${D}${sysconfdir}/init.d |
| 71 | install -m 0755 ${WORKDIR}/monkey.init ${D}${sysconfdir}/init.d/monkey |
| 72 | |
| 73 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
| 74 | install -d ${D}${systemd_unitdir}/system |
| 75 | install -m 644 ${WORKDIR}/monkey.service ${D}/${systemd_unitdir}/system |
| 76 | fi |
| 77 | } |