diff options
Diffstat (limited to 'meta-webserver/recipes-httpd/nginx/nginx.inc')
| -rw-r--r-- | meta-webserver/recipes-httpd/nginx/nginx.inc | 14 |
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 | ||
| 27 | inherit siteinfo update-rc.d useradd systemd | 27 | inherit siteinfo update-rc.d useradd systemd |
| 28 | 28 | ||
| 29 | SYSTEMD_SERVICE_${PN} = "nginx.service" | 29 | SYSTEMD_SERVICE:${PN} = "nginx.service" |
| 30 | 30 | ||
| 31 | CFLAGS_append = " -fPIE -pie" | 31 | CFLAGS:append = " -fPIE -pie" |
| 32 | CXXFLAGS_append = " -fPIE -pie" | 32 | CXXFLAGS:append = " -fPIE -pie" |
| 33 | 33 | ||
| 34 | NGINX_WWWDIR ?= "${localstatedir}/www/localhost" | 34 | NGINX_WWWDIR ?= "${localstatedir}/www/localhost" |
| 35 | NGINX_USER ?= "www" | 35 | NGINX_USER ?= "www" |
| @@ -143,7 +143,7 @@ do_install () { | |||
| 143 | rm -rf ${D}${localstatedir}/log/ | 143 | rm -rf ${D}${localstatedir}/log/ |
| 144 | } | 144 | } |
| 145 | 145 | ||
| 146 | pkg_postinst_${PN} () { | 146 | pkg_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 | ||
| 156 | FILES_${PN} += " \ | 156 | FILES:${PN} += " \ |
| 157 | ${localstatedir}/ \ | 157 | ${localstatedir}/ \ |
| 158 | ${systemd_unitdir}/system/nginx.service \ | 158 | ${systemd_unitdir}/system/nginx.service \ |
| 159 | " | 159 | " |
| 160 | 160 | ||
| 161 | CONFFILES_${PN} = " \ | 161 | CONFFILES:${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" | |||
| 174 | INITSCRIPT_PARAMS = "defaults 92 20" | 174 | INITSCRIPT_PARAMS = "defaults 92 20" |
| 175 | 175 | ||
| 176 | USERADD_PACKAGES = "${PN}" | 176 | USERADD_PACKAGES = "${PN}" |
| 177 | USERADD_PARAM_${PN} = " \ | 177 | USERADD_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 \ |
