summaryrefslogtreecommitdiff
path: root/recipes-core
diff options
context:
space:
mode:
authorPatrick Murphy <Patrick.Murphy@multitech.com>2020-06-11 13:51:35 -0500
committerJohn Klug <john.klug@multitech.com>2020-06-18 20:22:08 -0500
commit1612656579381828fb1e7d0fc4df25e4968e177f (patch)
treefeed0100fb0d864aceae84086027c89fe52bea94 /recipes-core
parent052b3e409eb36804ec4e77a42139ef0372142acd (diff)
downloadmeta-mlinux-1612656579381828fb1e7d0fc4df25e4968e177f.tar.gz
meta-mlinux-1612656579381828fb1e7d0fc4df25e4968e177f.tar.bz2
meta-mlinux-1612656579381828fb1e7d0fc4df25e4968e177f.zip
added missing index file
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/lighttpd/lighttpd/index.html.lighttpd1
-rw-r--r--recipes-core/lighttpd/lighttpd_1.4.48.bb21
2 files changed, 9 insertions, 13 deletions
diff --git a/recipes-core/lighttpd/lighttpd/index.html.lighttpd b/recipes-core/lighttpd/lighttpd/index.html.lighttpd
new file mode 100644
index 0000000..f5f1c37
--- /dev/null
+++ b/recipes-core/lighttpd/lighttpd/index.html.lighttpd
@@ -0,0 +1 @@
+<html><body><h1>It works!</h1></body></html>
diff --git a/recipes-core/lighttpd/lighttpd_1.4.48.bb b/recipes-core/lighttpd/lighttpd_1.4.48.bb
index 38341d6..1c2de95 100644
--- a/recipes-core/lighttpd/lighttpd_1.4.48.bb
+++ b/recipes-core/lighttpd/lighttpd_1.4.48.bb
@@ -24,6 +24,7 @@ RDEPENDS_${PN} += " openssl"
SRC_URI = "http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${PV}.tar.gz \
+ file://index.html.lighttpd \
file://lighttpd.conf \
file://lighttpd.init \
file://lighttpd.service \
@@ -49,32 +50,26 @@ EXTRA_OECONF = " \
--disable-static \
"
-inherit useradd update-rc.d autotools pkgconfig gettext systemd
+inherit update-rc.d autotools pkgconfig gettext systemd
INITSCRIPT_NAME = "lighttpd"
INITSCRIPT_PARAMS = "defaults 70"
-USERADD_PACKAGES = "${PN}"
-GROUPADD_PARAM_${PN} = "--system --gid 667 www"
-USERADD_PARAM_${PN} = "--system --gid 667 --uid 667 --groups 667 --no-create-home --home-dir /var/www --shell /bin/false --no-user-group www"
-
do_install_append() {
install -d ${D}${sysconfdir}/init.d ${D}${sysconfdir}/lighttpd.d ${D}/www/pages/dav
- install -d 0644 ${D}${sysconfdir}/ssl
- install -m 0755 --group www -d ${D}${localstatedir}/www
install -m 0755 ${WORKDIR}/lighttpd.init ${D}${sysconfdir}/init.d/lighttpd
- install -m 0644 --group www ${WORKDIR}/lighttpd.conf ${D}${sysconfdir}
-
- install -d ${D}${systemd_unitdir}/system
- install -m 0644 ${WORKDIR}/lighttpd.service ${D}${systemd_unitdir}/system
- sed -i -e 's,@SBINDIR@,${sbindir},g' \
+ install -m 0644 ${WORKDIR}/lighttpd.conf ${D}${sysconfdir}
+ install -m 0644 ${WORKDIR}/index.html.lighttpd ${D}/www/pages/index.html
+
+ install -d ${D}${systemd_unitdir}/system
+ install -m 0644 ${WORKDIR}/lighttpd.service ${D}${systemd_unitdir}/system
+ sed -i -e 's,@SBINDIR@,${sbindir},g' \
-e 's,@SYSCONFDIR@,${sysconfdir},g' \
-e 's,@BASE_BINDIR@,${base_bindir},g' \
${D}${systemd_unitdir}/system/lighttpd.service
#For FHS compliance, create symbolic links to /var/log and /var/tmp for logs and temporary data
ln -sf ${localstatedir}/log ${D}/www/logs
ln -sf ${localstatedir}/tmp ${D}/www/var
- ln -snf ../volatile/www/tmp ${D}${localstatedir}/www/tmp}
}
do_install_append_mtr() {