1 DESCRIPTION = "A simple, small, portable, fast, and secure HTTP server."
3 HOMEPAGE = "http://www.acme.com/software/thttpd/"
6 SRC_URI = "http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz \
7 file://install.patch;patch=1 \
10 file://htpasswd_shared.diff;patch=1"
11 S = "${WORKDIR}/thttpd-${PV}"
13 INITSCRIPT_NAME = "thttpd"
14 INITSCRIPT_PARAMS = "defaults"
16 inherit autotools update-rc.d
18 EXTRA_OEMAKE += "'WEBDIR=${servicedir}/www'"
19 FILES_${PN}-dbg_append = " ${servicedir}/www/cgi-bin/.debug"
20 FILES_${PN}_append = " ${servicedir}"
23 install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/
24 autotools_do_configure
27 do_install_append () {
28 install -d "${D}${sysconfdir}/init.d"
29 cat ${WORKDIR}/init | sed -e 's,@@SRVDIR,${servicedir}/www,g' > ${WORKDIR}/thttpd
30 install -c -m 755 ${WORKDIR}/thttpd ${D}${sysconfdir}/init.d/thttpd