summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-httpd/nginx/nginx.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-webserver/recipes-httpd/nginx/nginx.inc')
-rw-r--r--meta-webserver/recipes-httpd/nginx/nginx.inc14
1 files changed, 7 insertions, 7 deletions
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 \