Skip to content

Commit

Permalink
Add ngx_mruby
Browse files Browse the repository at this point in the history
  • Loading branch information
hnakamur committed Nov 22, 2024
1 parent aa1bf0e commit 838d20e
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,6 @@
path = nginx-tests
url = https://github.com/hnakamur/nginx-tests
branch = add_freenginx_proxy_cache_age
[submodule "modules/ngx_mruby"]
path = modules/ngx_mruby
url = https://github.com/matsumotory/ngx_mruby
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ RUN apt-get update && \
libengine-pkcs11-openssl \
opensc \
uwsgi \
uwsgi-plugin-python3
uwsgi-plugin-python3 \
rake

# create symbolic links for nginx-tests
RUN mkdir -p /usr/local/lib/engines
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PKG_VERSION=1.27.2+mod.2
PKG_VERSION=1.27.2+mod.3
PKG_REL_PREFIX=1hn1
ifdef NO_CACHE
DOCKER_NO_CACHE=--no-cache
Expand Down
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
nginx (1.27.2+mod.3-1hn1DebRelDistrib) UNRELEASED; urgency=medium

* add module
* bed251036c0f273fb42fa9e84c00767b15983956 modules/ngx_mruby (v1.18.6-938-gbed2510)

-- Hiroaki Nakamura <[email protected]> Fri, 22 Nov 2024 22:41:52 +0900

nginx (1.27.2+mod.2-1hn1DebRelDistrib) UNRELEASED; urgency=medium

* openresty luajit v2.1-20241113
Expand Down
3 changes: 2 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ Build-Depends: debhelper (>= 9~),
libgeoip-dev,
libmhash-dev,
libmaxminddb-dev,
libperl-dev
libperl-dev,
rake
Standards-Version: 3.9.8.0
Homepage: http://nginx.org

Expand Down
6 changes: 6 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ config.env.%:
cp -Pa $(CURDIR)/ModSecurity-nginx $(BUILDDIR_$*)/
cp -Pa $(CURDIR)/njs $(BUILDDIR_$*)/
cp -Pa $(CURDIR)/lua-resty-openssl $(BUILDDIR_$*)/
cp -Pa $(CURDIR)/ngx_mruby $(BUILDDIR_$*)/
sed 's/@MRUBY_ROOT@//;s/@MRUBY_INCDIR@//;s/@MRUBY_LIBDIR@//' \
$(BUILDDIR_$*)/ngx_mruby/config.in > $(BUILDDIR_$*)/ngx_mruby/config
touch $@

config.status.nginx: config.env.nginx
Expand Down Expand Up @@ -124,6 +127,7 @@ config.status.nginx: config.env.nginx
--add-dynamic-module=./srcache-nginx-module \
--add-dynamic-module=./njs/nginx \
--add-dynamic-module=./ModSecurity-nginx \
--add-dynamic-module=./ngx_mruby \
--without-pcre2 \
--with-cc-opt="$(CFLAGS)" \
--with-ld-opt="$(LDFLAGS)"
Expand Down Expand Up @@ -197,6 +201,7 @@ config.status.nginx_debug: config.env.nginx_debug
--add-dynamic-module=./srcache-nginx-module \
--add-dynamic-module=./njs/nginx \
--add-dynamic-module=./ModSecurity-nginx \
--add-dynamic-module=./ngx_mruby \
--without-pcre2 \
--with-cc-opt="$(CFLAGS)" \
--with-ld-opt="$(LDFLAGS)" \
Expand All @@ -206,6 +211,7 @@ config.status.nginx_debug: config.env.nginx_debug
build-arch.%: config.status.%
dh_testdir
dh_prep
(cd $(BUILDDIR_$*)/ngx_mruby/mruby; make)
$(MAKE) -j$(NUMJOBS) -C $(BUILDDIR_$*) build

build-arch: build-arch.nginx build-arch.nginx_debug
Expand Down
1 change: 1 addition & 0 deletions modules/ngx_mruby
Submodule ngx_mruby added at bed251

0 comments on commit 838d20e

Please sign in to comment.