asterisk-chan-dongle: add postinst note 711/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Sat, 23 Oct 2021 16:28:53 +0000 (18:28 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Tue, 9 Nov 2021 18:14:21 +0000 (19:14 +0100)
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)

net/asterisk-chan-dongle/Makefile
net/asterisk-chan-dongle/patches/200-fix-iconv-detection.patch
net/asterisk-chan-dongle/patches/300-use-openwrt-flags.patch

index 58c1212e3b52c33318531e90af977b46ff5810c4..0a359b7fa3fff59dc6c55d1a85888f5e0d9ce92c 100644 (file)
@@ -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))
index be7d93354290967ee7a9ba35c97a64ea14020a3b..cd39b160baa5b10f0afc78e3968c1273931537e8 100644 (file)
@@ -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?
index f1c48500ccf2398f64c49893592dbfa199a3fea9..1dea4b492f9f4b3fbe645b7f12e8a7ad7380cb5f 100644 (file)
@@ -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"