From: "Christian Pössinger" <christian@poessinger.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: [PATCH] New Package chan-sccp-b. It's a branch from the original chan-sccp implementation of Skinny Client Control Protocol for the Asterisk soft-PBX
Date: Mon, 23 Feb 2009 21:40:24 +0100 [thread overview]
Message-ID: <000801c995f6$f5303340$df9099c0$@com> (raw)
[-- Attachment #1: Type: text/plain, Size: 6370 bytes --]
[PATCH] New Package chan-sccp-b. It's a branch from the original chan-sccp
implementation of Skinny Client Control Protocol for the Asterisk soft-PBX
---
.../enable-all-features.patch | 67
++++++++++++++++++++
.../update-defines.patch | 44 +++++++++++++
packages/asterisk/asterisk-chan-sccp-b_20090110.bb | 34 ++++++++++
3 files changed, 145 insertions(+), 0 deletions(-)
create mode 100644
packages/asterisk/asterisk-chan-sccp-b-20090110/enable-all-features.patch
create mode 100644
packages/asterisk/asterisk-chan-sccp-b-20090110/update-defines.patch
create mode 100644 packages/asterisk/asterisk-chan-sccp-b_20090110.bb
diff --git
a/packages/asterisk/asterisk-chan-sccp-b-20090110/enable-all-features.patch
b/packages/asterisk/asterisk-chan-sccp-b-20090110/enable-all-features.patch
new file mode 100644
index 0000000..cf3a224
--- /dev/null
+++
b/packages/asterisk/asterisk-chan-sccp-b-20090110/enable-all-features.patch
@@ -0,0 +1,67 @@
+diff -Nurd chan_sccp-20090109.orig/create_config.sh
chan_sccp-20090109/create_config.sh
+--- chan_sccp-20090109.orig/create_config.sh 2009-01-09
17:59:21.000000000 +0100
++++ chan_sccp-20090109/create_config.sh 2009-02-20
18:39:04.000000000 +0100
+@@ -78,57 +78,12 @@
+
+ echo >>$CONFIGFILE
+
+-echo -n "Build PARK functions (y/n)[n]?"
+-read key
+-if [ "$key" = "y" ]
+-then
+- echo "#define CS_SCCP_PARK" >>$CONFIGFILE
+-fi
+-
+-echo -n "Build PICKUP functions (y/n)[n]?"
+-read key
+-if [ "$key" = "y" ]
+-then
+- echo "#define CS_SCCP_PICKUP" >>$CONFIGFILE
+-fi
+-
+-echo -n "Build DIRTRFR functions (y/n)[n]?"
+-read key
+-if [ "$key" = "y" ]
+-then
+- echo "#define CS_SCCP_DIRTRFR" >>$CONFIGFILE
+-fi
+-
+-echo -n "Build CONFERENCE test functions (y/n)[n]?"
+-read key
+-if [ "$key" = "y" ]
+-then
+- echo "#define CS_SCCP_CONFERENCE" >>$CONFIGFILE
+-fi
+-
+-if [ "$REALTIME_USEABLE" = "1" ]
+-then
+- echo -n "Use realtime functionality (y/n)[n]?"
+- read key
+- if [ "$key" = "y" ]
+- then
+- echo "#define CS_SCCP_REALTIME" >>$CONFIGFILE
+- fi
+-fi
+-
+-echo -n "Enable manager events (y/n)[n]?"
+-read key
+-if [ "$key" = "y" ]
+-then
+- echo "#define CS_MANAGER_EVENTS" >>$CONFIGFILE
+-fi
+-
+-echo -n "Debug SCCP indications (y/n)[n]?"
+-read key
+-if [ "$key" = "y" ]
+-then
+- echo "#define CS_DEBUG_INDICATIONS" >>$CONFIGFILE
+-fi
++echo "#define CS_SCCP_PARK" >>$CONFIGFILE
++echo "#define CS_SCCP_PICKUP" >>$CONFIGFILE
++echo "#define CS_SCCP_DIRTRFR" >>$CONFIGFILE
++echo "#define CS_SCCP_CONFERENCE" >>$CONFIGFILE
++echo "#define CS_SCCP_REALTIME" >>$CONFIGFILE
++echo "#define CS_MANAGER_EVENTS" >>$CONFIGFILE
+
+ if [ "$REALTIME_USEABLE" = "1" ]
+ then
diff --git
a/packages/asterisk/asterisk-chan-sccp-b-20090110/update-defines.patch
b/packages/asterisk/asterisk-chan-sccp-b-20090110/update-defines.patch
new file mode 100644
index 0000000..9efc138
--- /dev/null
+++ b/packages/asterisk/asterisk-chan-sccp-b-20090110/update-defines.patch
@@ -0,0 +1,44 @@
+diff -Nurd chan_sccp-20090109.orig/chan_sccp.c
chan_sccp-20090109/chan_sccp.c
+--- chan_sccp-20090109.orig/chan_sccp.c 2009-01-09
17:59:21.000000000 +0100
++++ chan_sccp-20090109/chan_sccp.c 2009-02-19 09:10:21.000000000 +0100
+@@ -23,6 +23,7 @@
+ *
+ */
+ #define AST_MODULE "chan_sccp"
++#define SCCP_BRANCH "v2"
+
+ #include "config.h"
+
+diff -Nurd chan_sccp-20090109.orig/chan_sccp.h
chan_sccp-20090109/chan_sccp.h
+--- chan_sccp-20090109.orig/chan_sccp.h 2009-01-09
17:59:21.000000000 +0100
++++ chan_sccp-20090109/chan_sccp.h 2009-02-19 09:13:05.000000000 +0100
+@@ -132,13 +132,13 @@
+ #endif
+
+ /* Versioning */
+-#ifndef SCCP_VERSION
+ #define SCCP_VERSION "20090109"
+-#endif
+
+-#ifndef SCCP_BRANCH
+-#define SCCP_BRANCH "trunk"
+-#endif
++#define SCCP_BRANCH "v2"
++
++#define BUILD_USER "openembedded"
++
++#define BUILD_DATE "--"
+
+ #define SCCP_LOCK_TRIES 10
+ #define SCCP_LOCK_USLEEP 100
+diff -Nurd chan_sccp-20090109.orig/Makefile chan_sccp-20090109/Makefile
+--- chan_sccp-20090109.orig/Makefile 2009-01-09 17:59:21.000000000 +0100
++++ chan_sccp-20090109/Makefile 2009-02-19 09:10:01.000000000 +0100
+@@ -39,7 +39,6 @@
+ #CFLAGS+= -march=$(PROC)
+ CFLAGS+= -Iinclude -D_REENTRANT -D_GNU_SOURCE -DCRYPTO -fPIC -pipe -Wall
+ CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -Wlong-long
+-CFLAGS+= -D'SCCP_BRANCH="v2"' -D'SCCP_SVNVERSION="$(shell svnversion -n
.)"' -D'BUILD_USER="$(shell whoami)"' -D'BUILD_DATE="$(shell date)"'
+ CFLAGS+= $(DEBUG)
+
+ LINTOPTS=-linelen 1000
diff --git a/packages/asterisk/asterisk-chan-sccp-b_20090110.bb
b/packages/asterisk/asterisk-chan-sccp-b_20090110.bb
new file mode 100644
index 0000000..fc97816
--- /dev/null
+++ b/packages/asterisk/asterisk-chan-sccp-b_20090110.bb
@@ -0,0 +1,34 @@
+DESCRIPTION = "A branch from the original chan-sccp implementation of
Skinny Client Control Protocol for the Asterisk soft-PBX"
+HOMEPAGE="http://sourceforge.net/projects/chan-sccp-b"
+LICENSE = "GPL"
+
+DEPENDS = "asterisk"
+
+PACKAGES = "${PN} ${PN}-dbg"
+
+PARALLEL_MAKE=""
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/chan-sccp-b/chan_sccp_20090110.tar.gz \
+ file://enable-all-features.patch;patch=1\
+ file://update-defines.patch;patch=1\
+ "
+S = "${WORKDIR}/chan_sccp-20090109"
+
+FILES_${PN} = "/usr/lib/asterisk/modules/chan_sccp.so \
+ ${sysconfdir}/asterisk/sccp.conf"
+
+FILES_${PN}-dbg = "/usr/lib/asterisk/modules/.debug/chan_sccp.so"
+
+do_compile () {
+ export STAGING_INCDIR=${STAGING_INCDIR}
+ sed -e
's/ASTERISK_HEADER_DIR=$(INSTALL_PREFIX)\/usr\/include/ASTERISK_HEADER_DIR=\
$\{STAGING_INCDIR\}/' -i Makefile
+ oe_runmake
+}
+
+do_install () {
+ install -m 0755 -d ${D}/${sysconfdir}/asterisk
+ install -m 0755 -d ${D}/usr/lib/asterisk/modules/.debug
+ install -m 0755 ${S}/chan_sccp.so ${D}/usr/lib/asterisk/modules/
+ install -m 0664 ${S}/chan_sccp.so
${D}/usr/lib/asterisk/modules/.debug
+ install -m 0664 ${S}/conf/sccp.conf ${D}/${sysconfdir}/asterisk
+}
--
1.5.4.3
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3850 bytes --]
reply other threads:[~2009-02-23 20:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000801c995f6$f5303340$df9099c0$@com' \
--to=christian@poessinger.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox