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 | |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 10 | SRC_URI = "http://monkey-project.com/releases/1.6/monkey-${PV}.tar.gz \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 11 | file://monkey.service \ |
| 12 | file://monkey.init" |
| 13 | |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 14 | SRC_URI[sha256sum] = "f1122e89cda627123286542b0a18fcaa131cbe9d4f5dd897d9455157289148fb" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 15 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 16 | UPSTREAM_CHECK_URI = "https://github.com/monkey/monkey/releases" |
| 17 | UPSTREAM_CHECK_REGEX = "v(?P<pver>\d+(\.\d+)+).tar.gz" |
| 18 | |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 19 | EXTRA_OECMAKE = "-DINSTALL_LOGDIR=${localstatedir}/log/monkey/ \ |
| 20 | -DPID_FILE=${localstatedir}/run/monkey.pid \ |
| 21 | -DINSTALL_SYSCONFDIR=${sysconfdir}/monkey/ \ |
| 22 | -DWITH_PLUGINS=* \ |
| 23 | -DWITHOUT_PLUGINS=mbedtls \ |
| 24 | -DWITH_DEBUG=1 \ |
| 25 | -DDEFAULT_USER='www-data' \ |
| 26 | -DWITH_SYSTEM_MALLOC=1 \ |
| 27 | " |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 28 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 29 | EXTRA_OECMAKE:append:libc-musl = " -DWITH_MUSL=1 " |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 30 | |
| 31 | # GCC-10+ defaults to -fno-common |
| 32 | CFLAGS += "-fcommon" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 33 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 34 | DISABLE_STATIC = "" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 35 | |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 36 | inherit cmake pkgconfig update-rc.d systemd |
| 37 | |
| 38 | OECMAKE_GENERATOR = "Unix Makefiles" |
| 39 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 40 | do_install:append() { |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 41 | rm -rf ${D}/run |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 42 | rm -rf ${D}${localstatedir}/run |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 43 | install -Dm 0755 ${WORKDIR}/monkey.init ${D}${sysconfdir}/init.d/monkey |
| 44 | |
| 45 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
| 46 | install -Dm 644 ${WORKDIR}/monkey.service ${D}/${systemd_unitdir}/system/monkey.service |
| 47 | fi |
| 48 | } |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 49 | |
| 50 | INITSCRIPT_NAME = "monkey" |
| 51 | INITSCRIPT_PARAMS = "defaults 70" |
| 52 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 53 | SYSTEMD_SERVICE:${PN} = "monkey.service" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 54 | |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 55 | PACKAGES += "${PN}-plugins" |
| 56 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 57 | FILES:${PN}-plugins = "${libdir}/monkey-*.so" |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 58 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 59 | FILES:${PN} += "${localstatedir}/www/monkey/ /run" |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 60 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 61 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 62 | CONFFILES:${PN} = "${sysconfdir}/monkey/monkey.conf \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 63 | ${sysconfdir}/monkey/sites/default \ |
| 64 | ${sysconfdir}/monkey/monkey.mime \ |
| 65 | ${sysconfdir}/monkey/plugins.load \ |
| 66 | ${sysconfdir}/monkey/plugins/proxy_reverse/proxy_reverse.conf \ |
| 67 | ${sysconfdir}/monkey/plugins/mandril/mandril.conf \ |
| 68 | ${sysconfdir}/monkey/plugins/fastcgi/fastcgi.conf \ |
| 69 | ${sysconfdir}/monkey/plugins/logger/logger.conf \ |
| 70 | ${sysconfdir}/monkey/plugins/cgi/cgi.conf \ |
| 71 | ${sysconfdir}/monkey/plugins/cheetah/cheetah.conf \ |
| 72 | ${sysconfdir}/monkey/plugins/dirlisting/dirhtml.conf \ |
| 73 | ${sysconfdir}/monkey/plugins/dirlisting/themes/guineo/header.theme \ |
| 74 | ${sysconfdir}/monkey/plugins/dirlisting/themes/guineo/footer.theme \ |
| 75 | ${sysconfdir}/monkey/plugins/dirlisting/themes/guineo/entry.theme \ |
| 76 | ${sysconfdir}/monkey/plugins/auth/README \ |
| 77 | ${sysconfdir}/monkey/plugins/auth/monkey.users \ |
| 78 | " |
| 79 | |