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-07-20 16:52:54 -0500
commitcf0706e9609521074231a56c9d30e18b0fd4d45a (patch)
tree25cf0e14f66c5fca1cfe41b31bf862d60a36cf12 /recipes-core
parent79eba5273a45b5dbf5865d2e74988e8a12f433b4 (diff)
downloadmeta-mlinux-cf0706e9609521074231a56c9d30e18b0fd4d45a.tar.gz
meta-mlinux-cf0706e9609521074231a56c9d30e18b0fd4d45a.tar.bz2
meta-mlinux-cf0706e9609521074231a56c9d30e18b0fd4d45a.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() {