Module: kamailio
Branch: master
Commit: b141f267ce1fe1068de1541d8bd5b5dc53c1d6d9
URL:
https://github.com/kamailio/kamailio/commit/b141f267ce1fe1068de1541d8bd5b5d…
Author: Christian Marangi <ansuelsmth(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-06T16:13:55+01:00
kamcmd: Makefile - use CUSTOM_NAME for specifying custom binary name
- previous use of NAME can clash with environment variable NAME that
could be set by OS or by Kamailio modules installation
- GH #3628
---
Modified: utils/kamcmd/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/b141f267ce1fe1068de1541d8bd5b5d…
Patch:
https://github.com/kamailio/kamailio/commit/b141f267ce1fe1068de1541d8bd5b5d…
---
diff --git a/utils/kamcmd/Makefile b/utils/kamcmd/Makefile
index 1fd923d8554..c8298a8662c 100644
--- a/utils/kamcmd/Makefile
+++ b/utils/kamcmd/Makefile
@@ -8,10 +8,15 @@ include $(COREPATH)/Makefile.targets
auto_gen=
RELEASE=1.5
UTIL_SRC_NAME=kamcmd
+# Pass CUSTOM_NAME to overwrite the kamcmd/sercmd bin name
+ifeq ($(CUSTOM_NAME),)
ifeq ($(FLAVOUR),ser)
- NAME?=sercmd
+ NAME=sercmd
else
- NAME?=kamcmd
+ NAME=kamcmd
+endif
+else
+ NAME=$(CUSTOM_NAME)
endif
readline_localpath=$(LOCALBASE)/include/readline/readline.h