summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-httpd/sthttpd/sthttpd_2.26.4.bb
diff options
context:
space:
mode:
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.bb15
1 files changed, 10 insertions, 5 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
index 0abd13169e..703492167f 100644
--- a/meta-webserver/recipes-httpd/sthttpd/sthttpd_2.26.4.bb
+++ b/meta-webserver/recipes-httpd/sthttpd/sthttpd_2.26.4.bb
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://src/thttpd.c;beginline=1;endline=26;md5=0c5762c2c34dc
6 6
7SRC_URI = "http://opensource.dyc.edu/pub/sthttpd/sthttpd-${PV}.tar.gz \ 7SRC_URI = "http://opensource.dyc.edu/pub/sthttpd/sthttpd-${PV}.tar.gz \
8 file://thttpd.service \ 8 file://thttpd.service \
9 file://thttpd.conf \
9 file://init" 10 file://init"
10 11
11SRC_URI[md5sum] = "e645a85a97d3cb883011a35bc2211815" 12SRC_URI[md5sum] = "e645a85a97d3cb883011a35bc2211815"
@@ -15,19 +16,23 @@ S = "${WORKDIR}/sthttpd-${PV}"
15 16
16inherit autotools update-rc.d systemd 17inherit autotools update-rc.d systemd
17 18
18EXTRA_OEMAKE += "'WEBDIR=${servicedir}/www'" 19SRV_DIR ?= "${servicedir}/www"
20
21EXTRA_OEMAKE += "'WEBDIR=${SRV_DIR}'"
19 22
20do_install_append () { 23do_install_append () {
21 install -d ${D}${sysconfdir}/init.d 24 install -d ${D}${sysconfdir}/init.d
22 install -c -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/thttpd 25 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 26 install -c -m 755 ${WORKDIR}/thttpd.conf ${D}${sysconfdir}
27 sed -i -e 's,@@CONFFILE,${sysconfdir}/thttpd.conf,g' ${D}${sysconfdir}/init.d/thttpd
28 sed -i -e 's,@@SRVDIR,${SRV_DIR},g' ${D}${sysconfdir}/thttpd.conf
24 sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/thttpd 29 sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/thttpd
25 30
26 install -d ${D}${systemd_unitdir}/system 31 install -d ${D}${systemd_unitdir}/system
27 install -m 0644 ${WORKDIR}/thttpd.service ${D}${systemd_unitdir}/system 32 install -m 0644 ${WORKDIR}/thttpd.service ${D}${systemd_unitdir}/system
28 sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${systemd_unitdir}/system/thttpd.service 33 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 34 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 35 sed -i -e 's,@@CONFFILE,${sysconfdir}/thttpd.conf,g' ${D}${systemd_unitdir}/system/thttpd.service
31} 36}
32 37
33INITSCRIPT_NAME = "thttpd" 38INITSCRIPT_NAME = "thttpd"
@@ -35,6 +40,6 @@ INITSCRIPT_PARAMS = "defaults"
35 40
36SYSTEMD_SERVICE_${PN} = "thttpd.service" 41SYSTEMD_SERVICE_${PN} = "thttpd.service"
37 42
38FILES_${PN} += "${servicedir}" 43FILES_${PN} += "${SRV_DIR}"
39FILES_${PN}-dbg += "${servicedir}/www/cgi-bin/.debug" 44FILES_${PN}-dbg += "${SRV_DIR}/cgi-bin/.debug"
40 45