asterisk-1.8: add end-of-life warning
authorSebastian Kemper <sebastian_ml@gmx.net>
Wed, 10 Jan 2018 20:54:40 +0000 (21:54 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Wed, 10 Jan 2018 20:54:40 +0000 (21:54 +0100)
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/asterisk-1.8.x/Makefile

index 26854d0415b8d3f0f6c1f8d5a94fad4628604da2..49177eb2f9b25a267ae83991ab549cbc817a2d5d 100644 (file)
@@ -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