Merge pull request #697 from micmac1/dongle-perms-dirs

asterisk/asterisk-chan-dongle: address permission issues
This commit is contained in:
micmac1 2021-10-23 20:06:14 +02:00 committed by GitHub
commit 96d4857ba5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 5 deletions

View file

@ -13,7 +13,7 @@ PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/wdoekes/asterisk-chan-dongle.git
PKG_SOURCE_VERSION:=3d2a97f26ba84473a0926a9fe9a32e451a56bc36
PKG_SOURCE_DATE=2021-09-29
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MIRROR_HASH:=b5baf737d39d522fa9b7055dea72c2d3241c272b20354fdf2a3bd09cce274844
PKG_FIXUP:=autoreconf
@ -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))

View 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?

View 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"

View file

@ -51,7 +51,6 @@ start_service() {
procd_open_instance
procd_set_param command $COMMAND
procd_append_param command \
-G "$NAME" \
-U "$NAME" \
$options \
-f