Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion build/nginx/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ DESC="nginx is a high-performance HTTP(S) server and reverse proxy"

# Brotli source from https://github.com/google/ngx_brotli
BROTLIVER=1.0.0rc
# Acme source from https://github.com/nginx/nginx-acme
ACMEVER=0.3.1

set_arch 64
set_clangver
Expand All @@ -38,6 +40,7 @@ CONFPATH=/etc$PREFIX
LOGPATH=/var/log$PREFIX
VARPATH=/var$PREFIX
RUNPATH=$VARPATH/run
export NGX_ACME_STATE_PREFIX=$VARPATH/acmecache

BUILD_DEPENDS_IPS="library/security/openssl library/pcre2"
RUN_DEPENDS_IPS="ooce/server/nginx-common"
Expand All @@ -52,6 +55,7 @@ XFORM_ARGS="
-DsVERSION=
-DDsVERSION=
-DBROTLI=$BROTLIVER
-DACME=$ACMEVER
"

CONFIGURE_OPTS[amd64]=
Expand Down Expand Up @@ -88,9 +92,9 @@ CONFIGURE_OPTS="
--http-uwsgi-temp-path=/tmp/.nginx/uwsgi
--http-scgi-temp-path=/tmp/.nginx/scgi
--add-dynamic-module=../ngx_brotli-$BROTLIVER
--add-dynamic-module=../nginx-acme-$ACMEVER
"


LDFLAGS+=" -L$PREFIX/lib/amd64 -R$PREFIX/lib/amd64"

copy_man_page() {
Expand All @@ -106,6 +110,7 @@ init
download_source $PROG $PROG $VER
patch_source
BUILDDIR=ngx_brotli-$BROTLIVER download_source $PROG/brotli v$BROTLIVER
BUILDDIR=nginx-acme-$ACMEVER download_source $PROG/acme nginx-acme $ACMEVER
prep_build autoconf-like
build
copy_man_page
Expand Down
1 change: 1 addition & 0 deletions build/nginx/files/ctf.skip
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
modules/ngx_http_acme_module.so
3 changes: 3 additions & 0 deletions build/nginx/files/soname.ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
opt/ooce/nginx/modules/ngx_http_brotli_filter_module.so
opt/ooce/nginx/modules/ngx_http_brotli_static_module.so
opt/ooce/nginx/modules/ngx_http_acme_module.so
5 changes: 4 additions & 1 deletion build/nginx/local.mog
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
# Copyright 2022 OmniOS Community Edition (OmniOSce) Association.
# Copyright 2025 OmniOS Community Edition (OmniOSce) Association.

<transform file path=etc/$(PREFIX)/ -> set preserve renamenew>
<transform dir path=var/$(OPREFIX)/$(PROG) -> set owner $(PROG)>
<transform dir path=var/log/$(OPREFIX)/$(PROG) -> set owner $(PROG)>
<transform file path=$(PREFIX)/sbin/ \
-> set restart_fmri svc:/network/http:$(PROG)$(sVERSION)>

dir path=var/$(OPREFIX)/$(PROG)/acmecache owner=$(PROG) group=$(PROG) mode=0700

license LICENSE license=simplified-BSD
license ../ngx_brotli-$(BROTLI)/LICENSE license=simplified-BSD/ngx_brotli
license ../nginx-acme-$(ACME)/LICENSE license=Apache2/nginx_acme

<include mediated-binlink.mog>
<include mediated-manlink.mog>
Expand Down