summaryrefslogtreecommitdiffhomepage
path: root/pkg/deb/debian/rules.in
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2022-12-07 18:20:44 -0800
committerKonstantin Pavlov <thresh@nginx.com>2022-12-07 18:20:44 -0800
commit24e3f171029da265ee8cc20fe1a8846a0b49cb43 (patch)
treed492c3676d919379a1ddcc6adf70d0d2031dd71c /pkg/deb/debian/rules.in
parent11c66941ce9146ca85533e8a3169ef3941340896 (diff)
downloadunit-24e3f171029da265ee8cc20fe1a8846a0b49cb43.tar.gz
unit-24e3f171029da265ee8cc20fe1a8846a0b49cb43.tar.bz2
Packages: added njs support.
Diffstat (limited to '')
-rw-r--r--pkg/deb/debian/rules.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkg/deb/debian/rules.in b/pkg/deb/debian/rules.in
index d2e34796..23812926 100644
--- a/pkg/deb/debian/rules.in
+++ b/pkg/deb/debian/rules.in
@@ -20,7 +20,12 @@ BASEDIR = $(CURDIR)
DOTESTS = 0
-config.env.%:
+njs:
+ dh_testdir
+ cd pkg/contrib && make .njs
+ touch $@
+
+config.env.%: njs
dh_testdir
mkdir -p $(BUILDDIR_$*)
cp -Pa $(CURDIR)/auto $(BUILDDIR_$*)/
@@ -40,6 +45,7 @@ config.env.%:
configure.unit: config.env.unit
cd $(BUILDDIR_unit) && \
+ PKG_CONFIG_PATH=$(CURDIR)/pkg/contrib/njs/build \
CFLAGS= ./configure \
%%CONFIGURE_ARGS%% \
--modules=/usr/lib/unit/modules \
@@ -50,6 +56,7 @@ configure.unit: config.env.unit
configure.unit_debug: config.env.unit_debug
cd $(BUILDDIR_unit_debug) && \
+ PKG_CONFIG_PATH=$(CURDIR)/pkg/contrib/njs/build \
CFLAGS= ./configure \
%%CONFIGURE_ARGS%% \
--modules=/usr/lib/unit/debug-modules \