Browse code

pkg/kamailio/deb: fix tlsa build

* remove unused mod_name definition

Victor Seva authored on 18/06/2022 22:38:03
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
-# "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))))
112
+#tlsa
113
+export LIBSSL_STATIC_SRCLIB=yes
114
+export LIBSSL_STATIC_SRCPATH=/usr/$(LIBDIR)
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
-# "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))))
112
+#tlsa
113
+export LIBSSL_STATIC_SRCLIB=yes
114
+export LIBSSL_STATIC_SRCPATH=/usr/$(LIBDIR)
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
-# "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))))
112
+#tlsa
113
+export LIBSSL_STATIC_SRCLIB=yes
114
+export LIBSSL_STATIC_SRCPATH=/usr/$(LIBDIR)
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
-# "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))))
112
+#tlsa
113
+export LIBSSL_STATIC_SRCLIB=yes
114
+export LIBSSL_STATIC_SRCPATH=/usr/$(LIBDIR)
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
-# "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
... ...
@@ -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
-# "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))))
112
+#tlsa
113
+export LIBSSL_STATIC_SRCLIB=yes
114
+export LIBSSL_STATIC_SRCPATH=/usr/$(LIBDIR)
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
-# "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
... ...
@@ -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
-# "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))))
112
+#tlsa
113
+export LIBSSL_STATIC_SRCLIB=yes
114
+export LIBSSL_STATIC_SRCPATH=/usr/$(LIBDIR)
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
-# "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))))
112
+#tlsa
113
+export LIBSSL_STATIC_SRCLIB=yes
114
+export LIBSSL_STATIC_SRCPATH=/usr/$(LIBDIR)
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
-# "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
... ...
@@ -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
... ...
@@ -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
-# "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))))
112
+#tlsa
113
+export LIBSSL_STATIC_SRCLIB=yes
114
+export LIBSSL_STATIC_SRCPATH=/usr/$(LIBDIR)
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
-# "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