Browse code

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

This reverts commit 6f162fc63d0503637c4c3c96ab4b13189239250f.

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