diff options
Diffstat (limited to 'meta-webserver/recipes-httpd/hiawatha/hiawatha_12.0.bb')
| -rw-r--r-- | meta-webserver/recipes-httpd/hiawatha/hiawatha_12.0.bb | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/meta-webserver/recipes-httpd/hiawatha/hiawatha_12.0.bb b/meta-webserver/recipes-httpd/hiawatha/hiawatha_12.0.bb deleted file mode 100644 index 9c9aaed807..0000000000 --- a/meta-webserver/recipes-httpd/hiawatha/hiawatha_12.0.bb +++ /dev/null | |||
| @@ -1,91 +0,0 @@ | |||
| 1 | SUMMARY = "Lightweight secure web server" | ||
| 2 | HOMEPAGE = "https://hiawatha.leisink.net/" | ||
| 3 | LICENSE = "GPL-2.0-only" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe" | ||
| 5 | DEPENDS = "libxml2 libxslt virtual/crypt" | ||
| 6 | |||
| 7 | SECTION = "net" | ||
| 8 | |||
| 9 | SRC_URI = "https://hiawatha.leisink.net/files/download/hiawatha-${PV}.tar.gz \ | ||
| 10 | file://hiawatha-init \ | ||
| 11 | file://hiawatha.service \ | ||
| 12 | " | ||
| 13 | |||
| 14 | SRC_URI[sha256sum] = "942dd76e0b0369188612020cbcc92c19e11ea9e844f5dfaef4e9c7ab6892e247" | ||
| 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 | |||
| 24 | CFLAGS += "-std=gnu17" | ||
| 25 | |||
| 26 | EXTRA_OECMAKE = " -DENABLE_IPV6=OFF \ | ||
| 27 | -DENABLE_CACHE=OFF \ | ||
| 28 | -DENABLE_DEBUG=OFF \ | ||
| 29 | -DENABLE_TOOLKIT=OFF \ | ||
| 30 | -DENABLE_CHROOT=OFF \ | ||
| 31 | -DENABLE_XSLT=ON \ | ||
| 32 | -DENABLE_TOMAHAWK=OFF \ | ||
| 33 | -DCMAKE_INSTALL_MANDIR=${mandir} \ | ||
| 34 | -DCMAKE_INSTALL_BINDIR=${bindir} \ | ||
| 35 | -DCMAKE_INSTALL_SBINDIR=${sbindir} \ | ||
| 36 | -DCMAKE_INSTALL_SYSCONFDIR=${sysconfdir} \ | ||
| 37 | -DCMAKE_INSTALL_LIBDIR=${libdir} \ | ||
| 38 | -DCMAKE_INSTALL_FULL_LOCALSTATEDIR=${localstatedir} \ | ||
| 39 | -DENABLE_TLS=ON \ | ||
| 40 | -DCMAKE_POLICY_VERSION_MINIMUM=3.5" | ||
| 41 | |||
| 42 | do_install:append() { | ||
| 43 | # Copy over init script and sed in the correct sbin path | ||
| 44 | sed -i 's,sed_sbin_path,${sbindir},' ${UNPACKDIR}/hiawatha-init | ||
| 45 | mkdir -p ${D}${sysconfdir}/init.d | ||
| 46 | install -m 0755 ${UNPACKDIR}/hiawatha-init ${D}${sysconfdir}/init.d/hiawatha | ||
| 47 | |||
| 48 | # configure php-fcgi to have a working configuration | ||
| 49 | # by default if php is installed | ||
| 50 | 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 | ||
| 51 | |||
| 52 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
| 53 | install -d ${D}/${systemd_unitdir}/system | ||
| 54 | install -m 644 ${UNPACKDIR}/hiawatha.service ${D}/${systemd_unitdir}/system | ||
| 55 | fi | ||
| 56 | |||
| 57 | # /var/log/hiawatha and /var/lib/hiawatha needs to be created in runtime. | ||
| 58 | # Use rmdir to catch if upstream stops creating these dirs, or adds | ||
| 59 | # something else in /var/log. | ||
| 60 | rmdir ${D}${localstatedir}/log/${BPN} ${D}${localstatedir}/log | ||
| 61 | rmdir ${D}${localstatedir}/run | ||
| 62 | rmdir --ignore-fail-on-non-empty ${D}${localstatedir} | ||
| 63 | |||
| 64 | # Create /var/log/hiawatha at runtime. | ||
| 65 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then | ||
| 66 | install -d ${D}${nonarch_libdir}/tmpfiles.d | ||
| 67 | echo "d ${localstatedir}/log/${BPN} - - - -" > ${D}${nonarch_libdir}/tmpfiles.d/${BPN}.conf | ||
| 68 | fi | ||
| 69 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'sysvinit', d)}" ]; then | ||
| 70 | install -d ${D}${sysconfdir}/default/volatiles | ||
| 71 | echo "d root root 0755 ${localstatedir}/log/${BPN} none" > ${D}${sysconfdir}/default/volatiles/99_${BPN} | ||
| 72 | fi | ||
| 73 | |||
| 74 | } | ||
| 75 | |||
| 76 | CONFFILES:${PN} = " \ | ||
| 77 | ${sysconfdir}/hiawatha/cgi-wrapper.conf \ | ||
| 78 | ${sysconfdir}/hiawatha/hiawatha.conf \ | ||
| 79 | ${sysconfdir}/hiawatha/index.xslt \ | ||
| 80 | ${sysconfdir}/hiawatha/mimetype.conf \ | ||
| 81 | ${sysconfdir}/hiawatha/php-fcgi.conf \ | ||
| 82 | " | ||
| 83 | |||
| 84 | PACKAGES =+ "${PN}-letsencrypt" | ||
| 85 | |||
| 86 | FILES:${PN}-letsencrypt += "${sbindir}/lefh ${libdir}/hiawatha/letsencrypt" | ||
| 87 | |||
| 88 | FILES:${PN} += "${nonarch_libdir}/tmpfiles.d" | ||
| 89 | FILES:${PN}-dev += "${libdir}/hiawatha/*${SOLIBSDEV}" | ||
| 90 | |||
| 91 | RDEPENDS:${PN}-letsencrypt += "php-cli" | ||
