2023-02-23 17:38:24 +03:00
|
|
|
distributable:
|
2023-10-02 03:41:57 +03:00
|
|
|
url: https://nginx.org/download/nginx-{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
2023-02-23 17:38:24 +03:00
|
|
|
|
|
|
|
versions:
|
2023-10-02 03:41:57 +03:00
|
|
|
github: nginx/nginx/tags # reads github tags from github
|
2023-02-23 17:38:24 +03:00
|
|
|
strip: /^release-/
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
pcre.org: 8.45 # switch to pcre.org/pcre2 once it's available
|
|
|
|
zlib.net: ^1.2.13
|
|
|
|
openssl.org: ^1.1.1k
|
|
|
|
|
|
|
|
build:
|
|
|
|
script: |
|
|
|
|
./configure $ARGS
|
|
|
|
make --jobs {{ hw.concurrency }}
|
|
|
|
make install
|
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- --prefix={{prefix}}
|
|
|
|
- --with-http_ssl_module
|
|
|
|
- --with-stream
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- sbin/nginx
|
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
sed -i.bak -e 's/80/8080/g' {{prefix}}/conf/nginx.conf
|
|
|
|
nginx -p {{prefix}} -c {{prefix}}/conf/nginx.conf -t
|