summaryrefslogtreecommitdiffhomepage
path: root/pkg/deb/debian
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
parent11c66941ce9146ca85533e8a3169ef3941340896 (diff)
downloadunit-24e3f171029da265ee8cc20fe1a8846a0b49cb43.tar.gz
unit-24e3f171029da265ee8cc20fe1a8846a0b49cb43.tar.bz2
Packages: added njs support.
Diffstat (limited to 'pkg/deb/debian')
-rw-r--r--pkg/deb/debian/control.in3
-rw-r--r--pkg/deb/debian/rules.in9
2 files changed, 10 insertions, 2 deletions
diff --git a/pkg/deb/debian/control.in b/pkg/deb/debian/control.in
index acf834bc..579f41e3 100644
--- a/pkg/deb/debian/control.in
+++ b/pkg/deb/debian/control.in
@@ -5,7 +5,8 @@ Maintainer: %%PACKAGE_VENDOR%%
Build-Depends: debhelper (>= 11),
linux-libc-dev,
libssl-dev,
- libpcre2-dev
+ libpcre2-dev,
+ pkg-config
Standards-Version: 4.1.4
Homepage: https://unit.nginx.org
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 \