From 04d2b6822ebd105d18e801d60d607ca8cb2bac60 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Mon, 5 Nov 2018 22:36:20 +0100 Subject: [PATCH] kamailio-5.x: add a note about the uci file Echoes a message upon installation and points the user to /etc/config/kamailio. Signed-off-by: Sebastian Kemper --- net/kamailio-5.x/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/net/kamailio-5.x/Makefile b/net/kamailio-5.x/Makefile index 899c573..7b5bf67 100644 --- a/net/kamailio-5.x/Makefile +++ b/net/kamailio-5.x/Makefile @@ -280,6 +280,20 @@ $(foreach c,kamailio.cfg kamctlrc,$(call Package/kamailio5/install/conffile,$(1) $(1)/usr/lib/kamailio/ endef +define Package/kamailio5/postinst +#!/bin/sh +if [ -z "$${IPKG_INSTROOT}" ]; then + echo + echo "o-------------------------------------------------------------------o" + echo "| Kamailio note |" + echo "o-------------------------------------------------------------------o" + echo "| Edit /etc/config/kamailio to change basic init configuration. |" + echo "o-------------------------------------------------------------=^_^=-o" + echo +fi +exit 0 +endef + define Package/kamailio5/install/conffile $(INSTALL_DIR) $(1)/etc/kamailio $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/kamailio/$(2) $(1)/etc/kamailio -- 2.30.2