Browse code

Revert "pkg/kamailio/deb: fix tlsa build"

This reverts commit 6f162fc63d0503637c4c3c96ab4b13189239250f.

Victor Seva authored on 18/06/2022 23:41:54
Showing 1 changed files
... ...
@@ -110,9 +110,9 @@ LD_EXTRA_OPTS := $(shell dpkg-buildflags --get LDFLAGS)
110 110
 # https://wiki.debian.org/ReproducibleBuilds/
111 111
 CC_EXTRA_OPTS += -DVERSION_NODATE
112 112
 
113
-#tlsa
114
-export LIBSSL_STATIC_SRCLIB=yes
115
-export LIBSSL_STATIC_SRCPATH=/usr/$(LIBDIR)
113
+# "function" to get package short name out of a dir/module_name
114
+# it also transforms db_foo into foo
115
+mod_name=$(subst db_,,$(lastword $(subst /, ,$(1))))
116 116
 
117 117
 define PACKAGE_GRP_BUILD_template
118 118
 	# package all the modules in PACKAGE_GROUPS in separate packages
Browse code

pkg/kamailio/deb: fix tlsa build

* remove unused mod_name definition

Victor Seva authored on 18/06/2022 22:38:03
Showing 1 changed files
... ...
@@ -110,9 +110,9 @@ LD_EXTRA_OPTS := $(shell dpkg-buildflags --get LDFLAGS)
110 110
 # https://wiki.debian.org/ReproducibleBuilds/
111 111
 CC_EXTRA_OPTS += -DVERSION_NODATE
112 112
 
113
-# "function" to get package short name out of a dir/module_name
114
-# it also transforms db_foo into foo
115
-mod_name=$(subst db_,,$(lastword $(subst /, ,$(1))))
113
+#tlsa
114
+export LIBSSL_STATIC_SRCLIB=yes
115
+export LIBSSL_STATIC_SRCPATH=/usr/$(LIBDIR)
116 116
 
117 117
 define PACKAGE_GRP_BUILD_template
118 118
 	# package all the modules in PACKAGE_GROUPS in separate packages
Browse code

pkg/kamailio/deb: rework rules [skip ci]

* define list elements per line. It helps to remove/add them in
backports scripts
* remove unused definitions
* include dpkg-dev helper makefile files with definitions
* rework backports scripts

Victor Seva authored on 17/06/2022 09:33:47
Showing 1 changed files
... ...
@@ -1,55 +1,114 @@
1 1
 #!/usr/bin/make -f
2
-# Sample debian/rules that uses debhelper.
3
-# GNU copyright 1997 to 1999 by Joey Hess.
4 2
 
5
-DEBVERSION:=$(shell head -n 1 debian/changelog \
6
-                    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
7
-UPVERSION:=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
8
-
9
-FILENAME := kamailio_$(UPVERSION).orig.tar.gz
10
-URL := http://www.kamailio.org/pub/kamailio/$(UPVERSION)/src/kamailio-$(UPVERSION)_src.tar.gz
11
-
12
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
3
+# Uncomment this to turn on verbose mode.
4
+#export DH_VERBOSE=1
13 5
 
14 6
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
15 7
 DPKG_EXPORT_BUILDFLAGS = 1
8
+
9
+include /usr/share/dpkg/architecture.mk
16 10
 include /usr/share/dpkg/buildflags.mk
11
+include /usr/share/dpkg/pkg-info.mk
17 12
 
18
-# Uncomment this to turn on verbose mode.
19
-#export DH_VERBOSE=1
13
+# Enable parallel builds.
14
+NUMJOBS = 1
15
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
16
+  NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
17
+  MAKEFLAGS += -j$(NUMJOBS)
18
+endif
20 19
 
21 20
 export JAVA_HOME=/usr/lib/jvm/java-gcj
22 21
 export FREERADIUS=1
23 22
 
24
-# modules not in the "main" kamailio package
25
-EXCLUDED_MODULES= nats
26
-
27
-# extra modules to skip, because they are not compilable now
28
-# - regardless if they go to the main kamailio package or to some module package,
29
-# they will be excluded from compile and install of all
30
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 phonenum mongodb ruby mqtt secsipid lwsc
31
-
32
-# module groups that are packaged in separate packages
33
-# (with the name kamailio-$(group_name)-modules)
23
+# Modules not in the "main" kamailio package:
24
+EXCLUDED_MODULES =
25
+
26
+# Extra modules to skip, because they are not compilable now:
27
+# - regardless if they go to the main kamailio package or to some module
28
+#   package, they will be excluded from compile and install of all.
29
+EXTRA_EXCLUDED_MODULES += bdb
30
+EXTRA_EXCLUDED_MODULES += dbtext
31
+EXTRA_EXCLUDED_MODULES += oracle
32
+EXTRA_EXCLUDED_MODULES += pa
33
+EXTRA_EXCLUDED_MODULES += iptrtpproxy
34
+EXTRA_EXCLUDED_MODULES += systemd
35
+EXTRA_EXCLUDED_MODULES += geoip2
36
+EXTRA_EXCLUDED_MODULES += phonenum
37
+EXTRA_EXCLUDED_MODULES += mongodb
38
+EXTRA_EXCLUDED_MODULES += ruby
39
+EXTRA_EXCLUDED_MODULES += mqtt
40
+EXTRA_EXCLUDED_MODULES += secsipid
41
+EXTRA_EXCLUDED_MODULES += lwsc
42
+EXTRA_EXCLUDED_MODULES += nats
43
+## --EXCLUDED--
44
+
45
+
46
+# Module groups that are packaged in seperate packages (with the name
47
+# kamailio-$(group_name)-modules).
34 48
 # Note: the order is important (should be in dependency order, the one
35 49
 # on which other depend first)
36
-PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37
-			   ldap xml perl utils lua memcached \
38
-			   snmpstats carrierroute xmpp cpl redis python geoip \
39
-			   sqlite json mono ims sctp java \
40
-			   tls outbound websocket autheph dnssec kazoo cnxcc \
41
-			   erlang rabbitmq python3
50
+PACKAGE_GROUPS += mysql
51
+PACKAGE_GROUPS += postgres
52
+PACKAGE_GROUPS += berkeley
53
+PACKAGE_GROUPS += unixodbc
54
+PACKAGE_GROUPS += radius
55
+PACKAGE_GROUPS += presence
56
+PACKAGE_GROUPS += ldap
57
+PACKAGE_GROUPS += xml
58
+PACKAGE_GROUPS += perl
59
+PACKAGE_GROUPS += utils
60
+PACKAGE_GROUPS += lua
61
+PACKAGE_GROUPS += memcached
62
+PACKAGE_GROUPS += snmpstats
63
+PACKAGE_GROUPS += carrierroute
64
+PACKAGE_GROUPS += xmpp
65
+PACKAGE_GROUPS += cpl
66
+PACKAGE_GROUPS += redis
67
+PACKAGE_GROUPS += python
68
+PACKAGE_GROUPS += geoip
69
+PACKAGE_GROUPS += sqlite
70
+PACKAGE_GROUPS += json
71
+PACKAGE_GROUPS += mono
72
+PACKAGE_GROUPS += ims
73
+PACKAGE_GROUPS += sctp
74
+PACKAGE_GROUPS += java
75
+PACKAGE_GROUPS += tls
76
+PACKAGE_GROUPS += outbound
77
+PACKAGE_GROUPS += websocket
78
+PACKAGE_GROUPS += autheph
79
+PACKAGE_GROUPS += dnssec
80
+PACKAGE_GROUPS += kazoo
81
+PACKAGE_GROUPS += cnxcc
82
+PACKAGE_GROUPS += erlang
83
+PACKAGE_GROUPS += rabbitmq
84
+PACKAGE_GROUPS += python3
85
+
86
+# Module groups to be packaged onto kamailio-extra-modules.
87
+EXTRA_GROUPS += ev
88
+EXTRA_GROUPS += gzcompress
89
+EXTRA_GROUPS += jansson
90
+EXTRA_GROUPS += uuid
91
+EXTRA_GROUPS += http_async
92
+
93
+D = $(CURDIR)/debian/$(DEB_SOURCE)
94
+
95
+# Name of libdir in the path for libraries (e.g., the multiarch triplet).
96
+export LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)
42 97
 
43
-# module groups to be packaged onto kamailio-extra-modules
44
-EXTRA_GROUPS=gzcompress uuid ev jansson http_async
98
+# Directories with possible duplicate libraries (that should be deleted
99
+# from current module* packages).
100
+DUP_LIBS_DIRS = $(D)/usr/$(LIBDIR)/kamailio \
101
+                $(D)-db-modules/usr/$(LIBDIR)/kamailio
45 102
 
46
-# name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
47
-export LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)
103
+# CFLAGS + CPPFLAGS -> CC_EXTRA_OPTS
104
+CC_EXTRA_OPTS := $(shell dpkg-buildflags --get CPPFLAGS)
105
+CC_EXTRA_OPTS += $(shell dpkg-buildflags --get CFLAGS)
106
+CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
107
+# LDFLAGS -> LD_EXTRA_OPTS
108
+LD_EXTRA_OPTS := $(shell dpkg-buildflags --get LDFLAGS)
48 109
 
49
-# directories with possible duplicate libraries (that should be deleted
50
-# from current module* packages)
51
-DUP_LIBS_DIRS=$(CURDIR)/debian/kamailio/usr/$(LIBDIR)/kamailio \
52
-			$(CURDIR)/debian/kamailio-db-modules/usr/$(LIBDIR)/kamailio
110
+# https://wiki.debian.org/ReproducibleBuilds/
111
+CC_EXTRA_OPTS += -DVERSION_NODATE
53 112
 
54 113
 # "function" to get package short name out of a dir/module_name
55 114
 # it also transforms db_foo into foo
... ...
@@ -65,18 +124,18 @@ endef
65 124
 define PACKAGE_GRP_INSTALL_template
66 125
 	$(foreach grp,$(PACKAGE_GROUPS),\
67 126
 		$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(grp)" \
68
-		BASEDIR=$(CURDIR)/debian/kamailio-$(grp)-modules \
69
-		cfg_prefix=$(CURDIR)/debian/kamailio-$(grp)-modules \
70
-		doc-dir=share/doc/kamailio-$(grp)-modules quiet=verbose
127
+		BASEDIR=$(D)-$(grp)-modules \
128
+		cfg_prefix=$(D)-$(grp)-modules \
129
+		doc-dir=share/doc/$(DEB_SOURCE)-$(grp)-modules quiet=verbose
71 130
 		# eliminate duplicate libs
72 131
 		-for d in $(DUP_LIBS_DIRS); do \
73
-			test "$$d" != "$(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio" &&\
132
+			test "$$d" != "$(D)-$(grp)-modules/usr/$(LIBDIR)/kamailio" &&\
74 133
 			for r in `find $$d -name 'lib*'|xargs`; do \
75 134
 				echo "removing $(grp) lib `basename $$r` present also in $$d";\
76
-				rm -f $(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
135
+				rm -f $(D)-$(grp)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
77 136
 			done ; \
78 137
 		done
79
-		find $(CURDIR)/debian/kamailio-$(grp)-modules -depth -empty -type d -exec rmdir {} \;
138
+		find $(D)-$(grp)-modules -depth -empty -type d -exec rmdir {} \;
80 139
 	)
81 140
 endef
82 141
 
... ...
@@ -90,38 +149,28 @@ endef
90 149
 define PACKAGE_EXTRA_INSTALL_template
91 150
 	$(foreach grp,$(EXTRA_GROUPS),\
92 151
 		$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(grp)" \
93
-		BASEDIR=$(CURDIR)/debian/kamailio-extra-modules \
94
-		cfg_prefix=$(CURDIR)/debian/kamailio-extra-modules \
95
-		doc-dir=share/doc/kamailio-extra-modules quiet=verbose
152
+		BASEDIR=$(D)-extra-modules \
153
+		cfg_prefix=$(D)-extra-modules \
154
+		doc-dir=share/doc/$(DEB_SOURCE)-extra-modules quiet=verbose
96 155
 	)
97 156
 	# eliminate duplicate libs
98 157
 	-for d in $(DUP_LIBS_DIRS); do \
99
-		test "$$d" != "$(CURDIR)/debian/kamailio-extra-modules/usr/$(LIBDIR)/kamailio" &&\
158
+		test "$$d" != "$(D)-extra-modules/usr/$(LIBDIR)/kamailio" &&\
100 159
 		for r in `find $$d -name 'lib*'|xargs`; do \
101 160
 			echo "removing extra lib `basename $$r` present also in $$d";\
102
-			rm -f $(CURDIR)/debian/kamailio-extra-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
161
+			rm -f $(D)-extra-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
103 162
 		done ; \
104 163
 	done
105
-	find $(CURDIR)/debian/kamailio-extra-modules -depth -empty -type d -exec rmdir {} \;
164
+	find $(D)-extra-modules -depth -empty -type d -exec rmdir {} \;
106 165
 endef
107 166
 
108
-# CFLAGS + CPPFLAGS -> CC_EXTRA_OPTS
109
-CC_EXTRA_OPTS := $(shell dpkg-buildflags --get CPPFLAGS)
110
-CC_EXTRA_OPTS += $(shell DEB_CFLAGS_MAINT_STRIP=-O2 dpkg-buildflags --get CFLAGS)
111
-CXXFLAGS := $(shell DEB_CXXFLAGS_MAINT_STRIP=-O2 dpkg-buildflags --get CXXFLAGS)
112
-# LDFLAGS -> LD_EXTRA_OPTS
113
-LD_EXTRA_OPTS := $(shell dpkg-buildflags --get LDFLAGS)
114
-
115
-# https://wiki.debian.org/ReproducibleBuilds/
116
-CC_EXTRA_OPTS += -DVERSION_NODATE
117
-
118 167
 configure: configure-stamp
119 168
 configure-stamp:
120 169
 	dh_testdir
121 170
 	# Add here commands to configure the package.
122
-	$(MAKE) FLAVOUR=kamailio cfg prefix=/usr cfg_prefix=$(CURDIR)/debian/kamailio \
171
+	$(MAKE) FLAVOUR=kamailio cfg prefix=/usr cfg_prefix=$(D) \
123 172
 			cfg_target=/etc/kamailio/ \
124
-			BASEDIR=$(CURDIR)/debian/kamailio \
173
+			BASEDIR=$(D) \
125 174
 			skip_modules="$(EXCLUDED_MODULES) $(EXTRA_EXCLUDED_MODULES)" \
126 175
 			CC_EXTRA_OPTS="$(CC_EXTRA_OPTS)" \
127 176
 			LD_EXTRA_OPTS="$(LD_EXTRA_OPTS)" \
... ...
@@ -160,13 +209,13 @@ install: build
160 209
 	# make group packages
161 210
 	$(call PACKAGE_GRP_INSTALL_template)
162 211
 	$(call PACKAGE_EXTRA_INSTALL_template)
163
-	mv $(CURDIR)/debian/kamailio-berkeley-modules/usr/sbin/kambdb_recover \
164
-		$(CURDIR)/debian/kamailio-berkeley-bin/usr/sbin/kambdb_recover
212
+	mv $(D)-berkeley-modules/usr/sbin/kambdb_recover \
213
+		$(D)-berkeley-bin/usr/sbin/kambdb_recover
165 214
 	# install /etc/default/kamailio file
166
-	mkdir -p $(CURDIR)/debian/kamailio/etc/default
167
-	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
215
+	mkdir -p $(D)/etc/default
216
+	cp -f debian/kamailio.default $(D)/etc/default/kamailio
168 217
 	# delete /run/kamailio dir
169
-	rm -rf $(CURDIR)/debian/kamailio/usr/local
218
+	rm -rf $(D)/usr/local
170 219
 
171 220
 
172 221
 # This single target is used to build all the packages, all at once, or
... ...
@@ -212,16 +261,5 @@ binary-arch: build install
212 261
 binary-%: build install
213 262
 	$(MAKE) -f debian/rules binary-common DH_OPTIONS=-p$*
214 263
 
215
-print-version:
216
-	@@echo "Debian version:          $(DEBVERSION)"
217
-	@@echo "Upstream version:        $(UPVERSION)"
218
-
219
-get-orig-source:
220
-	@@dh_testdir
221
-	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
222
-	@@echo Downloading $(FILENAME) from $(URL) ...
223
-	@@wget -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
224
-
225 264
 binary: binary-indep binary-arch
226 265
 .PHONY: build clean binary-indep binary-arch binary install configure
227
-
Browse code

pkg: Fix typos

Bastian Triller authored on 05/05/2022 16:20:11 • Henning Westerholt committed on 08/05/2022 15:30:14
Showing 1 changed files
... ...
@@ -29,7 +29,7 @@ EXCLUDED_MODULES= nats
29 29
 # they will be excluded from compile and install of all
30 30
 EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 phonenum mongodb ruby mqtt secsipid lwsc
31 31
 
32
-# module groups that are packaged in seperate packages
32
+# module groups that are packaged in separate packages
33 33
 # (with the name kamailio-$(group_name)-modules)
34 34
 # Note: the order is important (should be in dependency order, the one
35 35
 # on which other depend first)
Browse code

pkg/kamailio/deb: fix backports rules related to nats

Victor Seva authored on 25/02/2022 15:19:51
Showing 1 changed files
... ...
@@ -38,7 +38,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
38 38
 			   snmpstats carrierroute xmpp cpl redis python geoip \
39 39
 			   sqlite json mono ims sctp java \
40 40
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
41
-			   erlang rabbitmq python3 
41
+			   erlang rabbitmq python3
42 42
 
43 43
 # module groups to be packaged onto kamailio-extra-modules
44 44
 EXTRA_GROUPS=gzcompress uuid ev jansson http_async
Browse code

pkg::deb: Missing spaces

fixes the deleted space after "erlang"
introduced by a593f518dd62fd68c330eb42470ce5d5e1dce636

Matthias Urlichs authored on 25/02/2022 14:42:18 • Henning Westerholt committed on 25/02/2022 14:49:57
Showing 1 changed files
... ...
@@ -38,7 +38,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
38 38
 			   snmpstats carrierroute xmpp cpl redis python geoip \
39 39
 			   sqlite json mono ims sctp java \
40 40
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
41
-			   erlangrabbitmq python3 
41
+			   erlang rabbitmq python3 
42 42
 
43 43
 # module groups to be packaged onto kamailio-extra-modules
44 44
 EXTRA_GROUPS=gzcompress uuid ev jansson http_async
Browse code

pkg/kamailio/deb: fix rules

Victor Seva authored on 17/02/2022 23:18:03
Showing 1 changed files
... ...
@@ -38,7 +38,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
38 38
 			   snmpstats carrierroute xmpp cpl redis python geoip \
39 39
 			   sqlite json mono ims sctp java \
40 40
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
41
-			   erlang rabbitmq python3 nats
41
+			   erlangrabbitmq python3 
42 42
 
43 43
 # module groups to be packaged onto kamailio-extra-modules
44 44
 EXTRA_GROUPS=gzcompress uuid ev jansson http_async
Browse code

pkg/kamailio/deb: kamailio-nats-modules

for now just for sid, libnats-dev not yet in bookworm

Victor Seva authored on 17/02/2022 22:27:27
Showing 1 changed files
... ...
@@ -22,7 +22,7 @@ export JAVA_HOME=/usr/lib/jvm/java-gcj
22 22
 export FREERADIUS=1
23 23
 
24 24
 # modules not in the "main" kamailio package
25
-EXCLUDED_MODULES=
25
+EXCLUDED_MODULES= nats
26 26
 
27 27
 # extra modules to skip, because they are not compilable now
28 28
 # - regardless if they go to the main kamailio package or to some module package,
... ...
@@ -38,7 +38,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
38 38
 			   snmpstats carrierroute xmpp cpl redis python geoip \
39 39
 			   sqlite json mono ims sctp java \
40 40
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
41
-			   erlang rabbitmq python3 
41
+			   erlang rabbitmq python3 nats
42 42
 
43 43
 # module groups to be packaged onto kamailio-extra-modules
44 44
 EXTRA_GROUPS=gzcompress uuid ev jansson http_async
Browse code

pkg/kamailio/deb: missing lwsc module files [skip ci]

fixes #2749

Victor Seva authored on 27/05/2021 12:03:01
Showing 1 changed files
... ...
@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
27 27
 # extra modules to skip, because they are not compilable now
28 28
 # - regardless if they go to the main kamailio package or to some module package,
29 29
 # they will be excluded from compile and install of all
30
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 phonenum mongodb ruby mqtt secsipid lwcs
30
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 phonenum mongodb ruby mqtt secsipid lwsc
31 31
 
32 32
 # module groups that are packaged in seperate packages
33 33
 # (with the name kamailio-$(group_name)-modules)
Browse code

pkg/kamailio/deb: add lwcs module

* enable only the ones with libwebsockets >= 3.1

Victor Seva authored on 15/04/2021 11:46:50
Showing 1 changed files
... ...
@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
27 27
 # extra modules to skip, because they are not compilable now
28 28
 # - regardless if they go to the main kamailio package or to some module package,
29 29
 # they will be excluded from compile and install of all
30
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 phonenum mongodb ruby mqtt secsipid
30
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 phonenum mongodb ruby mqtt secsipid lwcs
31 31
 
32 32
 # module groups that are packaged in seperate packages
33 33
 # (with the name kamailio-$(group_name)-modules)
Browse code

pkg/kamailio/deb: add secsipid package for supported releases [skip ci]

Victor Seva authored on 19/02/2021 14:04:39
Showing 1 changed files
... ...
@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
27 27
 # extra modules to skip, because they are not compilable now
28 28
 # - regardless if they go to the main kamailio package or to some module package,
29 29
 # they will be excluded from compile and install of all
30
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 phonenum mongodb ruby mqtt
30
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 phonenum mongodb ruby mqtt secsipid
31 31
 
32 32
 # module groups that are packaged in seperate packages
33 33
 # (with the name kamailio-$(group_name)-modules)
Browse code

pkg/kamailio/deb: remove mqtt from old releases

It seems that only libmosquitto1-dev is supported

Victor Seva authored on 09/01/2020 08:34:10
Showing 1 changed files
... ...
@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
27 27
 # extra modules to skip, because they are not compilable now
28 28
 # - regardless if they go to the main kamailio package or to some module package,
29 29
 # they will be excluded from compile and install of all
30
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 phonenum mongodb ruby
30
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 phonenum mongodb ruby mqtt
31 31
 
32 32
 # module groups that are packaged in seperate packages
33 33
 # (with the name kamailio-$(group_name)-modules)
... ...
@@ -38,7 +38,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
38 38
 			   snmpstats carrierroute xmpp cpl redis python geoip \
39 39
 			   sqlite json mono ims sctp java \
40 40
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
41
-			   erlang rabbitmq python3 mqtt
41
+			   erlang rabbitmq python3 
42 42
 
43 43
 # module groups to be packaged onto kamailio-extra-modules
44 44
 EXTRA_GROUPS=gzcompress uuid ev jansson http_async
Browse code

pkg/kamailio/deb: add mqtt to PACKAGE_GROUPS

Victor Seva authored on 07/01/2020 10:32:43
Showing 1 changed files
... ...
@@ -38,7 +38,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
38 38
 			   snmpstats carrierroute xmpp cpl redis python geoip \
39 39
 			   sqlite json mono ims sctp java \
40 40
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
41
-			   erlang rabbitmq python3
41
+			   erlang rabbitmq python3 mqtt
42 42
 
43 43
 # module groups to be packaged onto kamailio-extra-modules
44 44
 EXTRA_GROUPS=gzcompress uuid ev jansson http_async
Browse code

pkg/deb: switch from deprecated /var/run to /run

The FHS 3.0 [F] has deprecated /var/run in favor of /run. Current
distributions have done so for a long time (for example in Debian
since 6.0 “squeeze”), even though they provide a compatibility
symlink from /var/run to /run. But software like systemd have
started emitting warnings when using /var/run, for example for
its PIDFile directive, which pollutes the logs.

Guillem Jover authored on 25/10/2019 09:51:20 • Daniel-Constantin Mierla committed on 25/10/2019 10:00:46
Showing 1 changed files
... ...
@@ -165,7 +165,7 @@ install: build
165 165
 	# install /etc/default/kamailio file
166 166
 	mkdir -p $(CURDIR)/debian/kamailio/etc/default
167 167
 	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
168
-	# delete /var/run/kamailio dir
168
+	# delete /run/kamailio dir
169 169
 	rm -rf $(CURDIR)/debian/kamailio/usr/local
170 170
 
171 171
 
Browse code

pkg/kamailio/deb: add kamailio-python3-modules

Victor Seva authored on 24/12/2018 07:44:06
Showing 1 changed files
... ...
@@ -38,7 +38,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
38 38
 			   snmpstats carrierroute xmpp cpl redis python geoip \
39 39
 			   sqlite json mono ims sctp java \
40 40
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
41
-			   erlang rabbitmq
41
+			   erlang rabbitmq python3
42 42
 
43 43
 # module groups to be packaged onto kamailio-extra-modules
44 44
 EXTRA_GROUPS=gzcompress uuid ev jansson http_async
Browse code

pkg/kamailio/deb: remove ruby support for trusty

Victor Seva authored on 11/12/2018 15:41:32
Showing 1 changed files
... ...
@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
27 27
 # extra modules to skip, because they are not compilable now
28 28
 # - regardless if they go to the main kamailio package or to some module package,
29 29
 # they will be excluded from compile and install of all
30
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 phonenum mongodb
30
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 phonenum mongodb ruby
31 31
 
32 32
 # module groups that are packaged in seperate packages
33 33
 # (with the name kamailio-$(group_name)-modules)
... ...
@@ -36,7 +36,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2
36 36
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37 37
 			   ldap xml perl utils lua memcached \
38 38
 			   snmpstats carrierroute xmpp cpl redis python geoip \
39
-			   sqlite json mono ruby ims sctp java \
39
+			   sqlite json mono ims sctp java \
40 40
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
41 41
 			   erlang rabbitmq
42 42
 
Browse code

pkg/kamailio/deb: add kamailio-ruby-modules [skip ci]

Victor Seva authored on 11/12/2018 09:53:24
Showing 1 changed files
... ...
@@ -36,7 +36,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2
36 36
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37 37
 			   ldap xml perl utils lua memcached \
38 38
 			   snmpstats carrierroute xmpp cpl redis python geoip \
39
-			   sqlite json mono ims sctp java \
39
+			   sqlite json mono ruby ims sctp java \
40 40
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
41 41
 			   erlang rabbitmq
42 42
 
Browse code

pkg/kamailio/deb: enable verbose builds

Victor Seva authored on 27/09/2018 16:28:34
Showing 1 changed files
... ...
@@ -58,7 +58,7 @@ mod_name=$(subst db_,,$(lastword $(subst /, ,$(1))))
58 58
 define PACKAGE_GRP_BUILD_template
59 59
 	# package all the modules in PACKAGE_GROUPS in separate packages
60 60
 	$(foreach grp,$(PACKAGE_GROUPS),\
61
-		$(MAKE) every-module group_include="k$(grp)"
61
+		$(MAKE) every-module group_include="k$(grp)" quiet=verbose
62 62
 	)
63 63
 endef
64 64
 
... ...
@@ -67,7 +67,7 @@ define PACKAGE_GRP_INSTALL_template
67 67
 		$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(grp)" \
68 68
 		BASEDIR=$(CURDIR)/debian/kamailio-$(grp)-modules \
69 69
 		cfg_prefix=$(CURDIR)/debian/kamailio-$(grp)-modules \
70
-		doc-dir=share/doc/kamailio-$(grp)-modules
70
+		doc-dir=share/doc/kamailio-$(grp)-modules quiet=verbose
71 71
 		# eliminate duplicate libs
72 72
 		-for d in $(DUP_LIBS_DIRS); do \
73 73
 			test "$$d" != "$(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio" &&\
... ...
@@ -83,7 +83,7 @@ endef
83 83
 define PACKAGE_EXTRA_BUILD_template
84 84
 	# package all the modules in EXTRA_GROUPS in separate packages
85 85
 	$(foreach grp,$(EXTRA_GROUPS),\
86
-		$(MAKE) every-module group_include="k$(grp)"
86
+		$(MAKE) every-module group_include="k$(grp)" quiet=verbose
87 87
 	)
88 88
 endef
89 89
 
... ...
@@ -92,7 +92,7 @@ define PACKAGE_EXTRA_INSTALL_template
92 92
 		$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(grp)" \
93 93
 		BASEDIR=$(CURDIR)/debian/kamailio-extra-modules \
94 94
 		cfg_prefix=$(CURDIR)/debian/kamailio-extra-modules \
95
-		doc-dir=share/doc/kamailio-extra-modules
95
+		doc-dir=share/doc/kamailio-extra-modules quiet=verbose
96 96
 	)
97 97
 	# eliminate duplicate libs
98 98
 	-for d in $(DUP_LIBS_DIRS); do \
... ...
@@ -125,7 +125,7 @@ configure-stamp:
125 125
 			skip_modules="$(EXCLUDED_MODULES) $(EXTRA_EXCLUDED_MODULES)" \
126 126
 			CC_EXTRA_OPTS="$(CC_EXTRA_OPTS)" \
127 127
 			LD_EXTRA_OPTS="$(LD_EXTRA_OPTS)" \
128
-			group_include="kstandard"
128
+			group_include="kstandard" quiet=verbose
129 129
 
130 130
 	touch configure-stamp
131 131
 
... ...
@@ -136,7 +136,7 @@ build-indep: build-stamp
136 136
 build-stamp: configure-stamp
137 137
 	dh_testdir
138 138
 	# Add here commands to compile the package.
139
-	$(MAKE) all
139
+	$(MAKE) all quiet=verbose
140 140
 	# make groups
141 141
 	$(call PACKAGE_GRP_BUILD_template)
142 142
 	$(call PACKAGE_EXTRA_BUILD_template)
Browse code

pkg/kamailio/deb: kamailio-mongodb-modules [skip ci]

Victor Seva authored on 11/12/2017 10:15:20
Showing 1 changed files
... ...
@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
27 27
 # extra modules to skip, because they are not compilable now
28 28
 # - regardless if they go to the main kamailio package or to some module package,
29 29
 # they will be excluded from compile and install of all
30
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 phonenum
30
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 phonenum mongodb
31 31
 
32 32
 # module groups that are packaged in seperate packages
33 33
 # (with the name kamailio-$(group_name)-modules)
Browse code

pkg/kamailio/deb: kamailio-phonenum-modules [skip ci]

Victor Seva authored on 08/12/2017 11:29:12
Showing 1 changed files
... ...
@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
27 27
 # extra modules to skip, because they are not compilable now
28 28
 # - regardless if they go to the main kamailio package or to some module package,
29 29
 # they will be excluded from compile and install of all
30
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2
30
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 phonenum
31 31
 
32 32
 # module groups that are packaged in seperate packages
33 33
 # (with the name kamailio-$(group_name)-modules)
Browse code

pkg/kamailio/deb: geoip2 module [skip ci]

fix #1352

Victor Seva authored on 08/12/2017 08:32:46
Showing 1 changed files
... ...
@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
27 27
 # extra modules to skip, because they are not compilable now
28 28
 # - regardless if they go to the main kamailio package or to some module package,
29 29
 # they will be excluded from compile and install of all
30
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd
30
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2
31 31
 
32 32
 # module groups that are packaged in seperate packages
33 33
 # (with the name kamailio-$(group_name)-modules)
... ...
@@ -35,7 +35,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd
35 35
 # on which other depend first)
36 36
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37 37
 			   ldap xml perl utils lua memcached \
38
-			   snmpstats carrierroute xmpp cpl redis python geoip\
38
+			   snmpstats carrierroute xmpp cpl redis python geoip \
39 39
 			   sqlite json mono ims sctp java \
40 40
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
41 41
 			   erlang rabbitmq
Browse code

pkg/kamailio/deb: set LIBDIR for all rules

* default path to modules was wrong

Fix #1096

Victor Seva authored on 27/04/2017 17:05:35
Showing 1 changed files
... ...
@@ -44,7 +44,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
44 44
 EXTRA_GROUPS=gzcompress uuid ev jansson http_async
45 45
 
46 46
 # name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
47
-LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)
47
+export LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)
48 48
 
49 49
 # directories with possible duplicate libraries (that should be deleted
50 50
 # from current module* packages)
... ...
@@ -156,7 +156,7 @@ install: build
156 156
 	dh_prep
157 157
 	dh_installdirs
158 158
 	# Add here commands to install the package into debian/kamailio
159
-	$(MAKE) install LIBDIR=$(LIBDIR) group_include="kstandard"
159
+	$(MAKE) install group_include="kstandard"
160 160
 	# make group packages
161 161
 	$(call PACKAGE_GRP_INSTALL_template)
162 162
 	$(call PACKAGE_EXTRA_INSTALL_template)
Browse code

pkg/kamailio/deb: strip default -02 from CC_EXTRA_OPTS

Fix #1004

Victor Seva authored on 22/02/2017 14:15:29
Showing 1 changed files
... ...
@@ -107,8 +107,8 @@ endef
107 107
 
108 108
 # CFLAGS + CPPFLAGS -> CC_EXTRA_OPTS
109 109
 CC_EXTRA_OPTS := $(shell dpkg-buildflags --get CPPFLAGS)
110
-CC_EXTRA_OPTS += $(shell dpkg-buildflags --get CFLAGS)
111
-CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
110
+CC_EXTRA_OPTS += $(shell DEB_CFLAGS_MAINT_STRIP=-O2 dpkg-buildflags --get CFLAGS)
111
+CXXFLAGS := $(shell DEB_CXXFLAGS_MAINT_STRIP=-O2 dpkg-buildflags --get CXXFLAGS)
112 112
 # LDFLAGS -> LD_EXTRA_OPTS
113 113
 LD_EXTRA_OPTS := $(shell dpkg-buildflags --get LDFLAGS)
114 114
 
Browse code

Revert "pkg/kamailio/deb: remove kazoo package"

This reverts commit e3297bccc97ddc4349bcf69de59eb337c05bbae3.

Victor Seva authored on 31/01/2017 13:08:31
Showing 1 changed files
... ...
@@ -37,7 +37,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37 37
 			   ldap xml perl utils lua memcached \
38 38
 			   snmpstats carrierroute xmpp cpl redis python geoip\
39 39
 			   sqlite json mono ims sctp java \
40
-			   tls outbound websocket autheph dnssec cnxcc \
40
+			   tls outbound websocket autheph dnssec kazoo cnxcc \
41 41
 			   erlang rabbitmq
42 42
 
43 43
 # module groups to be packaged onto kamailio-extra-modules
Browse code

pkg/kamailio/deb: remove kazoo package

* previous package will be upgrade to rabbitmq

Victor Seva authored on 31/01/2017 09:46:29
Showing 1 changed files
... ...
@@ -37,7 +37,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37 37
 			   ldap xml perl utils lua memcached \
38 38
 			   snmpstats carrierroute xmpp cpl redis python geoip\
39 39
 			   sqlite json mono ims sctp java \
40
-			   tls outbound websocket autheph dnssec kazoo cnxcc \
40
+			   tls outbound websocket autheph dnssec cnxcc \
41 41
 			   erlang rabbitmq
42 42
 
43 43
 # module groups to be packaged onto kamailio-extra-modules
Browse code

Packaging: Add RabbitMQ Package to Debian Packaging

Carsten Bock authored on 31/01/2017 09:04:42
Showing 1 changed files
... ...
@@ -38,7 +38,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
38 38
 			   snmpstats carrierroute xmpp cpl redis python geoip\
39 39
 			   sqlite json mono ims sctp java \
40 40
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
41
-			   erlang
41
+			   erlang rabbitmq
42 42
 
43 43
 # module groups to be packaged onto kamailio-extra-modules
44 44
 EXTRA_GROUPS=gzcompress uuid ev jansson http_async
Browse code

pkg/kamailio/deb: remove obsolete purple module from packages

Victor Seva authored on 13/12/2016 09:33:53
Showing 1 changed files
... ...
@@ -37,7 +37,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37 37
 			   ldap xml perl utils lua memcached \
38 38
 			   snmpstats carrierroute xmpp cpl redis python geoip\
39 39
 			   sqlite json mono ims sctp java \
40
-			   purple tls outbound websocket autheph dnssec kazoo cnxcc \
40
+			   tls outbound websocket autheph dnssec kazoo cnxcc \
41 41
 			   erlang
42 42
 
43 43
 # module groups to be packaged onto kamailio-extra-modules
Browse code

pkg/kamailio/deb: add http_async to kamailio-extra-modules

Victor Seva authored on 05/07/2016 17:18:54
Showing 1 changed files
... ...
@@ -41,7 +41,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
41 41
 			   erlang
42 42
 
43 43
 # module groups to be packaged onto kamailio-extra-modules
44
-EXTRA_GROUPS=gzcompress uuid ev jansson
44
+EXTRA_GROUPS=gzcompress uuid ev jansson http_async
45 45
 
46 46
 # name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
47 47
 LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)
Browse code

pkg/kamailio/deb: add kamailio-systemd-modules package

Victor Seva authored on 05/07/2016 16:58:45
Showing 1 changed files
... ...
@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
27 27
 # extra modules to skip, because they are not compilable now
28 28
 # - regardless if they go to the main kamailio package or to some module package,
29 29
 # they will be excluded from compile and install of all
30
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc
30
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd
31 31
 
32 32
 # module groups that are packaged in seperate packages
33 33
 # (with the name kamailio-$(group_name)-modules)
Browse code

pkg/kamailio/deb: fix build rule for modules

Victor Seva authored on 03/06/2016 09:12:50
Showing 1 changed files
... ...
@@ -57,12 +57,11 @@ mod_name=$(subst db_,,$(lastword $(subst /, ,$(1))))
57 57
 
58 58
 define PACKAGE_GRP_BUILD_template
59 59
 	# package all the modules in PACKAGE_GROUPS in separate packages
60
-	$(foreach grp,$(PACKAGE_GROUPS EXTRA_GROUPS),\
60
+	$(foreach grp,$(PACKAGE_GROUPS),\
61 61
 		$(MAKE) every-module group_include="k$(grp)"
62 62
 	)
63 63
 endef
64 64
 
65
-
66 65
 define PACKAGE_GRP_INSTALL_template
67 66
 	$(foreach grp,$(PACKAGE_GROUPS),\
68 67
 		$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(grp)" \
... ...
@@ -81,6 +80,13 @@ define PACKAGE_GRP_INSTALL_template
81 80
 	)
82 81
 endef
83 82
 
83
+define PACKAGE_EXTRA_BUILD_template
84
+	# package all the modules in EXTRA_GROUPS in separate packages
85
+	$(foreach grp,$(EXTRA_GROUPS),\
86
+		$(MAKE) every-module group_include="k$(grp)"
87
+	)
88
+endef
89
+
84 90
 define PACKAGE_EXTRA_INSTALL_template
85 91
 	$(foreach grp,$(EXTRA_GROUPS),\
86 92
 		$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(grp)" \
... ...
@@ -133,6 +139,7 @@ build-stamp: configure-stamp
133 139
 	$(MAKE) all
134 140
 	# make groups
135 141
 	$(call PACKAGE_GRP_BUILD_template)
142
+	$(call PACKAGE_EXTRA_BUILD_template)
136 143
 	touch build-stamp
137 144
 
138 145
 clean:
Browse code

pkg/kamailio/deb: use libradcli-dev for radius

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=822338

kamailio-radius-modules depends on libfreeradius-client
libfreeradius-client has been deprecated in favor of radcli[1]

Victor Seva authored on 03/05/2016 08:18:14 • Victor Seva committed on 10/05/2016 06:25:06
Showing 1 changed files
... ...
@@ -19,8 +19,6 @@ include /usr/share/dpkg/buildflags.mk
19 19
 #export DH_VERBOSE=1
20 20
 
21 21
 export JAVA_HOME=/usr/lib/jvm/java-gcj
22
-
23
-# choose freeradius
24 22
 export FREERADIUS=1
25 23
 
26 24
 # modules not in the "main" kamailio package
Browse code

pkg/kamailio/deb: add erlang package module

Victor Seva authored on 26/05/2015 20:36:37
Showing 1 changed files
... ...
@@ -39,7 +39,8 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
39 39
 			   ldap xml perl utils lua memcached \
40 40
 			   snmpstats carrierroute xmpp cpl redis python geoip\
41 41
 			   sqlite json mono ims sctp java \
42
-			   purple tls outbound websocket autheph dnssec kazoo cnxcc
42
+			   purple tls outbound websocket autheph dnssec kazoo cnxcc \
43
+			   erlang
43 44
 
44 45
 # module groups to be packaged onto kamailio-extra-modules
45 46
 EXTRA_GROUPS=gzcompress uuid ev jansson
Browse code

pkg/kamailio/deb: exclude obsoleted examples

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772314

Victor Seva authored on 16/02/2015 15:04:39
Showing 1 changed files
... ...
@@ -172,7 +172,7 @@ binary-common:
172 172
 	dh_testroot
173 173
 	dh_installdebconf
174 174
 	dh_installdocs
175
-	dh_installexamples
175
+	dh_installexamples -Xobsoleted -Xsr
176 176
 	dh_installmenu
177 177
 	dh_installinit -pkamailio -- defaults 23
178 178
 	dh_installcron
Browse code

pkg/kamailio/deb: use BASEDIR and clean usr/local

since 8c2b9ae build process failed

Victor Seva authored on 14/02/2015 08:00:20
Showing 1 changed files
... ...
@@ -67,7 +67,7 @@ endef
67 67
 define PACKAGE_GRP_INSTALL_template
68 68
 	$(foreach grp,$(PACKAGE_GROUPS),\
69 69
 		$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(grp)" \
70
-		basedir=$(CURDIR)/debian/kamailio-$(grp)-modules \
70
+		BASEDIR=$(CURDIR)/debian/kamailio-$(grp)-modules \
71 71
 		cfg_prefix=$(CURDIR)/debian/kamailio-$(grp)-modules \
72 72
 		doc-dir=share/doc/kamailio-$(grp)-modules
73 73
 		# eliminate duplicate libs
... ...
@@ -85,7 +85,7 @@ endef
85 85
 define PACKAGE_EXTRA_INSTALL_template
86 86
 	$(foreach grp,$(EXTRA_GROUPS),\
87 87
 		$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(grp)" \
88
-		basedir=$(CURDIR)/debian/kamailio-extra-modules \
88
+		BASEDIR=$(CURDIR)/debian/kamailio-extra-modules \
89 89
 		cfg_prefix=$(CURDIR)/debian/kamailio-extra-modules \
90 90
 		doc-dir=share/doc/kamailio-extra-modules
91 91
 	)
... ...
@@ -100,13 +100,6 @@ define PACKAGE_EXTRA_INSTALL_template
100 100
 	find $(CURDIR)/debian/kamailio-extra-modules -depth -empty -type d -exec rmdir {} \;
101 101
 endef
102 102
 
103
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
104
-	CFLAGS += -g
105
-endif
106
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
107
-	INSTALL_PROGRAM += -s
108
-endif
109
-
110 103
 # CFLAGS + CPPFLAGS -> CC_EXTRA_OPTS
111 104
 CC_EXTRA_OPTS := $(shell dpkg-buildflags --get CPPFLAGS)
112 105
 CC_EXTRA_OPTS += $(shell dpkg-buildflags --get CFLAGS)
... ...
@@ -123,7 +116,7 @@ configure-stamp:
123 116
 	# Add here commands to configure the package.
124 117
 	$(MAKE) FLAVOUR=kamailio cfg prefix=/usr cfg_prefix=$(CURDIR)/debian/kamailio \
125 118
 			cfg_target=/etc/kamailio/ \
126
-			basedir=$(CURDIR)/debian/kamailio \
119
+			BASEDIR=$(CURDIR)/debian/kamailio \
127 120
 			skip_modules="$(EXCLUDED_MODULES) $(EXTRA_EXCLUDED_MODULES)" \
128 121
 			CC_EXTRA_OPTS="$(CC_EXTRA_OPTS)" \
129 122
 			LD_EXTRA_OPTS="$(LD_EXTRA_OPTS)" \
... ...
@@ -166,6 +159,8 @@ install: build
166 159
 	# install /etc/default/kamailio file
167 160
 	mkdir -p $(CURDIR)/debian/kamailio/etc/default
168 161
 	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
162
+	# delete /var/run/kamailio dir
163
+	rm -rf $(CURDIR)/debian/kamailio/usr/local
169 164
 
170 165
 
171 166
 # This single target is used to build all the packages, all at once, or
Browse code

pkg/kamailio/deb: enable reproducible builds

Victor Seva authored on 07/02/2015 17:33:36
Showing 1 changed files
... ...
@@ -114,6 +114,9 @@ CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
114 114
 # LDFLAGS -> LD_EXTRA_OPTS
115 115
 LD_EXTRA_OPTS := $(shell dpkg-buildflags --get LDFLAGS)
116 116
 
117
+# https://wiki.debian.org/ReproducibleBuilds/
118
+CC_EXTRA_OPTS += -DVERSION_NODATE
119
+
117 120
 configure: configure-stamp
118 121
 configure-stamp:
119 122
 	dh_testdir
Browse code

pkg/kamailio/deb: easier way to set CC_EXTRA_OPTS and LD_EXTRA_OPTS

Victor Seva authored on 07/02/2015 16:54:26
Showing 1 changed files
... ...
@@ -108,9 +108,11 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
108 108
 endif
109 109
 
110 110
 # CFLAGS + CPPFLAGS -> CC_EXTRA_OPTS
111
+CC_EXTRA_OPTS := $(shell dpkg-buildflags --get CPPFLAGS)
112
+CC_EXTRA_OPTS += $(shell dpkg-buildflags --get CFLAGS)
113
+CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
111 114
 # LDFLAGS -> LD_EXTRA_OPTS
112
-CUSTOM_BUILDFLAGS:=$(shell dpkg-buildflags --export=configure| \
113
-sed -e 's/" CPPFLAGS="/ /' -e 's/CFLAGS/CC_EXTRA_OPTS/g' -e 's/LDFLAGS/LD_EXTRA_OPTS/g')
115
+LD_EXTRA_OPTS := $(shell dpkg-buildflags --get LDFLAGS)
114 116
 
115 117
 configure: configure-stamp
116 118
 configure-stamp:
... ...
@@ -120,7 +122,8 @@ configure-stamp:
120 122
 			cfg_target=/etc/kamailio/ \
121 123
 			basedir=$(CURDIR)/debian/kamailio \
122 124
 			skip_modules="$(EXCLUDED_MODULES) $(EXTRA_EXCLUDED_MODULES)" \
123
-			$(CUSTOM_BUILDFLAGS) \
125
+			CC_EXTRA_OPTS="$(CC_EXTRA_OPTS)" \
126
+			LD_EXTRA_OPTS="$(LD_EXTRA_OPTS)" \
124 127
 			group_include="kstandard"
125 128
 
126 129
 	touch configure-stamp
Browse code

pkg/kamailio/deb: add new jansson module to kamailio-extra-modules

Victor Seva authored on 09/01/2015 17:39:33
Showing 1 changed files
... ...
@@ -42,7 +42,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
42 42
 			   purple tls outbound websocket autheph dnssec kazoo cnxcc
43 43
 
44 44
 # module groups to be packaged onto kamailio-extra-modules
45
-EXTRA_GROUPS=gzcompress uuid ev
45
+EXTRA_GROUPS=gzcompress uuid ev jansson
46 46
 
47 47
 # name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
48 48
 LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)
Browse code

pkg/kamailio/deb: add cnxcc and kazoo modules

Victor Seva authored on 03/11/2014 15:36:44
Showing 1 changed files
... ...
@@ -39,10 +39,10 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
39 39
 			   ldap xml perl utils lua memcached \
40 40
 			   snmpstats carrierroute xmpp cpl redis python geoip\
41 41
 			   sqlite json mono ims sctp java \
42
-			   purple tls outbound websocket autheph dnssec
42
+			   purple tls outbound websocket autheph dnssec kazoo cnxcc
43 43
 
44 44
 # module groups to be packaged onto kamailio-extra-modules
45
-EXTRA_GROUPS=gzcompress uuid ev kazoo
45
+EXTRA_GROUPS=gzcompress uuid ev
46 46
 
47 47
 # name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
48 48
 LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)
Browse code

pkg/kamailio/deb: Add kazoo module to kamailio-extra-modules

Victor Seva authored on 20/10/2014 11:07:41
Showing 1 changed files
... ...
@@ -42,7 +42,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
42 42
 			   purple tls outbound websocket autheph dnssec
43 43
 
44 44
 # module groups to be packaged onto kamailio-extra-modules
45
-EXTRA_GROUPS=gzcompress uuid ev
45
+EXTRA_GROUPS=gzcompress uuid ev kazoo
46 46
 
47 47
 # name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
48 48
 LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)
Browse code

pkg/kamailio/deb: Add Ubuntu trusty support

Victor Seva authored on 14/06/2014 23:32:32
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,220 @@
1
+#!/usr/bin/make -f
2
+# Sample debian/rules that uses debhelper.
3
+# GNU copyright 1997 to 1999 by Joey Hess.
4
+
5
+DEBVERSION:=$(shell head -n 1 debian/changelog \
6
+                    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
7
+UPVERSION:=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
8
+
9
+FILENAME := kamailio_$(UPVERSION).orig.tar.gz
10
+URL := http://www.kamailio.org/pub/kamailio/$(UPVERSION)/src/kamailio-$(UPVERSION)_src.tar.gz
11
+
12
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
13
+
14
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
15
+DPKG_EXPORT_BUILDFLAGS = 1
16
+include /usr/share/dpkg/buildflags.mk
17
+
18
+# Uncomment this to turn on verbose mode.
19
+#export DH_VERBOSE=1
20
+
21
+export JAVA_HOME=/usr/lib/jvm/java-gcj
22
+
23
+# choose freeradius
24
+export FREERADIUS=1
25
+
26
+# modules not in the "main" kamailio package
27
+EXCLUDED_MODULES=
28
+
29
+# extra modules to skip, because they are not compilable now
30
+# - regardless if they go to the main kamailio package or to some module package,
31
+# they will be excluded from compile and install of all
32
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc
33
+
34
+# module groups that are packaged in seperate packages
35
+# (with the name kamailio-$(group_name)-modules)
36
+# Note: the order is important (should be in dependency order, the one
37
+# on which other depend first)
38
+PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
39
+			   ldap xml perl utils lua memcached \
40
+			   snmpstats carrierroute xmpp cpl redis python geoip\
41
+			   sqlite json mono ims sctp java \
42
+			   purple tls outbound websocket autheph dnssec
43
+
44
+# module groups to be packaged onto kamailio-extra-modules
45
+EXTRA_GROUPS=gzcompress uuid ev
46
+
47
+# name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
48
+LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)
49
+
50
+# directories with possible duplicate libraries (that should be deleted
51
+# from current module* packages)
52
+DUP_LIBS_DIRS=$(CURDIR)/debian/kamailio/usr/$(LIBDIR)/kamailio \
53
+			$(CURDIR)/debian/kamailio-db-modules/usr/$(LIBDIR)/kamailio
54
+
55
+# "function" to get package short name out of a dir/module_name
56
+# it also transforms db_foo into foo
57
+mod_name=$(subst db_,,$(lastword $(subst /, ,$(1))))
58
+
59
+define PACKAGE_GRP_BUILD_template
60
+	# package all the modules in PACKAGE_GROUPS in separate packages
61
+	$(foreach grp,$(PACKAGE_GROUPS EXTRA_GROUPS),\
62
+		$(MAKE) every-module group_include="k$(grp)"
63
+	)
64
+endef
65
+
66
+
67
+define PACKAGE_GRP_INSTALL_template
68
+	$(foreach grp,$(PACKAGE_GROUPS),\
69
+		$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(grp)" \
70
+		basedir=$(CURDIR)/debian/kamailio-$(grp)-modules \
71
+		cfg_prefix=$(CURDIR)/debian/kamailio-$(grp)-modules \
72
+		doc-dir=share/doc/kamailio-$(grp)-modules