[oe] [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

Christian Pössinger christian at poessinger.com
Mon Feb 23 20:40:24 UTC 2009


[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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3850 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20090223/59467be4/attachment-0002.bin>


More information about the Openembedded-devel mailing list