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 | |
| 10 | SRC_URI = "http://monkey-project.com/releases/1.5/monkey-${PV}.tar.gz \ |
| 11 | file://monkey.service \ |
| 12 | file://monkey.init" |
| 13 | |
| 14 | SRC_URI[md5sum] = "9699e4c9ea6ce6b989907c252ae80254" |
| 15 | SRC_URI[sha256sum] = "7c3d845306aa74ee6effd7ab6169d16ac4e6450e564954d0d0baa2d1e9be1a22" |
| 16 | |
| 17 | EXTRA_OECONF = "--plugdir=${libdir}/monkey/ \ |
| 18 | --logdir=${localstatedir}/log/monkey/ \ |
| 19 | --pidfile=${localstatedir}/run/monkey.pid \ |
| 20 | --default-user=www-data \ |
| 21 | --datadir=${localstatedir}/www/monkey/ \ |
| 22 | --sysconfdir=${sysconfdir}/monkey/ \ |
| 23 | --enable-plugins=* \ |
| 24 | --disable-plugins=mbedtls \ |
| 25 | --debug \ |
| 26 | --malloc-libc" |
| 27 | DISABLE_STATIC = "" |
| 28 | |
| 29 | inherit autotools-brokensep pkgconfig update-rc.d systemd |
| 30 | |
| 31 | INITSCRIPT_NAME = "monkey" |
| 32 | INITSCRIPT_PARAMS = "defaults 70" |
| 33 | |
| 34 | SYSTEMD_SERVICE_${PN} = "monkey.service" |
| 35 | |
| 36 | FILES_${PN} += "${localstatedir}/www/monkey/" |
| 37 | |
| 38 | CONFFILES_${PN} = "${sysconfdir}/monkey/monkey.conf \ |
| 39 | ${sysconfdir}/monkey/sites/default \ |
| 40 | ${sysconfdir}/monkey/monkey.mime \ |
| 41 | ${sysconfdir}/monkey/plugins.load \ |
| 42 | ${sysconfdir}/monkey/plugins/proxy_reverse/proxy_reverse.conf \ |
| 43 | ${sysconfdir}/monkey/plugins/mandril/mandril.conf \ |
| 44 | ${sysconfdir}/monkey/plugins/fastcgi/fastcgi.conf \ |
| 45 | ${sysconfdir}/monkey/plugins/logger/logger.conf \ |
| 46 | ${sysconfdir}/monkey/plugins/cgi/cgi.conf \ |
| 47 | ${sysconfdir}/monkey/plugins/cheetah/cheetah.conf \ |
| 48 | ${sysconfdir}/monkey/plugins/dirlisting/dirhtml.conf \ |
| 49 | ${sysconfdir}/monkey/plugins/dirlisting/themes/guineo/header.theme \ |
| 50 | ${sysconfdir}/monkey/plugins/dirlisting/themes/guineo/footer.theme \ |
| 51 | ${sysconfdir}/monkey/plugins/dirlisting/themes/guineo/entry.theme \ |
| 52 | ${sysconfdir}/monkey/plugins/auth/README \ |
| 53 | ${sysconfdir}/monkey/plugins/auth/monkey.users \ |
| 54 | " |
| 55 | |
| 56 | do_install_append() { |
| 57 | |
| 58 | mkdir -p ${D}${sysconfdir}/init.d |
| 59 | install -m 0755 ${WORKDIR}/monkey.init ${D}${sysconfdir}/init.d/monkey |
| 60 | |
| 61 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
| 62 | install -d ${D}${systemd_unitdir}/system |
| 63 | install -m 644 ${WORKDIR}/monkey.service ${D}/${systemd_unitdir}/system |
| 64 | fi |
| 65 | } |