1 DESCRIPTION = "A simple, small, portable, fast, and secure HTTP server."
3 MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
4 HOMEPAGE = "http://www.acme.com/software/thttpd/"
7 SRC_URI = "http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz \
8 file://install.patch;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}_append = " ${servicedir}"
22 install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/
23 autotools_do_configure
26 do_install_append () {
27 install -d "${D}${sysconfdir}/init.d"
28 cat ${WORKDIR}/init | sed -e 's,@@SRVDIR,${servicedir}/www,g' > ${WORKDIR}/thttpd
29 install -c -m 755 ${WORKDIR}/thttpd ${D}${sysconfdir}/init.d/thttpd