summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-httpd
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2021-07-29 17:04:53 +0200
committerKhem Raj <raj.khem@gmail.com>2021-08-03 10:21:25 -0700
commitc61dc077bbd81260e4f167fa2251643ba0ba6974 (patch)
tree66c3243f8f64ae60f66f70a16e8128c247254a65 /meta-webserver/recipes-httpd
parentc5f7cfb8db54cfa4257797db5bd87828dea43296 (diff)
downloadmeta-openembedded-c61dc077bbd81260e4f167fa2251643ba0ba6974.tar.gz
Convert to new override syntax
This is the result of automated script (0.9.1) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-webserver/recipes-httpd')
-rw-r--r--meta-webserver/recipes-httpd/apache-mod/apache-websocket_git.bb6
-rw-r--r--meta-webserver/recipes-httpd/apache2/apache2_2.4.48.bb44
-rw-r--r--meta-webserver/recipes-httpd/cherokee/cherokee_git.bb24
-rw-r--r--meta-webserver/recipes-httpd/hiawatha/hiawatha_10.12.bb8
-rw-r--r--meta-webserver/recipes-httpd/monkey/monkey_1.6.9.bb12
-rw-r--r--meta-webserver/recipes-httpd/nginx/nginx.inc14
-rw-r--r--meta-webserver/recipes-httpd/sthttpd/sthttpd_2.27.1.bb12
7 files changed, 60 insertions, 60 deletions
diff --git a/meta-webserver/recipes-httpd/apache-mod/apache-websocket_git.bb b/meta-webserver/recipes-httpd/apache-mod/apache-websocket_git.bb
index 0ef2bd7f45..884d467eec 100644
--- a/meta-webserver/recipes-httpd/apache-mod/apache-websocket_git.bb
+++ b/meta-webserver/recipes-httpd/apache-mod/apache-websocket_git.bb
@@ -7,7 +7,7 @@ LICENSE = "Apache-2.0"
7inherit autotools-brokensep pkgconfig 7inherit autotools-brokensep pkgconfig
8 8
9DEPENDS = "apache2 apache2-native pbzip2-native" 9DEPENDS = "apache2 apache2-native pbzip2-native"
10RDEPENDS_${PN} += "apache2" 10RDEPENDS:${PN} += "apache2"
11 11
12# Original (github.com/disconnect/apache-websocket) is dead since 2012, the 12# Original (github.com/disconnect/apache-websocket) is dead since 2012, the
13# fork contains patches from the modules ML and fixes CVE compliance issues 13# fork contains patches from the modules ML and fixes CVE compliance issues
@@ -29,5 +29,5 @@ do_install() {
29 install -m 755 ${B}/.libs/mod_websocket.so ${D}${libexecdir}/apache2/modules 29 install -m 755 ${B}/.libs/mod_websocket.so ${D}${libexecdir}/apache2/modules
30} 30}
31 31
32FILES_${PN} += " ${libexecdir}/apache2/modules/* " 32FILES:${PN} += " ${libexecdir}/apache2/modules/* "
33FILES_${PN}-dbg += " ${libexecdir}/apache2/modules/.debug/* " 33FILES:${PN}-dbg += " ${libexecdir}/apache2/modules/.debug/* "
diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.48.bb b/meta-webserver/recipes-httpd/apache2/apache2_2.4.48.bb
index 3a851167cf..1ac4fcbf26 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.48.bb
+++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.48.bb
@@ -17,7 +17,7 @@ SRC_URI = "${APACHE_MIRROR}/httpd/httpd-${PV}.tar.bz2 \
17 file://0001-support-apxs.in-force-destdir-to-be-empty-string.patch \ 17 file://0001-support-apxs.in-force-destdir-to-be-empty-string.patch \
18 " 18 "
19 19
20SRC_URI_append_class-target = " \ 20SRC_URI:append:class-target = " \
21 file://0008-apache2-do-not-use-relative-path-for-gen_test_char.patch \ 21 file://0008-apache2-do-not-use-relative-path-for-gen_test_char.patch \
22 file://init \ 22 file://init \
23 file://apache2-volatile.conf \ 23 file://apache2-volatile.conf \
@@ -44,9 +44,9 @@ PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,libselin
44PACKAGECONFIG[openldap] = "--enable-ldap --enable-authnz-ldap,--disable-ldap --disable-authnz-ldap,openldap" 44PACKAGECONFIG[openldap] = "--enable-ldap --enable-authnz-ldap,--disable-ldap --disable-authnz-ldap,openldap"
45PACKAGECONFIG[zlib] = "--enable-deflate,,zlib,zlib" 45PACKAGECONFIG[zlib] = "--enable-deflate,,zlib,zlib"
46 46
47CFLAGS_append = " -DPATH_MAX=4096" 47CFLAGS:append = " -DPATH_MAX=4096"
48 48
49EXTRA_OECONF_class-target = "\ 49EXTRA_OECONF:class-target = "\
50 --enable-layout=Debian \ 50 --enable-layout=Debian \
51 --prefix=${base_prefix} \ 51 --prefix=${base_prefix} \
52 --exec_prefix=${exec_prefix} \ 52 --exec_prefix=${exec_prefix} \
@@ -68,7 +68,7 @@ EXTRA_OECONF_class-target = "\
68 ac_cv_have_threadsafe_pollset=no \ 68 ac_cv_have_threadsafe_pollset=no \
69 " 69 "
70 70
71EXTRA_OECONF_class-native = "\ 71EXTRA_OECONF:class-native = "\
72 --prefix=${prefix} \ 72 --prefix=${prefix} \
73 --includedir=${includedir}/${BPN} \ 73 --includedir=${includedir}/${BPN} \
74 --sysconfdir=${sysconfdir}/${BPN} \ 74 --sysconfdir=${sysconfdir}/${BPN} \
@@ -78,11 +78,11 @@ EXTRA_OECONF_class-native = "\
78 --localstatedir=${localstatedir} \ 78 --localstatedir=${localstatedir} \
79 " 79 "
80 80
81do_configure_prepend() { 81do_configure:prepend() {
82 sed -i -e 's:$''{prefix}/usr/lib/cgi-bin:$''{libexecdir}/cgi-bin:g' ${S}/config.layout 82 sed -i -e 's:$''{prefix}/usr/lib/cgi-bin:$''{libexecdir}/cgi-bin:g' ${S}/config.layout
83} 83}
84 84
85do_install_append_class-target() { 85do_install:append:class-target() {
86 install -d ${D}/${sysconfdir}/init.d 86 install -d ${D}/${sysconfdir}/init.d
87 87
88 cat ${WORKDIR}/init | \ 88 cat ${WORKDIR}/init | \
@@ -144,12 +144,12 @@ do_install_append_class-target() {
144 chown -R root:root ${D} 144 chown -R root:root ${D}
145} 145}
146 146
147do_install_append_class-native() { 147do_install:append:class-native() {
148 install -d ${D}${bindir} ${D}${libdir} 148 install -d ${D}${bindir} ${D}${libdir}
149 install -m 755 server/gen_test_char ${D}${bindir} 149 install -m 755 server/gen_test_char ${D}${bindir}
150} 150}
151 151
152SYSROOT_PREPROCESS_FUNCS_append_class-target = " apache_sysroot_preprocess" 152SYSROOT_PREPROCESS_FUNCS:append:class-target = " apache_sysroot_preprocess"
153 153
154apache_sysroot_preprocess() { 154apache_sysroot_preprocess() {
155 install -d ${SYSROOT_DESTDIR}${bindir_crossscripts} 155 install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}
@@ -172,15 +172,15 @@ apache_sysroot_preprocess() {
172INITSCRIPT_NAME = "apache2" 172INITSCRIPT_NAME = "apache2"
173INITSCRIPT_PARAMS = "defaults 91 20" 173INITSCRIPT_PARAMS = "defaults 91 20"
174 174
175SYSTEMD_SERVICE_${PN} = "apache2.service" 175SYSTEMD_SERVICE:${PN} = "apache2.service"
176SYSTEMD_AUTO_ENABLE_${PN} = "enable" 176SYSTEMD_AUTO_ENABLE:${PN} = "enable"
177 177
178ALTERNATIVE_${PN}-doc = "htpasswd.1" 178ALTERNATIVE:${PN}-doc = "htpasswd.1"
179ALTERNATIVE_LINK_NAME[htpasswd.1] = "${mandir}/man1/htpasswd.1" 179ALTERNATIVE_LINK_NAME[htpasswd.1] = "${mandir}/man1/htpasswd.1"
180 180
181PACKAGES = "${PN}-scripts ${PN}-doc ${PN}-dev ${PN}-dbg ${PN}" 181PACKAGES = "${PN}-scripts ${PN}-doc ${PN}-dev ${PN}-dbg ${PN}"
182 182
183CONFFILES_${PN} = "${sysconfdir}/${BPN}/httpd.conf \ 183CONFFILES:${PN} = "${sysconfdir}/${BPN}/httpd.conf \
184 ${sysconfdir}/${BPN}/magic \ 184 ${sysconfdir}/${BPN}/magic \
185 ${sysconfdir}/${BPN}/mime.types \ 185 ${sysconfdir}/${BPN}/mime.types \
186 ${sysconfdir}/${BPN}/extra/*" 186 ${sysconfdir}/${BPN}/extra/*"
@@ -188,7 +188,7 @@ CONFFILES_${PN} = "${sysconfdir}/${BPN}/httpd.conf \
188# We override here rather than append so that .so links are 188# We override here rather than append so that .so links are
189# included in the runtime package rather than here (-dev) 189# included in the runtime package rather than here (-dev)
190# and to get build, icons, error into the -dev package 190# and to get build, icons, error into the -dev package
191FILES_${PN}-dev = "${datadir}/${BPN}/build \ 191FILES:${PN}-dev = "${datadir}/${BPN}/build \
192 ${datadir}/${BPN}/icons \ 192 ${datadir}/${BPN}/icons \
193 ${datadir}/${BPN}/error \ 193 ${datadir}/${BPN}/error \
194 ${includedir}/${BPN} \ 194 ${includedir}/${BPN} \
@@ -196,26 +196,26 @@ FILES_${PN}-dev = "${datadir}/${BPN}/build \
196 " 196 "
197 197
198# Add the manual to -doc 198# Add the manual to -doc
199FILES_${PN}-doc += " ${datadir}/${BPN}/manual" 199FILES:${PN}-doc += " ${datadir}/${BPN}/manual"
200 200
201FILES_${PN}-scripts += "${bindir}/dbmmanage" 201FILES:${PN}-scripts += "${bindir}/dbmmanage"
202 202
203# Override this too - here is the default, less datadir 203# Override this too - here is the default, less datadir
204FILES_${PN} = "${bindir} ${sbindir} ${libexecdir} ${libdir} \ 204FILES:${PN} = "${bindir} ${sbindir} ${libexecdir} ${libdir} \
205 ${sysconfdir} ${libdir}/${BPN}" 205 ${sysconfdir} ${libdir}/${BPN}"
206 206
207# We want htdocs and cgi-bin to go with the binary 207# We want htdocs and cgi-bin to go with the binary
208FILES_${PN} += "${datadir}/${BPN}/ ${libdir}/cgi-bin" 208FILES:${PN} += "${datadir}/${BPN}/ ${libdir}/cgi-bin"
209 209
210FILES_${PN}-dbg += "${libdir}/${BPN}/modules/.debug" 210FILES:${PN}-dbg += "${libdir}/${BPN}/modules/.debug"
211 211
212RDEPENDS_${PN} += "openssl libgcc" 212RDEPENDS:${PN} += "openssl libgcc"
213RDEPENDS_${PN}-scripts += "perl ${PN}" 213RDEPENDS:${PN}-scripts += "perl ${PN}"
214RDEPENDS_${PN}-dev = "perl" 214RDEPENDS:${PN}-dev = "perl"
215 215
216BBCLASSEXTEND = "native" 216BBCLASSEXTEND = "native"
217 217
218pkg_postinst_${PN}() { 218pkg_postinst:${PN}() {
219 if [ -z "$D" ]; then 219 if [ -z "$D" ]; then
220 if type systemd-tmpfiles >/dev/null; then 220 if type systemd-tmpfiles >/dev/null; then
221 systemd-tmpfiles --create 221 systemd-tmpfiles --create
diff --git a/meta-webserver/recipes-httpd/cherokee/cherokee_git.bb b/meta-webserver/recipes-httpd/cherokee/cherokee_git.bb
index 7424467946..7077d76d7a 100644
--- a/meta-webserver/recipes-httpd/cherokee/cherokee_git.bb
+++ b/meta-webserver/recipes-httpd/cherokee/cherokee_git.bb
@@ -1,5 +1,5 @@
1SUMMARY = "Cherokee Web Server fast and secure" 1SUMMARY = "Cherokee Web Server fast and secure"
2SUMMARY_cget = "Small downloader based in the Cherokee client library" 2SUMMARY:cget = "Small downloader based in the Cherokee client library"
3HOMEPAGE = "http://www.cherokee-project.com/" 3HOMEPAGE = "http://www.cherokee-project.com/"
4SECTION = "network" 4SECTION = "network"
5LICENSE = "GPLv2" 5LICENSE = "GPLv2"
@@ -34,7 +34,7 @@ EXTRA_OECONF = "--disable-static \
34 --with-wwwroot=${localstatedir}/www/cherokee \ 34 --with-wwwroot=${localstatedir}/www/cherokee \
35" 35"
36 36
37do_install_append () { 37do_install:append () {
38 install -m 0755 -d ${D}${sysconfdir}/init.d 38 install -m 0755 -d ${D}${sysconfdir}/init.d
39 install -m 755 ${WORKDIR}/cherokee.init ${D}${sysconfdir}/init.d/cherokee 39 install -m 755 ${WORKDIR}/cherokee.init ${D}${sysconfdir}/init.d/cherokee
40 40
@@ -50,15 +50,15 @@ do_install_append () {
50# Put -dev near the front so we can move the .la files into it with a wildcard 50# Put -dev near the front so we can move the .la files into it with a wildcard
51PACKAGES =+ "libcherokee-server libcherokee-client libcherokee-base cget" 51PACKAGES =+ "libcherokee-server libcherokee-client libcherokee-base cget"
52 52
53FILES_cget = "${bindir}/cget" 53FILES:cget = "${bindir}/cget"
54FILES_libcherokee-server = "${libdir}/libcherokee-server${SOLIBS}" 54FILES:libcherokee-server = "${libdir}/libcherokee-server${SOLIBS}"
55FILES_libcherokee-client = "${libdir}/libcherokee-client${SOLIBS}" 55FILES:libcherokee-client = "${libdir}/libcherokee-client${SOLIBS}"
56FILES_libcherokee-base = "${libdir}/libcherokee-base${SOLIBS}" 56FILES:libcherokee-base = "${libdir}/libcherokee-base${SOLIBS}"
57 57
58# Pack the htdocs 58# Pack the htdocs
59FILES_${PN} += "${localstatedir}/www/cherokee" 59FILES:${PN} += "${localstatedir}/www/cherokee"
60 60
61CONFFILES_${PN} = " \ 61CONFFILES:${PN} = " \
62 ${sysconfdir}/cherokee/cherokee.conf \ 62 ${sysconfdir}/cherokee/cherokee.conf \
63 ${sysconfdir}/init.d/cherokee \ 63 ${sysconfdir}/init.d/cherokee \
64" 64"
@@ -66,10 +66,10 @@ CONFFILES_${PN} = " \
66INITSCRIPT_NAME = "cherokee" 66INITSCRIPT_NAME = "cherokee"
67INITSCRIPT_PARAMS = "defaults 91 91" 67INITSCRIPT_PARAMS = "defaults 91 91"
68 68
69RPROVIDES_${PN} += "${PN}-systemd" 69RPROVIDES:${PN} += "${PN}-systemd"
70RREPLACES_${PN} += "${PN}-systemd" 70RREPLACES:${PN} += "${PN}-systemd"
71RCONFLICTS_${PN} += "${PN}-systemd" 71RCONFLICTS:${PN} += "${PN}-systemd"
72SYSTEMD_SERVICE_${PN} = "cherokee.service" 72SYSTEMD_SERVICE:${PN} = "cherokee.service"
73 73
74python() { 74python() {
75 if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split(): 75 if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split():
diff --git a/meta-webserver/recipes-httpd/hiawatha/hiawatha_10.12.bb b/meta-webserver/recipes-httpd/hiawatha/hiawatha_10.12.bb
index 4b902bfda6..f66ec7d736 100644
--- a/meta-webserver/recipes-httpd/hiawatha/hiawatha_10.12.bb
+++ b/meta-webserver/recipes-httpd/hiawatha/hiawatha_10.12.bb
@@ -16,7 +16,7 @@ SRC_URI[sha256sum] = "61bf41146c51244769984135529fcffd0f6cb92be18dc12d460effc42f
16INITSCRIPT_NAME = "hiawatha" 16INITSCRIPT_NAME = "hiawatha"
17INITSCRIPT_PARAMS = "defaults 70" 17INITSCRIPT_PARAMS = "defaults 70"
18 18
19SYSTEMD_SERVICE_${PN} = "hiawatha.service" 19SYSTEMD_SERVICE:${PN} = "hiawatha.service"
20 20
21inherit cmake update-rc.d systemd 21inherit cmake update-rc.d systemd
22 22
@@ -35,7 +35,7 @@ EXTRA_OECMAKE = " -DENABLE_IPV6=OFF \
35 -DCMAKE_INSTALL_LIBDIR=${libdir} \ 35 -DCMAKE_INSTALL_LIBDIR=${libdir} \
36 -DCMAKE_INSTALL_FULL_LOCALSTATEDIR=${localstatedir}" 36 -DCMAKE_INSTALL_FULL_LOCALSTATEDIR=${localstatedir}"
37 37
38do_install_append() { 38do_install:append() {
39 # Copy over init script and sed in the correct sbin path 39 # Copy over init script and sed in the correct sbin path
40 sed -i 's,sed_sbin_path,${sbindir},' ${WORKDIR}/hiawatha-init 40 sed -i 's,sed_sbin_path,${sbindir},' ${WORKDIR}/hiawatha-init
41 mkdir -p ${D}${sysconfdir}/init.d 41 mkdir -p ${D}${sysconfdir}/init.d
@@ -53,7 +53,7 @@ do_install_append() {
53 rmdir --ignore-fail-on-non-empty "${D}${localstatedir}" "${D}${localstatedir}/run" 53 rmdir --ignore-fail-on-non-empty "${D}${localstatedir}" "${D}${localstatedir}/run"
54} 54}
55 55
56CONFFILES_${PN} = " \ 56CONFFILES:${PN} = " \
57 ${sysconfdir}/hiawatha/cgi-wrapper.conf \ 57 ${sysconfdir}/hiawatha/cgi-wrapper.conf \
58 ${sysconfdir}/hiawatha/hiawatha.conf \ 58 ${sysconfdir}/hiawatha/hiawatha.conf \
59 ${sysconfdir}/hiawatha/index.xslt \ 59 ${sysconfdir}/hiawatha/index.xslt \
@@ -61,4 +61,4 @@ CONFFILES_${PN} = " \
61 ${sysconfdir}/hiawatha/php-fcgi.conf \ 61 ${sysconfdir}/hiawatha/php-fcgi.conf \
62" 62"
63 63
64FILES_${PN}-dev = "${libdir}/hiawatha/*${SOLIBSDEV}" 64FILES:${PN}-dev = "${libdir}/hiawatha/*${SOLIBSDEV}"
diff --git a/meta-webserver/recipes-httpd/monkey/monkey_1.6.9.bb b/meta-webserver/recipes-httpd/monkey/monkey_1.6.9.bb
index 698f8608fd..1386770c8a 100644
--- a/meta-webserver/recipes-httpd/monkey/monkey_1.6.9.bb
+++ b/meta-webserver/recipes-httpd/monkey/monkey_1.6.9.bb
@@ -26,7 +26,7 @@ EXTRA_OECMAKE = "-DINSTALL_LOGDIR=${localstatedir}/log/monkey/ \
26 -DWITH_SYSTEM_MALLOC=1 \ 26 -DWITH_SYSTEM_MALLOC=1 \
27 " 27 "
28 28
29EXTRA_OECMAKE_append_libc-musl = " -DWITH_MUSL=1 " 29EXTRA_OECMAKE:append:libc-musl = " -DWITH_MUSL=1 "
30 30
31# GCC-10+ defaults to -fno-common 31# GCC-10+ defaults to -fno-common
32CFLAGS += "-fcommon" 32CFLAGS += "-fcommon"
@@ -37,7 +37,7 @@ inherit cmake pkgconfig update-rc.d systemd
37 37
38OECMAKE_GENERATOR = "Unix Makefiles" 38OECMAKE_GENERATOR = "Unix Makefiles"
39 39
40do_install_append() { 40do_install:append() {
41 rm -rf ${D}/run 41 rm -rf ${D}/run
42 rm -rf ${D}${localstatedir}/run 42 rm -rf ${D}${localstatedir}/run
43 install -Dm 0755 ${WORKDIR}/monkey.init ${D}${sysconfdir}/init.d/monkey 43 install -Dm 0755 ${WORKDIR}/monkey.init ${D}${sysconfdir}/init.d/monkey
@@ -50,16 +50,16 @@ do_install_append() {
50INITSCRIPT_NAME = "monkey" 50INITSCRIPT_NAME = "monkey"
51INITSCRIPT_PARAMS = "defaults 70" 51INITSCRIPT_PARAMS = "defaults 70"
52 52
53SYSTEMD_SERVICE_${PN} = "monkey.service" 53SYSTEMD_SERVICE:${PN} = "monkey.service"
54 54
55PACKAGES += "${PN}-plugins" 55PACKAGES += "${PN}-plugins"
56 56
57FILES_${PN}-plugins = "${libdir}/monkey-*.so" 57FILES:${PN}-plugins = "${libdir}/monkey-*.so"
58 58
59FILES_${PN} += "${localstatedir}/www/monkey/ /run" 59FILES:${PN} += "${localstatedir}/www/monkey/ /run"
60 60
61 61
62CONFFILES_${PN} = "${sysconfdir}/monkey/monkey.conf \ 62CONFFILES:${PN} = "${sysconfdir}/monkey/monkey.conf \
63 ${sysconfdir}/monkey/sites/default \ 63 ${sysconfdir}/monkey/sites/default \
64 ${sysconfdir}/monkey/monkey.mime \ 64 ${sysconfdir}/monkey/monkey.mime \
65 ${sysconfdir}/monkey/plugins.load \ 65 ${sysconfdir}/monkey/plugins.load \
diff --git a/meta-webserver/recipes-httpd/nginx/nginx.inc b/meta-webserver/recipes-httpd/nginx/nginx.inc
index de080a2b01..ab37fa3146 100644
--- a/meta-webserver/recipes-httpd/nginx/nginx.inc
+++ b/meta-webserver/recipes-httpd/nginx/nginx.inc
@@ -26,10 +26,10 @@ SRC_URI = " \
26 26
27inherit siteinfo update-rc.d useradd systemd 27inherit siteinfo update-rc.d useradd systemd
28 28
29SYSTEMD_SERVICE_${PN} = "nginx.service" 29SYSTEMD_SERVICE:${PN} = "nginx.service"
30 30
31CFLAGS_append = " -fPIE -pie" 31CFLAGS:append = " -fPIE -pie"
32CXXFLAGS_append = " -fPIE -pie" 32CXXFLAGS:append = " -fPIE -pie"
33 33
34NGINX_WWWDIR ?= "${localstatedir}/www/localhost" 34NGINX_WWWDIR ?= "${localstatedir}/www/localhost"
35NGINX_USER ?= "www" 35NGINX_USER ?= "www"
@@ -143,7 +143,7 @@ do_install () {
143 rm -rf ${D}${localstatedir}/log/ 143 rm -rf ${D}${localstatedir}/log/
144} 144}
145 145
146pkg_postinst_${PN} () { 146pkg_postinst:${PN} () {
147 if [ -z "$D" ]; then 147 if [ -z "$D" ]; then
148 if type systemd-tmpfiles >/dev/null; then 148 if type systemd-tmpfiles >/dev/null; then
149 systemd-tmpfiles --create 149 systemd-tmpfiles --create
@@ -153,12 +153,12 @@ pkg_postinst_${PN} () {
153 fi 153 fi
154} 154}
155 155
156FILES_${PN} += " \ 156FILES:${PN} += " \
157 ${localstatedir}/ \ 157 ${localstatedir}/ \
158 ${systemd_unitdir}/system/nginx.service \ 158 ${systemd_unitdir}/system/nginx.service \
159" 159"
160 160
161CONFFILES_${PN} = " \ 161CONFFILES:${PN} = " \
162 ${sysconfdir}/nginx/nginx.conf \ 162 ${sysconfdir}/nginx/nginx.conf \
163 ${sysconfdir}/nginx/fastcgi.conf \ 163 ${sysconfdir}/nginx/fastcgi.conf \
164 ${sysconfdir}/nginx/fastcgi_params \ 164 ${sysconfdir}/nginx/fastcgi_params \
@@ -174,7 +174,7 @@ INITSCRIPT_NAME = "nginx"
174INITSCRIPT_PARAMS = "defaults 92 20" 174INITSCRIPT_PARAMS = "defaults 92 20"
175 175
176USERADD_PACKAGES = "${PN}" 176USERADD_PACKAGES = "${PN}"
177USERADD_PARAM_${PN} = " \ 177USERADD_PARAM:${PN} = " \
178 --system --no-create-home \ 178 --system --no-create-home \
179 --home ${NGINX_WWWDIR} \ 179 --home ${NGINX_WWWDIR} \
180 --groups www-data \ 180 --groups www-data \
diff --git a/meta-webserver/recipes-httpd/sthttpd/sthttpd_2.27.1.bb b/meta-webserver/recipes-httpd/sthttpd/sthttpd_2.27.1.bb
index 560dd9b6e4..8a30b74c81 100644
--- a/meta-webserver/recipes-httpd/sthttpd/sthttpd_2.27.1.bb
+++ b/meta-webserver/recipes-httpd/sthttpd/sthttpd_2.27.1.bb
@@ -20,7 +20,7 @@ S = "${WORKDIR}/git"
20inherit autotools update-rc.d systemd update-alternatives 20inherit autotools update-rc.d systemd update-alternatives
21 21
22ALTERNATIVE_PRIORITY = "100" 22ALTERNATIVE_PRIORITY = "100"
23ALTERNATIVE_${PN}-doc = "htpasswd.1" 23ALTERNATIVE:${PN}-doc = "htpasswd.1"
24ALTERNATIVE_LINK_NAME[htpasswd.1] = "${mandir}/man1/htpasswd.1" 24ALTERNATIVE_LINK_NAME[htpasswd.1] = "${mandir}/man1/htpasswd.1"
25 25
26SRV_DIR ?= "${servicedir}/www" 26SRV_DIR ?= "${servicedir}/www"
@@ -29,12 +29,12 @@ SRV_DIR ?= "${servicedir}/www"
29# but ${SRV_DIR} is not installed chgrp'd to the group by default. 29# but ${SRV_DIR} is not installed chgrp'd to the group by default.
30WEBGROUP ?= "www-data" 30WEBGROUP ?= "www-data"
31 31
32do_configure_prepend () { 32do_configure:prepend () {
33 export WEBDIR=${SRV_DIR} 33 export WEBDIR=${SRV_DIR}
34 export WEBGROUP=${WEBGROUP} 34 export WEBGROUP=${WEBGROUP}
35} 35}
36 36
37do_install_append () { 37do_install:append () {
38 install -d ${D}${sysconfdir}/init.d 38 install -d ${D}${sysconfdir}/init.d
39 install -c -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/thttpd 39 install -c -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/thttpd
40 install -c -m 755 ${WORKDIR}/thttpd.conf ${D}${sysconfdir} 40 install -c -m 755 ${WORKDIR}/thttpd.conf ${D}${sysconfdir}
@@ -52,7 +52,7 @@ do_install_append () {
52INITSCRIPT_NAME = "thttpd" 52INITSCRIPT_NAME = "thttpd"
53INITSCRIPT_PARAMS = "defaults" 53INITSCRIPT_PARAMS = "defaults"
54 54
55SYSTEMD_SERVICE_${PN} = "thttpd.service" 55SYSTEMD_SERVICE:${PN} = "thttpd.service"
56 56
57FILES_${PN} += "${SRV_DIR}" 57FILES:${PN} += "${SRV_DIR}"
58FILES_${PN}-dbg += "${SRV_DIR}/cgi-bin/.debug" 58FILES:${PN}-dbg += "${SRV_DIR}/cgi-bin/.debug"