From d3ebba27fdc994783004a35ffa7e3f9f49108950 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 11 Feb 2018 19:08:58 +0100 Subject: [PATCH 1/9] kamailio-5.x: add snmpstats mibs files This installs the snmp mibs files provided by mod_snmpstats. A patch is added to make the kamailio build system install the files in a proper location in PKG_INSTALL_DIR. Signed-off-by: Sebastian Kemper --- net/kamailio-5.x/Makefile | 5 +++++ .../patches/130-change-snmp-mibs-path.patch | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 net/kamailio-5.x/patches/130-change-snmp-mibs-path.patch diff --git a/net/kamailio-5.x/Makefile b/net/kamailio-5.x/Makefile index ecfad6d..391b3c1 100644 --- a/net/kamailio-5.x/Makefile +++ b/net/kamailio-5.x/Makefile @@ -105,6 +105,11 @@ $(subst $(space),$(newline),$(foreach c,$(6),/etc/kamailio/$(c))) $(call Package/kamailio5/install/module,$$(1),$(1)) $(foreach c,$(6),$(call Package/kamailio5/install/conffile,$$(1),$(c));) $(foreach d,$(5),$(call Package/kamailio5/install/dbfiles,$$(1),$(d));) + ifeq ($(1),snmpstats) + $(INSTALL_DIR) $$(1)/usr/share/snmp/mibs + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/snmp/mibs/* \ + $$(1)/usr/share/snmp/mibs + endif endef $$(eval $$(call BuildPackage,kamailio5-mod-$(subst _,-,$(1)))) endef diff --git a/net/kamailio-5.x/patches/130-change-snmp-mibs-path.patch b/net/kamailio-5.x/patches/130-change-snmp-mibs-path.patch new file mode 100644 index 0000000..fff2a84 --- /dev/null +++ b/net/kamailio-5.x/patches/130-change-snmp-mibs-path.patch @@ -0,0 +1,11 @@ +--- a/src/modules/snmpstats/Makefile ++++ b/src/modules/snmpstats/Makefile +@@ -16,7 +16,7 @@ ifeq ($(BUILDER),) + INSTALLMIBDIR = $(share_prefix)/share/snmp/mibs + else + BUILDAGENTLIBS = $(shell net-snmp-config --netsnmp-agent-libs) +- INSTALLMIBDIR = $(basedir)$(shell net-snmp-config --prefix)/share/snmp/mibs ++ INSTALLMIBDIR = $(basedir)/usr/share/snmp/mibs + endif + + ifeq ($(EMBEDDED_PERL),1) From ae71bd2782e413c11b6286bc5007d2027bb499c4 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 11 Feb 2018 19:13:13 +0100 Subject: [PATCH 2/9] kamailio-5.x: add missing files from mod-xhttp_pi The initial commit for this plugin missed that it comes with a configuration file and extra files that go into /usr/share/kamailio/xhttp_pi. Signed-off-by: Sebastian Kemper --- net/kamailio-5.x/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/kamailio-5.x/Makefile b/net/kamailio-5.x/Makefile index 391b3c1..af94cd0 100644 --- a/net/kamailio-5.x/Makefile +++ b/net/kamailio-5.x/Makefile @@ -337,7 +337,7 @@ $(eval $(call BuildKamailio5Module,websocket,WebSocket transport layer,,+kamaili $(eval $(call BuildKamailio5Module,xcap_client,XCAP Client,,+libcurl)) $(eval $(call BuildKamailio5Module,xcap_server,XCAP server implementation,,+kamailio5-mod-xhttp +kamailio5-mod-sl)) $(eval $(call BuildKamailio5Module,xhttp,Basic HTTP request handling server,,+kamailio5-mod-sl)) -$(eval $(call BuildKamailio5Module,xhttp_pi,HTTP provisioning interface,,+kamailio5-mod-xhttp)) +$(eval $(call BuildKamailio5Module,xhttp_pi,HTTP provisioning interface,,+kamailio5-mod-xhttp,xhttp_pi,pi_framework.xml)) $(eval $(call BuildKamailio5Module,xhttp_rpc,RPC commands handling over HTTP,,+kamailio5-mod-xhttp)) $(eval $(call BuildKamailio5Module,xlog,Advanced logger,,)) $(eval $(call BuildKamailio5Module,xmlops,XML operations,,)) From 4ac7a02e9f8e772c0f539b41a36c689cf5143f99 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 11 Feb 2018 19:18:05 +0100 Subject: [PATCH 3/9] kamailio-5.x: fix RPATH of kamailio modules The kamailio build system provides an RPATH "///usr/lib/kamailio/" when linking. OpenWrt's rstrip.sh inspects this RPATH and drops it. Now the modules cannot find the needed libraries. Fix this by specifying a path that rstrip.sh accepts. Signed-off-by: Sebastian Kemper --- net/kamailio-5.x/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/kamailio-5.x/Makefile b/net/kamailio-5.x/Makefile index af94cd0..47cd103 100644 --- a/net/kamailio-5.x/Makefile +++ b/net/kamailio-5.x/Makefile @@ -116,6 +116,9 @@ endef TARGET_CPPFLAGS+=$(if $(CONFIG_PACKAGE_kamailio5-mod-app-python),-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION)) +# "lib_target" is specified in order for the modules to get a proper +# RPATH, as otherwise they would not find the internal libraries. + PKG_MAKE_ARGS:= \ prefix=/ \ cfg_dir=/etc/kamailio/ \ @@ -126,6 +129,7 @@ PKG_MAKE_ARGS:= \ group_include="standard" \ include_modules="$$(INCL_MODULES)" \ cfg_target:=/etc/kamailio/ \ + lib_target=/usr/lib/kamailio/ \ CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ LD_EXTRA_OPTS="$(TARGET_LDFLAGS)" \ LOCALBASE="$(STAGING_DIR)/usr" \ From bb248ce4ff6f149fb6b8db65c5e0e906cb701591 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 11 Feb 2018 19:22:10 +0100 Subject: [PATCH 4/9] kamailio-5.x: specify run directory When not specifying "run_target" the kamailio build system assumes $(DESTDIR)/var/run/kamailio to be the run directory on the target device. Add the variable to address this. Signed-off-by: Sebastian Kemper --- net/kamailio-5.x/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/net/kamailio-5.x/Makefile b/net/kamailio-5.x/Makefile index 47cd103..48cd5b2 100644 --- a/net/kamailio-5.x/Makefile +++ b/net/kamailio-5.x/Makefile @@ -130,6 +130,7 @@ PKG_MAKE_ARGS:= \ include_modules="$$(INCL_MODULES)" \ cfg_target:=/etc/kamailio/ \ lib_target=/usr/lib/kamailio/ \ + run_target=/var/run/kamailio/ \ CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ LD_EXTRA_OPTS="$(TARGET_LDFLAGS)" \ LOCALBASE="$(STAGING_DIR)/usr" \ From fbf862318fb577a7bc6b2c8e512a8714e1eef53c Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 11 Feb 2018 19:26:40 +0100 Subject: [PATCH 5/9] kamailio-5.x: remove a gratuitous ":" Signed-off-by: Sebastian Kemper --- net/kamailio-5.x/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/kamailio-5.x/Makefile b/net/kamailio-5.x/Makefile index 48cd5b2..1fdacb7 100644 --- a/net/kamailio-5.x/Makefile +++ b/net/kamailio-5.x/Makefile @@ -128,7 +128,7 @@ PKG_MAKE_ARGS:= \ modules_dir=/usr/lib/kamailio/ \ group_include="standard" \ include_modules="$$(INCL_MODULES)" \ - cfg_target:=/etc/kamailio/ \ + cfg_target=/etc/kamailio/ \ lib_target=/usr/lib/kamailio/ \ run_target=/var/run/kamailio/ \ CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ From 0d8d91c39bf7c4ce61e8649ae4fc5662fe51ed64 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 11 Feb 2018 19:29:19 +0100 Subject: [PATCH 6/9] kamailio-5.x: run make cfg The INSTALL file from kamailio suggests to make the target "cfg" first. All settinggs will then be reused when make is called again. This has the side effect that "$(FPIC)" can be dropped from CFLAGS as the build system adds the flags automatically now. Signed-off-by: Sebastian Kemper --- net/kamailio-5.x/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/net/kamailio-5.x/Makefile b/net/kamailio-5.x/Makefile index 1fdacb7..1a65daf 100644 --- a/net/kamailio-5.x/Makefile +++ b/net/kamailio-5.x/Makefile @@ -25,7 +25,9 @@ include $(INCLUDE_DIR)/nls.mk include $(INCLUDE_DIR)/package.mk include $(TOPDIR)/feeds/packages/lang/python/python-host.mk -TARGET_CFLAGS += $(FPIC) -DVERSION_NODATE=1 +# Build reproducibly +TARGET_CFLAGS += -DVERSION_NODATE=1 + PREBUILT_STAMP=$(STAGING_DIR)/stamp/.$(PKG_NAME)_prebuilt TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS) @@ -142,8 +144,9 @@ PKG_MAKE_ARGS:= \ quiet=verbose define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) all - $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) install + $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) cfg + $(MAKE) -C $(PKG_BUILD_DIR) quiet=verbose all + $(MAKE) -C $(PKG_BUILD_DIR) quiet=verbose install endef $(eval $(call BuildPackage,kamailio5)) From 9bf19359870ae1df5113f42fd47fe02792e8ea62 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 11 Feb 2018 19:35:47 +0100 Subject: [PATCH 7/9] kamailio-5.x: make internal libs available always kamailio comes with internal libraries. Some are not built when only the standard group of modules is compiled (i.e. no modules selected in menuconfig). The problem is that there is no way to rely on specific internal libraries being available in the main kamailio package. To fix this this add some modules (if they are not already selected) that will kick of the build of the internal libraries in any case. Signed-off-by: Sebastian Kemper --- net/kamailio-5.x/Makefile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/net/kamailio-5.x/Makefile b/net/kamailio-5.x/Makefile index 1a65daf..d3b2468 100644 --- a/net/kamailio-5.x/Makefile +++ b/net/kamailio-5.x/Makefile @@ -118,9 +118,25 @@ endef TARGET_CPPFLAGS+=$(if $(CONFIG_PACKAGE_kamailio5-mod-app-python),-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION)) +# Kamailio always builds a baseline of packages. The "standard" group is +# the lightest baseline. + +# "uid_gflags" is added to the list of modules to have at least one +# module that kicks off the build of the internal libsrdb2. The module +# has no other extra dependencies. +# +# The same is done with: +# "ims_diameter_server" -> libkamailio_ims +# "carrierroute" -> libtrie + # "lib_target" is specified in order for the modules to get a proper # RPATH, as otherwise they would not find the internal libraries. +EXTRA_MODULES:= \ + $(if $(CONFIG_PACKAGE_kamailio5-mod-carrierroute),,carrierroute) \ + $(if $(CONFIG_PACKAGE_kamailio5-mod-ims-diameter-server),,ims_diameter_server) \ + $(if $(CONFIG_PACKAGE_kamailio5-mod-uid-gflags),,uid_gflags) + PKG_MAKE_ARGS:= \ prefix=/ \ cfg_dir=/etc/kamailio/ \ @@ -129,7 +145,7 @@ PKG_MAKE_ARGS:= \ lib_dir=/usr/lib/kamailio/ \ modules_dir=/usr/lib/kamailio/ \ group_include="standard" \ - include_modules="$$(INCL_MODULES)" \ + include_modules="$$(INCL_MODULES) $(EXTRA_MODULES)" \ cfg_target=/etc/kamailio/ \ lib_target=/usr/lib/kamailio/ \ run_target=/var/run/kamailio/ \ From 28d380b376f636dc55983d5247aea01bbc48ddda Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 11 Feb 2018 19:43:15 +0100 Subject: [PATCH 8/9] kamailio-5.x: move lesser-used internal libraries into packages This commit moves libkamailio-ims & libtrie into their own packages to keep the main package small. Signed-off-by: Sebastian Kemper --- net/kamailio-5.x/Makefile | 56 ++++++++++++++++++++++++++++++--------- 1 file changed, 43 insertions(+), 13 deletions(-) diff --git a/net/kamailio-5.x/Makefile b/net/kamailio-5.x/Makefile index d3b2468..79ff311 100644 --- a/net/kamailio-5.x/Makefile +++ b/net/kamailio-5.x/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=kamailio5 PKG_VERSION:=5.1.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_URL:=https://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz @@ -61,7 +61,7 @@ $(foreach c,kamailio.cfg kamctlrc,$(call Package/kamailio5/install/conffile,$(1) $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/usr/lib/kamailio/modules $(CP) \ - $(PKG_INSTALL_DIR)/usr/lib/kamailio/lib*.so* \ + $(PKG_INSTALL_DIR)/usr/lib/kamailio/lib{srdb1,srdb2,srutils}.so* \ $(1)/usr/lib/kamailio/ $(INSTALL_DIR) $(1)/etc/default $(INSTALL_CONF) \ @@ -91,6 +91,34 @@ define Package/kamailio5/install/module $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/kamailio/modules/$(2).so* $(1)/usr/lib/kamailio/modules/ endef +define Package/kamailio5-libkamailio-ims +$(call Package/kamailio5/Default) + SECTION:=lib + CATEGORY:=Libraries + TITLE:=kamailio5 IMS library + DEPENDS:=kamailio5 +endef + +define Package/kamailio5-libkamailio-ims/install + $(INSTALL_DIR) $(1)/usr/lib/kamailio + $(CP) $(PKG_INSTALL_DIR)/usr/lib/kamailio/libkamailio_ims.so* \ + $(1)/usr/lib/kamailio +endef + +define Package/kamailio5-libtrie +$(call Package/kamailio5/Default) + SECTION:=lib + CATEGORY:=Libraries + TITLE:=kamailio5 trie library + DEPENDS:=kamailio5 +endef + +define Package/kamailio5-libtrie/install + $(INSTALL_DIR) $(1)/usr/lib/kamailio + $(CP) $(PKG_INSTALL_DIR)/usr/lib/kamailio/libtrie.so* \ + $(1)/usr/lib/kamailio +endef + define BuildKamailio5Module define Package/kamailio5-mod-$(subst _,-,$(1)) $$(call Package/kamailio5/Default) @@ -166,6 +194,8 @@ define Build/Compile endef $(eval $(call BuildPackage,kamailio5)) +$(eval $(call BuildPackage,kamailio5-libkamailio-ims)) +$(eval $(call BuildPackage,kamailio5-libtrie)) ################################ # Kamailio module parameters @@ -198,7 +228,7 @@ $(eval $(call BuildKamailio5Module,benchmark,Config benchmark,,)) $(eval $(call BuildKamailio5Module,blst,Blacklisting API for config,,)) $(eval $(call BuildKamailio5Module,call_control,Call Control,,+kamailio5-mod-dialog +kamailio5-mod-pv)) $(eval $(call BuildKamailio5Module,call_obj,Call identification support,,)) -$(eval $(call BuildKamailio5Module,carrierroute,Carrier Route,,)) +$(eval $(call BuildKamailio5Module,carrierroute,Carrier Route,,+kamailio5-libtrie)) $(eval $(call BuildKamailio5Module,cdp,C Diameter Peer,,)) $(eval $(call BuildKamailio5Module,cdp_avp,CDP AVP helper module,,+kamailio5-mod-cdp)) $(eval $(call BuildKamailio5Module,cfgutils,Config utilities,,)) @@ -242,16 +272,16 @@ $(eval $(call BuildKamailio5Module,h350,H.350,,+kamailio5-mod-ldap +libopenldap) $(eval $(call BuildKamailio5Module,htable,Hash Table,,)) $(eval $(call BuildKamailio5Module,http_client,HTTP client using CURL,,+libcurl)) $(eval $(call BuildKamailio5Module,imc,IM conferencing,,+kamailio5-mod-db-mysql +kamailio5-mod-tm)) -$(eval $(call BuildKamailio5Module,ims_auth,IMS authentication module,,+kamailio5-mod-cdp +kamailio5-mod-cdp-avp +kamailio5-mod-tm)) -$(eval $(call BuildKamailio5Module,ims_charging,IMS charging component module,,+kamailio5-mod-cdp +kamailio5-mod-cdp-avp +kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,ims_auth,IMS authentication module,,+kamailio5-libkamailio-ims +kamailio5-mod-cdp +kamailio5-mod-cdp-avp +kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,ims_charging,IMS charging component module,,+kamailio5-libkamailio-ims +kamailio5-mod-cdp +kamailio5-mod-cdp-avp +kamailio5-mod-tm)) $(eval $(call BuildKamailio5Module,ims_dialog,IMS dialog tracking module,,+kamailio5-mod-rr +kamailio5-mod-tm)) -$(eval $(call BuildKamailio5Module,ims_diameter_server,IMS DIAMETER server module,,+kamailio5-mod-cdp +kamailio5-mod-cdp-avp)) -$(eval $(call BuildKamailio5Module,ims_icscf,IMS ICSCF component module,,+kamailio5-mod-cdp +kamailio5-mod-cdp-avp +kamailio5-mod-sl +kamailio5-mod-tm)) -$(eval $(call BuildKamailio5Module,ims_isc,IMS ISC component module,,+kamailio5-mod-ims-usrloc-scscf +kamailio5-mod-tm)) -$(eval $(call BuildKamailio5Module,ims_ocs,MS OCS component module,,+kamailio5-mod-cdp +kamailio5-mod-cdp-avp)) -$(eval $(call BuildKamailio5Module,ims_qos,IMS Diameter Rx interface between PCSCF and PCRF functions,,+kamailio5-mod-cdp +kamailio5-mod-cdp-avp +kamailio5-mod-ims-dialog +kamailio5-mod-ims-usrloc-pcscf +kamailio5-mod-tm)) -$(eval $(call BuildKamailio5Module,ims_registrar_pcscf,MS PCSCF registrar module,,+kamailio5-mod-ims-usrloc-pcscf)) -$(eval $(call BuildKamailio5Module,ims_registrar_scscf,IMS SCSCF registrar module,,+kamailio5-mod-cdp +kamailio5-mod-cdp-avp +kamailio5-mod-ims-usrloc-scscf +kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,ims_diameter_server,IMS DIAMETER server module,,+kamailio5-libkamailio-ims +kamailio5-mod-cdp +kamailio5-mod-cdp-avp)) +$(eval $(call BuildKamailio5Module,ims_icscf,IMS ICSCF component module,,+kamailio5-libkamailio-ims +kamailio5-mod-cdp +kamailio5-mod-cdp-avp +kamailio5-mod-sl +kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,ims_isc,IMS ISC component module,,+kamailio5-libkamailio-ims +kamailio5-mod-ims-usrloc-scscf +kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,ims_ocs,MS OCS component module,,+kamailio5-libkamailio-ims +kamailio5-mod-cdp +kamailio5-mod-cdp-avp)) +$(eval $(call BuildKamailio5Module,ims_qos,IMS Diameter Rx interface between PCSCF and PCRF functions,,+kamailio5-libkamailio-ims +kamailio5-mod-cdp +kamailio5-mod-cdp-avp +kamailio5-mod-ims-dialog +kamailio5-mod-ims-usrloc-pcscf +kamailio5-mod-tm)) +$(eval $(call BuildKamailio5Module,ims_registrar_pcscf,MS PCSCF registrar module,,+kamailio5-libkamailio-ims +kamailio5-mod-ims-usrloc-pcscf)) +$(eval $(call BuildKamailio5Module,ims_registrar_scscf,IMS SCSCF registrar module,,+kamailio5-libkamailio-ims +kamailio5-mod-cdp +kamailio5-mod-cdp-avp +kamailio5-mod-ims-usrloc-scscf +kamailio5-mod-tm)) $(eval $(call BuildKamailio5Module,ims_usrloc_pcscf,IMS PCSCF usrloc module,,)) $(eval $(call BuildKamailio5Module,ims_usrloc_scscf,IMS SCSCF usrloc module,,)) $(eval $(call BuildKamailio5Module,ipops,IP and IPv6 operations,,)) @@ -353,7 +383,7 @@ $(eval $(call BuildKamailio5Module,uid_domain,Domains management,,)) $(eval $(call BuildKamailio5Module,uid_gflags,Global attributes and flags,,)) $(eval $(call BuildKamailio5Module,uid_uri_db,Database URI operations,,)) $(eval $(call BuildKamailio5Module,uri_db,Database-backend SIP URI checking,,)) -$(eval $(call BuildKamailio5Module,userblacklist,User blacklists,,)) +$(eval $(call BuildKamailio5Module,userblacklist,User blacklists,,+kamailio5-libtrie)) $(eval $(call BuildKamailio5Module,usrloc,User location,,)) $(eval $(call BuildKamailio5Module,utils,Misc utilities,,+libcurl +libxml2)) $(eval $(call BuildKamailio5Module,uuid,UUID utilities,,+libuuid)) From 911339603261fb475e2bd126766626474b001697 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 11 Feb 2018 22:30:16 +0100 Subject: [PATCH 9/9] kamailio-5.x: add kambdb_recover utility The recently added mod-db-berkeley comes with a companion utility. Package kambdb_recover so it becomes available. Signed-off-by: Sebastian Kemper --- net/kamailio-5.x/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/net/kamailio-5.x/Makefile b/net/kamailio-5.x/Makefile index 79ff311..5abdb6d 100644 --- a/net/kamailio-5.x/Makefile +++ b/net/kamailio-5.x/Makefile @@ -91,6 +91,20 @@ define Package/kamailio5/install/module $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/kamailio/modules/$(2).so* $(1)/usr/lib/kamailio/modules/ endef +define Package/kamailio5-kambdb_recover +$(call Package/kamailio5/Default) + SECTION:=utils + CATEGORY:=Utilities + TITLE:=kamailio5 kambdb_recover + DEPENDS:=kamailio5 +PACKAGE_kamailio5-kambdb_recover:kamailio5-mod-db-berkeley +endef + +define Package/kamailio5-kambdb_recover/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kambdb_recover \ + $(1)/usr/sbin/kambdb_recover +endef + define Package/kamailio5-libkamailio-ims $(call Package/kamailio5/Default) SECTION:=lib @@ -194,6 +208,7 @@ define Build/Compile endef $(eval $(call BuildPackage,kamailio5)) +$(eval $(call BuildPackage,kamailio5-kambdb_recover)) $(eval $(call BuildPackage,kamailio5-libkamailio-ims)) $(eval $(call BuildPackage,kamailio5-libtrie))