-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdpkg-buildpackage-rules
47 lines (40 loc) · 1.5 KB
/
dpkg-buildpackage-rules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/make -f
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
export NO_PKG_MANGLE=1
export QA_RPATHS=$[ 0x0002 ]
export NJBS = `nproc`
DESTDIR = $(CURDIR)/debian/tmp
%:
dh $@ --parallel --with autotools-dev,systemd
override_dh_auto_configure:
./configure \
--with-cc-opt="-DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/zlib/include -I/usr/local/openresty/pcre/include -I/usr/local/openresty/openssl111/include" \
--with-ld-opt="-L/usr/local/openresty/zlib/lib -L/usr/local/openresty/pcre/lib -L/usr/local/openresty/openssl111/lib -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl111/lib" \
--with-pcre-jit \
--without-http_rds_json_module \
--without-http_rds_csv_module \
--without-lua_rds_parser \
--without-http_scgi_module \
--without-http_uwsgi_module \
--without-http_grpc_module \
--without-http_fastcgi_module \
--with-http_realip_module \
--with-http_gzip_static_module \
--with-http_sub_module \
--with-http_gunzip_module \
--with-http_geoip_module \
--with-http_ssl_module \
--with-threads \
--with-luajit-xcflags='-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT' \
-j$(NJBS)
override_dh_usrlocal:
override_dh_auto_install:
dh_auto_install
rm -rf $(DESTDIR)/usr/local/openresty/luajit/share/man
rm -rf $(DESTDIR)/usr/local/openresty/luajit/lib/libluajit-5.1.a
mkdir -p $(DESTDIR)/usr/bin
cd $(DESTDIR)/usr/bin
cd $(CURDIR)
override_dh_strip:
dh_strip --dbg-package=openresty-dbgsym