From 111a6b1df4fd880f625ccdbde5be05472ecacf06 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Wed, 10 Jan 2018 21:54:40 +0100 Subject: [PATCH] asterisk-1.8: add end-of-life warning Signed-off-by: Sebastian Kemper --- net/asterisk-1.8.x/Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 -- 2.30.2