From: Sebastian Kemper Date: Wed, 10 Jan 2018 20:54:40 +0000 (+0100) Subject: asterisk-1.8: add end-of-life warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=111a6b1df4fd880f625ccdbde5be05472ecacf06;p=feed%2Ftelephony.git asterisk-1.8: add end-of-life warning Signed-off-by: Sebastian Kemper --- diff --git a/net/asterisk-1.8.x/Makefile b/net/asterisk-1.8.x/Makefile index 26854d0..49177eb 100644 --- a/net/asterisk-1.8.x/Makefile +++ b/net/asterisk-1.8.x/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=asterisk18 PKG_VERSION:=1.8.32.3 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/ @@ -129,6 +129,20 @@ $(foreach m,$(AST_EMB_MODULES),$(call Package/asterisk18/install/module,$(1),$(m $(INSTALL_BIN) ./files/asterisk.init $(1)/etc/init.d/asterisk endef +define Package/$(PKG_NAME)/postinst +#!/bin/sh +if [ -z "$${IPKG_INSTROOT}" ]; then + echo + echo "o-------------------------------------------------------------------o" + echo "| Asterisk 1.8 WARNING |" + echo "o-------------------------------------------------------------------o" + echo "| Asterisk 1.8 is end-of-life. You should upgrade to Asterisk 13. |" + echo "o-------------------------------------------------------------=^_^=-o" + echo +fi +exit 0 +endef + define Package/asterisk18-sounds $(call Package/asterisk18/Default) TITLE:=Sounds support