diff options
| author | Sebastian Kemper <sebastian_ml@gmx.net> | 2018-01-10 22:02:08 +0100 |
|---|---|---|
| committer | Sebastian Kemper <sebastian_ml@gmx.net> | 2018-01-10 22:02:10 +0100 |
| commit | 91756021ca25ab51194bd293e1114de0c63421c2 (patch) | |
| tree | 904f56b1dfda1e53ebe2529d6c04c539dfa488cc | |
| parent | 6fbaa37f320adda7af8d954065f4a77fc6e0c735 (diff) | |
asterisk-11.x: add end-of-life warning
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
| -rw-r--r-- | net/asterisk-11.x/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/net/asterisk-11.x/Makefile b/net/asterisk-11.x/Makefile index a1f2b04..77212d2 100644 --- a/net/asterisk-11.x/Makefile +++ b/net/asterisk-11.x/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=asterisk11 PKG_VERSION:=11.22.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/ @@ -143,6 +143,20 @@ $(foreach m,$(AST_EMB_MODULES),$(call Package/asterisk11/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 11 WARNING |" + echo "o-------------------------------------------------------------------o" + echo "| Asterisk 11 is end-of-life. You should upgrade to Asterisk 13. |" + echo "o-------------------------------------------------------------=^_^=-o" + echo +fi +exit 0 +endef + define Package/asterisk11-sounds $(call Package/asterisk11/Default) TITLE:=Sounds support |
