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 829c1cf031
)
This commit is contained in:
parent
e6cf1a7b63
commit
466cd85111
3 changed files with 18 additions and 3 deletions
|
@ -64,4 +64,19 @@ define Package/asterisk-chan-dongle/install
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chan_dongle.so $(1)$(MODULES_DIR)
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chan_dongle.so $(1)$(MODULES_DIR)
|
||||||
endef
|
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))
|
$(eval $(call BuildPackage,asterisk-chan-dongle))
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -83,7 +83,7 @@ fi
|
@@ -90,7 +90,7 @@ fi
|
||||||
|
|
||||||
dnl Checks for libraries.
|
dnl Checks for libraries.
|
||||||
dnl AC_CHECK_LIB([pthread], [pthread_create]) # should use ast_pthread_join everywhere?
|
dnl AC_CHECK_LIB([pthread], [pthread_create]) # should use ast_pthread_join everywhere?
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/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
|
if test "x$enable_debug" = "xyes" ; then
|
||||||
CFLAGS="$CFLAGS -O0 -g"
|
CFLAGS="$CFLAGS -O0 -g3"
|
||||||
AC_DEFINE([__DEBUG__], [1], [Build with debugging])
|
AC_DEFINE([__DEBUG__], [1], [Build with debugging])
|
||||||
-else
|
-else
|
||||||
- CFLAGS="$CFLAGS -O6"
|
- CFLAGS="$CFLAGS -O6"
|
||||||
|
|
Loading…
Reference in a new issue