-
Notifications
You must be signed in to change notification settings - Fork 3
/
rules.m4
67 lines (56 loc) · 2.77 KB
/
rules.m4
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
include(`_all.m4')dnl
#!/usr/bin/make -f
# vim: noexpandtab ts=3 sw=3
#export DH_VERBOSE=1
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
.PHONY: override_dh_install override_dh_shlibdeps override_dh_auto_configure override_dh_auto_build override_dh_strip override_dh_builddeb
override_dh_install:
dh_install
ifdef(`WITH_RPI', `install debian/tmp/usr/lib/*/netxms/rpi.nsm debian/netxms-agent/usr/lib/*/netxms/')
override_dh_strip_nondeterminism:
dh_strip_nondeterminism -X .jar
override_dh_shlibdeps:
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
override_dh_auto_configure:
dh_auto_configure -- \
--enable-release-build \
--with-server \
--with-agent \
--with-client \
--with-sqlite \
--with-pgsql \
--with-odbc \
--enable-unicode \
--with-jdk=/usr/lib/jvm/default-java \
--without-gui-client \
--enable-modbus \
--with-vmgr CONFIGURE_JEMALLOC CONFIGURE_JQ CONFIGURE_MARIADB CONFIGURE_MOSQUITTO CONFIGURE_MYSQL CONFIGURE_ZMQ CONFIGURE_ORACLE CONFIGURE_ASTERISK CONFIGURE_XEN CONFIGURE_LIBSTROPHE CONFIGURE_ADDITIONAL
override_dh_auto_build:
dh_auto_build
cp build/netxms-build-tag.properties src/java-common/netxms-base/src/main/resources/
mvn -f src/pom.xml versions:set -DnewVersion=$(shell grep NETXMS_VERSION= build/netxms-build-tag.properties | cut -d = -f 2) -DprocessAllModules=true
mvn -f src/client/nxmc/java/pom.xml versions:set -DnewVersion=$(shell grep NETXMS_VERSION= build/netxms-build-tag.properties | cut -d = -f 2)
mvn -f src/pom.xml install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
override_dh_strip:
dh_strip -pnetxms-agent --dbg-package=netxms-dbg
ifdef(`WITH_ASTERISK', `dh_strip -pnetxms-agent-asterisk --dbg-package=netxms-dbg')
dh_strip -pnetxms-agent-java --dbg-package=netxms-dbg
ifdef(`WITH_MOSQUITTO', `dh_strip -pnetxms-agent-mqtt --dbg-package=netxms-dbg')
ifdef(`WITH_MYSQL', `dh_strip -pnetxms-dbdrv-mysql --dbg-package=netxms-dbg')
ifdef(`WITH_ORACLE', `dh_strip -pnetxms-dbdrv-oracle --dbg-package=netxms-dbg')
dh_strip -pnetxms-agent-pgsql --dbg-package=netxms-dbg
dh_strip -pnetxms-agent-vmgr --dbg-package=netxms-dbg
dh_strip -pnetxms-agent-xen --dbg-package=netxms-dbg
dh_strip -pnetxms-base --dbg-package=netxms-dbg
dh_strip -pnetxms-client --dbg-package=netxms-dbg
ifdef(`WITH_MARIADB', `dh_strip -pnetxms-dbdrv-mariadb --dbg-package=netxms-dbg')
dh_strip -pnetxms-dbdrv-odbc --dbg-package=netxms-dbg
dh_strip -pnetxms-dbdrv-pgsql --dbg-package=netxms-dbg
dh_strip -pnetxms-dbdrv-sqlite3 --dbg-package=netxms-dbg
dh_strip -pnetxms-java-base --dbg-package=netxms-dbg
dh_strip -pnetxms-reporting --dbg-package=netxms-dbg
dh_strip -pnetxms-server --dbg-package=netxms-dbg
override_dh_builddeb:
dh_builddeb -- -Zxz
%:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):/opt/instantclient_12_2 dh $@ --parallel