blob: 559d251bdf5ffe67cede05706787866c4bf270ae [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Fast and Lightweight HTTP Server for Linux"
2HOMEPAGE = "http://monkey-project.com"
3BUGTRACKER = "https://github.com/monkey/monkey/issues"
4
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
7
8SECTION = "net"
9
Brad Bishop6e60e8b2018-02-01 10:27:11 -050010DEPENDS_append_libc-musl = " libexecinfo"
11
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012SRC_URI = "http://monkey-project.com/releases/1.5/monkey-${PV}.tar.gz \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050013 file://0001-configure-Respect-LIBS-variable-from-env.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014 file://monkey.service \
15 file://monkey.init"
16
17SRC_URI[md5sum] = "9699e4c9ea6ce6b989907c252ae80254"
18SRC_URI[sha256sum] = "7c3d845306aa74ee6effd7ab6169d16ac4e6450e564954d0d0baa2d1e9be1a22"
19
Brad Bishop316dfdd2018-06-25 12:45:53 -040020UPSTREAM_CHECK_URI = "https://github.com/monkey/monkey/releases"
21UPSTREAM_CHECK_REGEX = "v(?P<pver>\d+(\.\d+)+).tar.gz"
22
Patrick Williamsb48b7b42016-08-17 15:04:38 -050023EXTRA_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 Bishop6e60e8b2018-02-01 10:27:11 -050033
34do_configure_prepend_libc-musl() {
35 export LIBS="-lexecinfo"
36}
37
Patrick Williamsb48b7b42016-08-17 15:04:38 -050038DISABLE_STATIC = ""
Brad Bishop6e60e8b2018-02-01 10:27:11 -050039CLEANBROKEN = "1"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050040
41inherit autotools-brokensep pkgconfig update-rc.d systemd
42
43INITSCRIPT_NAME = "monkey"
44INITSCRIPT_PARAMS = "defaults 70"
45
46SYSTEMD_SERVICE_${PN} = "monkey.service"
47
48FILES_${PN} += "${localstatedir}/www/monkey/"
49
50CONFFILES_${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
68do_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}