|
| 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] = "b794724ac38cfedee2a5d27c175bc87e" |
| 15 | +SRC_URI[sha256sum] = "662bbafc614d32f645059e6e00258fed640665594f5b7f11cf4c4763cf09ddcf" |
| 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=polarssl \ |
| 25 | + --debug \ |
| 26 | + --malloc-libc" |
| 27 | + |
| 28 | +inherit autotools-brokensep pkgconfig update-rc.d systemd |
| 29 | + |
| 30 | +INITSCRIPT_NAME = "monkey" |
| 31 | +INITSCRIPT_PARAMS = "defaults 70" |
| 32 | + |
| 33 | +SYSTEMD_SERVICE_${PN} = "monkey.service" |
| 34 | + |
| 35 | +FILES_${PN} += "${localstatedir}/www/monkey/" |
| 36 | + |
| 37 | +CONFFILES_${PN} = "${sysconfdir}/monkey/monkey.conf \ |
| 38 | + ${sysconfdir}/monkey/sites/default \ |
| 39 | + ${sysconfdir}/monkey/monkey.mime \ |
| 40 | + ${sysconfdir}/monkey/plugins.load \ |
| 41 | + ${sysconfdir}/monkey/plugins/proxy_reverse/proxy_reverse.conf \ |
| 42 | + ${sysconfdir}/monkey/plugins/mandril/mandril.conf \ |
| 43 | + ${sysconfdir}/monkey/plugins/fastcgi/fastcgi.conf \ |
| 44 | + ${sysconfdir}/monkey/plugins/logger/logger.conf \ |
| 45 | + ${sysconfdir}/monkey/plugins/cgi/cgi.conf \ |
| 46 | + ${sysconfdir}/monkey/plugins/cheetah/cheetah.conf \ |
| 47 | + ${sysconfdir}/monkey/plugins/dirlisting/dirhtml.conf \ |
| 48 | + ${sysconfdir}/monkey/plugins/dirlisting/themes/guineo/header.theme \ |
| 49 | + ${sysconfdir}/monkey/plugins/dirlisting/themes/guineo/footer.theme \ |
| 50 | + ${sysconfdir}/monkey/plugins/dirlisting/themes/guineo/entry.theme \ |
| 51 | + ${sysconfdir}/monkey/plugins/auth/README \ |
| 52 | + ${sysconfdir}/monkey/plugins/auth/monkey.users \ |
| 53 | + " |
| 54 | + |
| 55 | +do_install_append() { |
| 56 | + |
| 57 | + mkdir -p ${D}${sysconfdir}/init.d |
| 58 | + install -m 0755 ${WORKDIR}/monkey.init ${D}${sysconfdir}/init.d/monkey |
| 59 | + |
| 60 | + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
| 61 | + install -d ${D}${systemd_unitdir}/system |
| 62 | + install -m 644 ${WORKDIR}/monkey.service ${D}/${systemd_unitdir}/system |
| 63 | + fi |
| 64 | +} |
0 commit comments