diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
commit | 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch) | |
tree | 0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-webserver/recipes-httpd/sthttpd/sthttpd_2.26.4.bb | |
download | meta-openembedded-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-webserver/recipes-httpd/sthttpd/sthttpd_2.26.4.bb')
-rw-r--r-- | meta-webserver/recipes-httpd/sthttpd/sthttpd_2.26.4.bb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/sthttpd/sthttpd_2.26.4.bb b/meta-webserver/recipes-httpd/sthttpd/sthttpd_2.26.4.bb new file mode 100644 index 0000000000..0abd13169e --- /dev/null +++ b/meta-webserver/recipes-httpd/sthttpd/sthttpd_2.26.4.bb | |||
@@ -0,0 +1,40 @@ | |||
1 | SUMMARY = "A simple, small, portable, fast, and secure HTTP server" | ||
2 | DESCRIPTION = "A simple, small, portable, fast, and secure HTTP server (supported fork of thttpd)." | ||
3 | HOMEPAGE = "http://opensource.dyc.edu/sthttpd" | ||
4 | LICENSE = "BSD-2-Clause" | ||
5 | LIC_FILES_CHKSUM = "file://src/thttpd.c;beginline=1;endline=26;md5=0c5762c2c34dcbe9eb18815516502872" | ||
6 | |||
7 | SRC_URI = "http://opensource.dyc.edu/pub/sthttpd/sthttpd-${PV}.tar.gz \ | ||
8 | file://thttpd.service \ | ||
9 | file://init" | ||
10 | |||
11 | SRC_URI[md5sum] = "e645a85a97d3cb883011a35bc2211815" | ||
12 | SRC_URI[sha256sum] = "78e87979140cbda123c81b4051552242dbbffb5dec1a17e5f95ec4826b1eaddb" | ||
13 | |||
14 | S = "${WORKDIR}/sthttpd-${PV}" | ||
15 | |||
16 | inherit autotools update-rc.d systemd | ||
17 | |||
18 | EXTRA_OEMAKE += "'WEBDIR=${servicedir}/www'" | ||
19 | |||
20 | do_install_append () { | ||
21 | install -d ${D}${sysconfdir}/init.d | ||
22 | install -c -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/thttpd | ||
23 | sed -i -e 's,@@SRVDIR,${servicedir}/www,g' ${D}${sysconfdir}/init.d/thttpd | ||
24 | sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/thttpd | ||
25 | |||
26 | install -d ${D}${systemd_unitdir}/system | ||
27 | install -m 0644 ${WORKDIR}/thttpd.service ${D}${systemd_unitdir}/system | ||
28 | sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${systemd_unitdir}/system/thttpd.service | ||
29 | sed -i 's!/var/!${localstatedir}/!g' ${D}${systemd_unitdir}/system/thttpd.service | ||
30 | sed -i -e 's,@@SRVDIR,${servicedir}/www,g' ${D}${systemd_unitdir}/system/thttpd.service | ||
31 | } | ||
32 | |||
33 | INITSCRIPT_NAME = "thttpd" | ||
34 | INITSCRIPT_PARAMS = "defaults" | ||
35 | |||
36 | SYSTEMD_SERVICE_${PN} = "thttpd.service" | ||
37 | |||
38 | FILES_${PN} += "${servicedir}" | ||
39 | FILES_${PN}-dbg += "${servicedir}/www/cgi-bin/.debug" | ||
40 | |||