lighttpd: inherit systemd / remove unneded systemd code

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Andreas Müller 2012-03-09 10:13:55 +00:00 committed by Khem Raj
parent 5b45051bca
commit e0023c5a6e

View File

@ -1,16 +1,10 @@
FILESEXTRAPATHS := "${THISDIR}/${PN}"
PRINC = "1"
PRINC = "2"
inherit systemd
SRC_URI += "file://lighttpd.service"
do_install_append() {
install -d ${D}${base_libdir}/systemd/systemd/
install -m 0644 ${WORKDIR}/lighttpd.service ${D}${base_libdir}/systemd/systemd/
install -d ${D}${base_libdir}/systemd/systemd/multi-user.target.wants
ln -sf ../lighttpd.service ${D}${base_libdir}/systemd/systemd/multi-user.target.wants
}
FILES_${PN} += "${base_libdir}/systemd"
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "lighttpd.service"