summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Kemper <sebastian_ml@gmx.net>2021-10-23 18:28:53 +0200
committerSebastian Kemper <sebastian_ml@gmx.net>2021-11-09 19:14:21 +0100
commit466cd8511146597702a3ea8e8fc4efb8911e3dc9 (patch)
tree1813c6a096f3ab1cc301977e4771e1e9d8fec539
parente6cf1a7b63254fb6e6a5222c58d62d374e9d0604 (diff)
asterisk-chan-dongle: add postinst note
Provide quick hint to users to sort out possible/likely permission issue. Also refreshes some patches. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net> (cherry picked from commit 829c1cf031ca78ea490543fd908d820ad13fc875)
-rw-r--r--net/asterisk-chan-dongle/Makefile15
-rw-r--r--net/asterisk-chan-dongle/patches/200-fix-iconv-detection.patch2
-rw-r--r--net/asterisk-chan-dongle/patches/300-use-openwrt-flags.patch4
3 files changed, 18 insertions, 3 deletions
diff --git a/net/asterisk-chan-dongle/Makefile b/net/asterisk-chan-dongle/Makefile
index 58c1212..0a359b7 100644
--- a/net/asterisk-chan-dongle/Makefile
+++ b/net/asterisk-chan-dongle/Makefile
@@ -64,4 +64,19 @@ define Package/asterisk-chan-dongle/install
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chan_dongle.so $(1)$(MODULES_DIR)
endef
+define Package/asterisk-chan-dongle/postinst
+#!/bin/sh
+if [ -z "$${IPKG_INSTROOT}" ]; then
+ echo
+ echo "o-------------------------------------------------------------------o"
+ echo "| asterisk-chan-dongle note |"
+ echo "o-------------------------------------------------------------------o"
+ echo "| Adding the \"asterisk\" user to the \"dialout\" group might be |"
+ echo "| required for asterisk to be able to access the dongle. |"
+ echo "o-------------------------------------------------------------=^_^=-o"
+ echo
+fi
+exit 0
+endef
+
$(eval $(call BuildPackage,asterisk-chan-dongle))
diff --git a/net/asterisk-chan-dongle/patches/200-fix-iconv-detection.patch b/net/asterisk-chan-dongle/patches/200-fix-iconv-detection.patch
index be7d933..cd39b16 100644
--- a/net/asterisk-chan-dongle/patches/200-fix-iconv-detection.patch
+++ b/net/asterisk-chan-dongle/patches/200-fix-iconv-detection.patch
@@ -1,6 +1,6 @@
--- a/configure.ac
+++ b/configure.ac
-@@ -83,7 +83,7 @@ fi
+@@ -90,7 +90,7 @@ fi
dnl Checks for libraries.
dnl AC_CHECK_LIB([pthread], [pthread_create]) # should use ast_pthread_join everywhere?
diff --git a/net/asterisk-chan-dongle/patches/300-use-openwrt-flags.patch b/net/asterisk-chan-dongle/patches/300-use-openwrt-flags.patch
index f1c4850..1dea4b4 100644
--- a/net/asterisk-chan-dongle/patches/300-use-openwrt-flags.patch
+++ b/net/asterisk-chan-dongle/patches/300-use-openwrt-flags.patch
@@ -1,8 +1,8 @@
--- a/configure.ac
+++ b/configure.ac
-@@ -224,8 +224,6 @@ dnl Apply options to defines
+@@ -237,8 +237,6 @@ dnl Apply options to defines
if test "x$enable_debug" = "xyes" ; then
- CFLAGS="$CFLAGS -O0 -g"
+ CFLAGS="$CFLAGS -O0 -g3"
AC_DEFINE([__DEBUG__], [1], [Build with debugging])
-else
- CFLAGS="$CFLAGS -O6"