diff options
| author | Zang Ruochen <zangrc.fnst@cn.fujitsu.com> | 2020-07-24 17:51:00 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-07-28 12:23:16 -0700 |
| commit | 10cbc8e3c5cbaae7373cd8ae74d485d22234abb7 (patch) | |
| tree | ecab57fc4909d89459695fad011a85603e7802f6 /meta-webserver/recipes-httpd/hiawatha/hiawatha_10.11.bb | |
| parent | ef17d6f30b01b0797dda51be03192920e152f06f (diff) | |
| download | meta-openembedded-10cbc8e3c5cbaae7373cd8ae74d485d22234abb7.tar.gz | |
hiawatha: upgrade 10.10 -> 10.11
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-webserver/recipes-httpd/hiawatha/hiawatha_10.11.bb')
| -rw-r--r-- | meta-webserver/recipes-httpd/hiawatha/hiawatha_10.11.bb | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/hiawatha/hiawatha_10.11.bb b/meta-webserver/recipes-httpd/hiawatha/hiawatha_10.11.bb new file mode 100644 index 0000000000..89910841f6 --- /dev/null +++ b/meta-webserver/recipes-httpd/hiawatha/hiawatha_10.11.bb | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | SUMMARY = "Lightweight secure web server" | ||
| 2 | HOMEPAGE = "http://www.hiawatha-webserver.org" | ||
| 3 | LICENSE = "GPLv2" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe" | ||
| 5 | DEPENDS = "libxml2 libxslt virtual/crypt" | ||
| 6 | |||
| 7 | SECTION = "net" | ||
| 8 | |||
| 9 | SRC_URI = "http://hiawatha-webserver.org/files/${BP}.tar.gz \ | ||
| 10 | file://hiawatha-init \ | ||
| 11 | file://hiawatha.service " | ||
| 12 | |||
| 13 | SRC_URI[md5sum] = "6dcec72e94facbdc69b103006fa5819f" | ||
| 14 | SRC_URI[sha256sum] = "79d85d165d68dd7043bbd337f5bc7dd10d8632d68ba61d0e557f84bd687c9727" | ||
| 15 | |||
| 16 | INITSCRIPT_NAME = "hiawatha" | ||
| 17 | INITSCRIPT_PARAMS = "defaults 70" | ||
| 18 | |||
| 19 | SYSTEMD_SERVICE_${PN} = "hiawatha.service" | ||
| 20 | |||
| 21 | inherit cmake update-rc.d systemd | ||
| 22 | |||
| 23 | EXTRA_OECMAKE = " -DENABLE_IPV6=OFF \ | ||
| 24 | -DENABLE_CACHE=OFF \ | ||
| 25 | -DENABLE_DEBUG=OFF \ | ||
| 26 | -DENABLE_TLS=OFF \ | ||
| 27 | -DENABLE_TOOLKIT=OFF \ | ||
| 28 | -DENABLE_CHROOT=OFF \ | ||
| 29 | -DENABLE_XSLT=ON \ | ||
| 30 | -DENABLE_TOMAHAWK=OFF \ | ||
| 31 | -DCMAKE_INSTALL_MANDIR=${mandir} \ | ||
| 32 | -DCMAKE_INSTALL_BINDIR=${bindir} \ | ||
| 33 | -DCMAKE_INSTALL_SBINDIR=${sbindir} \ | ||
| 34 | -DCMAKE_INSTALL_SYSCONFDIR=${sysconfdir} \ | ||
| 35 | -DCMAKE_INSTALL_LIBDIR=${libdir} \ | ||
| 36 | -DCMAKE_INSTALL_FULL_LOCALSTATEDIR=${localstatedir}" | ||
| 37 | |||
| 38 | do_install_append() { | ||
| 39 | # Copy over init script and sed in the correct sbin path | ||
| 40 | sed -i 's,sed_sbin_path,${sbindir},' ${WORKDIR}/hiawatha-init | ||
| 41 | mkdir -p ${D}${sysconfdir}/init.d | ||
| 42 | install -m 0755 ${WORKDIR}/hiawatha-init ${D}${sysconfdir}/init.d/hiawatha | ||
| 43 | |||
| 44 | # configure php-fcgi to have a working configuration | ||
| 45 | # by default if php is installed | ||
| 46 | echo "Server = ${bindir}/php-cgi ; 2 ; 127.0.0.1:2005 ; nobody:nobody ; ${sysconfdir}/php/hiawatha-php5/php.ini" >> ${D}${sysconfdir}/hiawatha/php-fcgi.conf | ||
| 47 | |||
| 48 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
| 49 | install -d ${D}/${systemd_unitdir}/system | ||
| 50 | install -m 644 ${WORKDIR}/hiawatha.service ${D}/${systemd_unitdir}/system | ||
| 51 | fi | ||
| 52 | |||
| 53 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}" "${D}${localstatedir}/run" | ||
| 54 | } | ||
| 55 | |||
| 56 | CONFFILES_${PN} = " \ | ||
| 57 | ${sysconfdir}/hiawatha/cgi-wrapper.conf \ | ||
| 58 | ${sysconfdir}/hiawatha/hiawatha.conf \ | ||
| 59 | ${sysconfdir}/hiawatha/index.xslt \ | ||
| 60 | ${sysconfdir}/hiawatha/mimetype.conf \ | ||
| 61 | ${sysconfdir}/hiawatha/php-fcgi.conf \ | ||
| 62 | " | ||
| 63 | |||
| 64 | FILES_${PN}-dev = "${libdir}/hiawatha/*${SOLIBSDEV}" | ||
