All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Added new recipe for a newer version of the Asterisk Soft-PBX
@ 2009-02-28 10:49 Christian Pössinger
  2009-03-01  3:39 ` Otavio Salvador
  0 siblings, 1 reply; 9+ messages in thread
From: Christian Pössinger @ 2009-02-28 10:49 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 14010 bytes --]

---
 packages/asterisk/asterisk-1.4.23.1/Makefile.patch |   21 +++
 packages/asterisk/asterisk-1.4.23.1/init           |   79 ++++++++++
 packages/asterisk/asterisk-1.4.23.1/logrotate      |   12 ++
 .../asterisk/asterisk-1.4.23.1/sounds.xml.patch    |   19 +++
 packages/asterisk/asterisk-1.4.23.1/volatiles      |    7 +
 packages/asterisk/asterisk_1.4.23.1.bb             |  165
++++++++++++++++++++
 6 files changed, 303 insertions(+), 0 deletions(-)
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/Makefile.patch
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/init
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/logrotate
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/sounds.xml.patch
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/volatiles
 create mode 100644 packages/asterisk/asterisk_1.4.23.1.bb

diff --git a/packages/asterisk/asterisk-1.4.23.1/Makefile.patch
b/packages/asterisk/asterisk-1.4.23.1/Makefile.patch
new file mode 100644
index 0000000..98345f4
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/Makefile.patch
@@ -0,0 +1,21 @@
+diff -Nurd asterisk-1.4.23.1.orig/Makefile asterisk-1.4.23.1/Makefile
+--- asterisk-1.4.23.1.orig/Makefile	2008-11-29 17:58:29.000000000 +0100
++++ asterisk-1.4.23.1/Makefile	2009-02-25 11:17:22.000000000 +0100
+@@ -125,7 +125,7 @@
+   ASTSBINDIR=$(sbindir)
+   ASTSPOOLDIR=$(localstatedir)/spool/asterisk
+   ASTLOGDIR=$(localstatedir)/log/asterisk
+-  ASTVARRUNDIR=$(localstatedir)/run
++  ASTVARRUNDIR=$(localstatedir)/run/asterisk
+   ASTMANDIR=$(mandir)
+ ifneq ($(findstring BSD,$(OSARCH)),)
+   ASTVARLIBDIR=$(prefix)/share/asterisk
+@@ -513,7 +513,7 @@
+ 	@exit 1
+ endif
+ 
+-install: badshell datafiles bininstall
++install: badshell datafiles bininstall samples
+ 	@if [ -x /usr/sbin/asterisk-post-install ]; then \
+ 		/usr/sbin/asterisk-post-install $(DESTDIR) . ; \
+ 	fi
diff --git a/packages/asterisk/asterisk-1.4.23.1/init
b/packages/asterisk/asterisk-1.4.23.1/init
new file mode 100644
index 0000000..5200a6f
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/init
@@ -0,0 +1,79 @@
+#! /bin/sh 
+#
+# This is an init script for openembedded
+# Copy it to /etc/init.d/callweaver and type
+# > update-rc.d asterisk defaults 60
+#
+asterisk=/usr/sbin/asterisk
+pidfile=/var/run/asterisk/asterisk.pid
+asterisk_args="-npqT -U asterisk -G asterisk"
+
+test -x "$asterisk" || exit 0
+
+case "$1" in
+  start)
+    mkdir -p /var/volatile/run/asterisk
+    chown asterisk:asterisk /var/volatile/run/asterisk
+    echo -n "Starting Asterisk"
+    start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
+    echo "."
+    ;;
+  stop)
+    echo -n "Stopping Asterisk"
+    $asterisk -rx "stop gracefully"
+    sleep 4
+    if [ -f $pidfile ]; then
+      start-stop-daemon --stop --quiet --pidfile $pidfile
+    fi
+    echo "."
+    ;;
+  force-stop)
+    echo -n "Stopping Asterisk"
+    $asterisk -rx "stop now"
+    sleep 2
+    if [ -f $pidfile ]; then
+      start-stop-daemon --stop --quiet --pidfile $pidfile
+    fi
+    echo "."
+    ;;
+  restart)
+    echo -n "Restarting Asterisk"
+    if [ -f $pidfile ]; then
+      $asterisk -rx "restart gracefully"
+      sleep 2
+    else
+      start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
+    fi
+    echo "."
+    ;;
+  force-restart)
+    echo -n "Forcibly Restarting Asterisk"
+    if [ -f $pidfile ]; then
+      $asterisk -rx "restart now"
+      sleep 2
+    else
+      start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
+    fi
+    echo "."
+    ;;
+  reload)
+    echo -n "Reloading Asterisk Configuration"
+    if [ -f $pidfile ]; then
+      $asterisk -rx "reload"
+    else
+      start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
+    fi
+    echo "."
+    ;;
+  logger-reload)
+    if [ -f $pidfile ]; then
+      $asterisk -rx "logger reload"
+    fi
+    ;;
+  *)
+    echo "Usage: /etc/init.d/asterisk
{start|stop|force-stop|restart|force-restart|reload|logger-reload}"
+    exit 1
+esac
+
+exit 0
+
diff --git a/packages/asterisk/asterisk-1.4.23.1/logrotate
b/packages/asterisk/asterisk-1.4.23.1/logrotate
new file mode 100644
index 0000000..dfd25ee
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/logrotate
@@ -0,0 +1,12 @@
+/var/log/asterisk/cdr-csv/Master.csv
/var/log/asterisk/cdr-custom/Master.csv /var/log/asterisk/queue_log
/var/log/asterisk/event_log /var/log/asterisk/messages {
+    daily
+    missingok
+    compress
+    delaycompress
+    rotate 30
+    sharedscripts
+    postrotate
+      /etc/init.d/asterisk logger-reload
+    endscript
+}
+
diff --git a/packages/asterisk/asterisk-1.4.23.1/sounds.xml.patch
b/packages/asterisk/asterisk-1.4.23.1/sounds.xml.patch
new file mode 100644
index 0000000..2a02bf6
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/sounds.xml.patch
@@ -0,0 +1,19 @@
+diff -Nurd asterisk-1.4.23.1.orig/sounds/sounds.xml
asterisk-1.4.23.1/sounds/sounds.xml
+--- asterisk-1.4.23.1.orig/sounds/sounds.xml	2006-10-25
19:08:58.000000000 +0200
++++ asterisk-1.4.23.1/sounds/sounds.xml	2009-02-25
11:19:13.000000000 +0100
+@@ -6,7 +6,6 @@
+ 		<member name="CORE-SOUNDS-EN-ALAW" displayname="English,
a-Law format">
+ 		</member>
+ 		<member name="CORE-SOUNDS-EN-GSM" displayname="English, GSM
format" >
+-			<defaultenabled>yes</defaultenabled>
+ 		</member>
+ 		<member name="CORE-SOUNDS-EN-G729" displayname="English,
G.729 format">
+ 		</member>
+@@ -39,7 +38,6 @@
+ 	</category>
+ 	<category name="MENUSELECT_MOH" displayname="Music On Hold File
Packages" positive_output="yes">
+ 		<member name="MOH-FREEPLAY-WAV" displayname="FreePlay Music
On Hold Files, WAV format" >
+-			<defaultenabled>yes</defaultenabled>
+ 		</member>
+ 		<member name="MOH-FREEPLAY-ULAW" displayname="FreePlay Music
On Hold Files, mu-Law format" >
+ 		</member>
diff --git a/packages/asterisk/asterisk-1.4.23.1/volatiles
b/packages/asterisk/asterisk-1.4.23.1/volatiles
new file mode 100644
index 0000000..c68e786
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/volatiles
@@ -0,0 +1,7 @@
+d asterisk asterisk 0775 /var/run/asterisk none
+d asterisk asterisk 0775 /var/lib/asterisk none
+d asterisk asterisk 0775 /var/log/asterisk none
+d asterisk asterisk 0775 /var/log/asterisk/cdr-csv none
+d asterisk asterisk 0775 /var/log/asterisk/cdr-custom none
+d asterisk asterisk 0775 /var/spool/asterisk/outgoing none
+d asterisk asterisk 0775 /var/spool/asterisk/voicemail none
diff --git a/packages/asterisk/asterisk_1.4.23.1.bb
b/packages/asterisk/asterisk_1.4.23.1.bb
new file mode 100644
index 0000000..f9f8399
--- /dev/null
+++ b/packages/asterisk/asterisk_1.4.23.1.bb
@@ -0,0 +1,165 @@
+# Copyright (C) 2007-2008, Stelios Koroneos - Digital OPSiS, All Rights
Reserved
+# Released under the MIT license (see packages/COPYING)
+DESCRIPTION = "The Asterisk open source software PBX"
+HOMEPAGE = "http://www.asterisk.org"
+LICENSE = "GPLv2"
+PRIORITY = "optional"
+SECTION = "console/telephony"
+DEPENDS = "speex readline zlib openssl curl popt gnutls sqlite libogg
libvorbis"
+#RRECOMMENDS_${PN} = "logrotate"
+
+SRC_URI="http://downloads.digium.com/pub/asterisk/releases/asterisk-${PV}.t
ar.gz \
+	file://sounds.xml.patch;patch=1 \
+	file://Makefile.patch;patch=1 \
+	file://logrotate \
+	file://volatiles \
+	file://init"
+
+ARCH_efika="powerpc"
+ARCH_dht-walnut="powerpc"
+ARCH_magicbox="powerpc"
+ARCH_sequoia="powerpc"
+
+INITSCRIPT_NAME = "asterisk"
+INITSCRIPT_PARAMS = "defaults 60"
+
+inherit autotools update-rc.d
+
+EXTRA_OECONF =  "--with-ssl=${STAGING_EXECPREFIXDIR} \
+			--with-z=${STAGING_EXECPREFIXDIR} \
+			--with-curl=${STAGING_EXECPREFIXDIR} \
+			--with-termcap=${STAGING_EXECPREFIXDIR} \
+			--with-ogg=${STAGING_EXECPREFIXDIR} \
+			--with-vorbis=${STAGING_EXECPREFIXDIR} \
+			--with-sqlite=${STAGING_EXECPREFIXDIR} \
+			--with-popt=${STAGING_EXECPREFIXDIR} \
+			--with-gnutls=${STAGING_EXECPREFIXDIR} \
+			--without-curses\
+			--with-ncurses=${STAGING_EXECPREFIXDIR} \
+			--without-imap\
+			--without-netsnmp\
+			--without-odbc\
+			--without-osptk\
+			--without-nbs\
+			--without-pwlib\
+			--without-radius\
+			--without-tds\
+			--without-postgres\
+			--without-zaptel\
+			"
+
+#export NOISY_BUILD=yes
+
+export ASTCFLAGS = "-fsigned-char -I${STAGING_INCDIR} -DPATH_MAX=4096"
+export ASTLDFLAGS="${LDFLAGS} -lpthread -ldl -lresolv "
+export PROC="${ARCH}"
+
+do_configure_prepend () {
+	sed -i 's:/var:${localstatedir}:' ${WORKDIR}/logrotate
+	sed -i 's:/etc/init.d:${sysconfdir}/init.d:' ${WORKDIR}/logrotate
+	sed -i 's:/var:${localstatedir}:' ${WORKDIR}/volatiles
+}
+
+do_configure () {
+	# Looks like rebuilding configure doesn't work, so we are skipping
+	# that and are just using the shipped one
+	# gnu-configize
+	# libtoolize --force
+	oe_runconf
+}
+
+
+do_compile() {
+        (
+         #make sure that menuselect gets build using host toolchain
+         unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS RANLIB
+         cd menuselect 
+         ./configure
+         oe_runmake
+         cd ../
+        ) || exit 1
+        oe_runmake
+}
+
+do_install_append() {
+        install -d ${D}${sysconfdir}/init.d/
+	install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/asterisk
+	install -c -D -m 644 ${WORKDIR}/logrotate
${D}${sysconfdir}/logrotate.d/asterisk
+	install -c -D -m 644 ${WORKDIR}/volatiles
${D}${sysconfdir}/default/volatiles/asterisk
+}
+
+pkg_postinst_prepend() {
+	grep -q asterisk  ${sysconfdir}/group || addgroup --system asterisk
+	grep -q asterisk ${sysconfdir}/passwd || adduser --system --home
${localstatedir}/run/asterisk --no-create-home --disabled-password --ingroup
asterisk -s ${base_bindir}/false asterisk
+	chown -R asterisk:asterisk ${libdir}/asterisk
${localstatedir}/lib/asterisk ${localstatedir}/spool/asterisk
${localstatedir}/log/asterisk ${localstatedir}/run/asterisk
${sysconfdir}/asterisk
+}
+
+do_stage() {
+        autotools_stage_all
+}
+
+FILES_${PN} += "${libdir}/asterisk/modules/*"
+FILES_${PN}-dbg += "${libdir}/asterisk/modules/.debug \
+                    ${localstatedir}/lib/asterisk/*/.debug"
+
+CONFFILES_${PN} += "${sysconfdir}/asterisk/adsi.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/adtranvofr.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/agents.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/alarmreceiver.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/alsa.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/amd.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/asterisk.adsi"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/asterisk.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_custom.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_manager.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_odbc.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_pgsql.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_tds.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/codecs.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/dnsmgr.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/dundi.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/enum.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/extconfig.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/extensions.ael"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/extensions.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/features.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/festival.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/followme.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/func_odbc.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/gtalk.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/h323.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/http.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/iax.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/iaxprov.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/indications.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/jabber.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/logger.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/manager.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/meetme.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/mgcp.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/misdn.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/modules.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/musiconhold.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/muted.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/osp.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/oss.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/phone.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/privacy.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/queues.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/res_odbc.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/res_snmp.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/rpt.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/rtp.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/say.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/sip.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/sip_notify.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/skinny.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/sla.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/smdi.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/telcordia-1.adsi"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/udptl.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/users.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/voicemail.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/vpb.conf"
+CONFFILES_${PN} += "${sysconfdir}/logrotate.d/asterisk"
-- 
1.5.4.3


[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3850 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] Added new recipe for a newer version of the Asterisk Soft-PBX
  2009-02-28 10:49 [PATCH] Added new recipe for a newer version of the Asterisk Soft-PBX Christian Pössinger
@ 2009-03-01  3:39 ` Otavio Salvador
  2009-03-07 13:16   ` Christian Pössinger
  0 siblings, 1 reply; 9+ messages in thread
From: Otavio Salvador @ 2009-03-01  3:39 UTC (permalink / raw)
  To: openembedded-devel

Christian Pössinger <christian@poessinger.com> writes:

> ---
>  packages/asterisk/asterisk-1.4.23.1/Makefile.patch |   21 +++
>  packages/asterisk/asterisk-1.4.23.1/init           |   79 ++++++++++
>  packages/asterisk/asterisk-1.4.23.1/logrotate      |   12 ++
>  .../asterisk/asterisk-1.4.23.1/sounds.xml.patch    |   19 +++
>  packages/asterisk/asterisk-1.4.23.1/volatiles      |    7 +
>  packages/asterisk/asterisk_1.4.23.1.bb             |  165 ++++++++++++++++++++

Please add the checksums.ini required changes ;-)

-- 
Otavio Salvador                  O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Added new recipe for a newer version of the Asterisk Soft-PBX
  2009-03-01  3:39 ` Otavio Salvador
@ 2009-03-07 13:16   ` Christian Pössinger
  2009-03-09 16:54     ` Otavio Salvador
  0 siblings, 1 reply; 9+ messages in thread
From: Christian Pössinger @ 2009-03-07 13:16 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 813 bytes --]

Otavio Salvador <otavio@ossystems.com.br> wrote:
> Christian Pössinger <christian@poessinger.com> writes:
> 
> > ---
> >  packages/asterisk/asterisk-1.4.23.1/Makefile.patch |   21 +++
> >  packages/asterisk/asterisk-1.4.23.1/init           |   79 ++++++++++
> >  packages/asterisk/asterisk-1.4.23.1/logrotate      |   12 ++
> >  .../asterisk/asterisk-1.4.23.1/sounds.xml.patch    |   19 +++
> >  packages/asterisk/asterisk-1.4.23.1/volatiles      |    7 +
> >  packages/asterisk/asterisk_1.4.23.1.bb             |  165
> ++++++++++++++++++++
> 
> Please add the checksums.ini required changes ;-)
> 

[http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.23.1.tar.gz]
md5=4788954a93f5fbf78e55e2aa6e03329f
sha256=03e2cf43ffe9935d56fa0ea3663fc9bd23ce9720682c79d6269e78a9a1629d63

-CP

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3850 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Added new recipe for a newer version of the Asterisk Soft-PBX
  2009-03-07 13:16   ` Christian Pössinger
@ 2009-03-09 16:54     ` Otavio Salvador
  2009-03-12 17:13       ` Christian Pössinger
  0 siblings, 1 reply; 9+ messages in thread
From: Otavio Salvador @ 2009-03-09 16:54 UTC (permalink / raw)
  To: openembedded-devel

On Sat, Mar 7, 2009 at 10:16 AM, Christian Pössinger
<christian@poessinger.com> wrote:
> Otavio Salvador <otavio@ossystems.com.br> wrote:
>> Christian Pössinger <christian@poessinger.com> writes:
>>
>> > ---
>> >  packages/asterisk/asterisk-1.4.23.1/Makefile.patch |   21 +++
>> >  packages/asterisk/asterisk-1.4.23.1/init           |   79 ++++++++++
>> >  packages/asterisk/asterisk-1.4.23.1/logrotate      |   12 ++
>> >  .../asterisk/asterisk-1.4.23.1/sounds.xml.patch    |   19 +++
>> >  packages/asterisk/asterisk-1.4.23.1/volatiles      |    7 +
>> >  packages/asterisk/asterisk_1.4.23.1.bb             |  165
>> ++++++++++++++++++++
>>
>> Please add the checksums.ini required changes ;-)
>>
>
> [http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.23.1.tar.gz]
> md5=4788954a93f5fbf78e55e2aa6e03329f
> sha256=03e2cf43ffe9935d56fa0ea3663fc9bd23ce9720682c79d6269e78a9a1629d63

Could you amend your patch and resend it? It makes our life easier
since we're able to
get it and apply it to the tree without requiring to edit it later.

Thanks in advance,

-- 
Otavio Salvador                  O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Added new recipe for a newer version of the Asterisk Soft-PBX
  2009-03-09 16:54     ` Otavio Salvador
@ 2009-03-12 17:13       ` Christian Pössinger
  2009-03-12 18:57         ` Denys Dmytriyenko
  0 siblings, 1 reply; 9+ messages in thread
From: Christian Pössinger @ 2009-03-12 17:13 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 15293 bytes --]

Here is the patch again with the checksums.ini entry.

---
 conf/checksums.ini                                 |    4 +
 packages/asterisk/asterisk-1.4.23.1/Makefile.patch |   21 +++
 packages/asterisk/asterisk-1.4.23.1/init           |   77 +++++++++
 packages/asterisk/asterisk-1.4.23.1/logrotate      |   12 ++
 .../asterisk/asterisk-1.4.23.1/sounds.xml.patch    |   19 +++
 packages/asterisk/asterisk-1.4.23.1/volatiles      |    7 +
 packages/asterisk/asterisk_1.4.23.1.bb             |  165
++++++++++++++++++++
 7 files changed, 305 insertions(+), 0 deletions(-)
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/Makefile.patch
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/init
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/logrotate
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/sounds.xml.patch
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/volatiles
 create mode 100644 packages/asterisk/asterisk_1.4.23.1.bb

diff --git a/conf/checksums.ini b/conf/checksums.ini
index bcfe02c..865e23c 100644
--- a/conf/checksums.ini
+++ b/conf/checksums.ini
@@ -1,3 +1,7 @@
+[http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.23.1.tar.gz
]
+md5=4788954a93f5fbf78e55e2aa6e03329f
+sha256=03e2cf43ffe9935d56fa0ea3663fc9bd23ce9720682c79d6269e78a9a1629d63
+
 [http://www.directfb.org/downloads/Extras/++DFB-0.9.25.tar.gz]
 md5=c6a2705f6210d8ede50a947b375f1c0b
 sha256=b3dbf01563dd60d63cff543ea8cd0c885381e78ecbbab8ff176e46df3f198a88
diff --git a/packages/asterisk/asterisk-1.4.23.1/Makefile.patch
b/packages/asterisk/asterisk-1.4.23.1/Makefile.patch
new file mode 100644
index 0000000..98345f4
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/Makefile.patch
@@ -0,0 +1,21 @@
+diff -Nurd asterisk-1.4.23.1.orig/Makefile asterisk-1.4.23.1/Makefile
+--- asterisk-1.4.23.1.orig/Makefile    2008-11-29 17:58:29.000000000 +0100
++++ asterisk-1.4.23.1/Makefile 2009-02-25 11:17:22.000000000 +0100
+@@ -125,7 +125,7 @@
+   ASTSBINDIR=$(sbindir)
+   ASTSPOOLDIR=$(localstatedir)/spool/asterisk
+   ASTLOGDIR=$(localstatedir)/log/asterisk
+-  ASTVARRUNDIR=$(localstatedir)/run
++  ASTVARRUNDIR=$(localstatedir)/run/asterisk
+   ASTMANDIR=$(mandir)
+ ifneq ($(findstring BSD,$(OSARCH)),)
+   ASTVARLIBDIR=$(prefix)/share/asterisk
+@@ -513,7 +513,7 @@
+       @exit 1
+ endif
+
+-install: badshell datafiles bininstall
++install: badshell datafiles bininstall samples
+       @if [ -x /usr/sbin/asterisk-post-install ]; then \
+               /usr/sbin/asterisk-post-install $(DESTDIR) . ; \
+       fi
diff --git a/packages/asterisk/asterisk-1.4.23.1/init
b/packages/asterisk/asterisk-1.4.23.1/init
new file mode 100644
index 0000000..d53a9a1
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/init
@@ -0,0 +1,77 @@
+#! /bin/sh
+#
+# This is an init script for openembedded
+# Copy it to /etc/init.d/callweaver and type
+# > update-rc.d asterisk defaults 60
+#
+asterisk=/usr/sbin/asterisk
+pidfile=/var/run/asterisk/asterisk.pid
+asterisk_args="-npqT -U asterisk -G asterisk"
+
+test -x "$asterisk" || exit 0
+
+case "$1" in
+  start)
+    echo -n "Starting Asterisk"
+    start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
+    echo "."
+    ;;
+  stop)
+    echo -n "Stopping Asterisk"
+    $asterisk -rx "stop gracefully"
+    sleep 4
+    if [ -f $pidfile ]; then
+      start-stop-daemon --stop --quiet --pidfile $pidfile
+    fi
+    echo "."
+    ;;
+  force-stop)
+    echo -n "Stopping Asterisk"
+    $asterisk -rx "stop now"
+    sleep 2
+    if [ -f $pidfile ]; then
+      start-stop-daemon --stop --quiet --pidfile $pidfile
+    fi
+    echo "."
+    ;;
+  restart)
+    echo -n "Restarting Asterisk"
+    if [ -f $pidfile ]; then
+      $asterisk -rx "restart gracefully"
+      sleep 2
+    else
+      start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
+    fi
+    echo "."
+    ;;
+  force-restart)
+    echo -n "Forcibly Restarting Asterisk"
+    if [ -f $pidfile ]; then
+      $asterisk -rx "restart now"
+      sleep 2
+    else
+      start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
+    fi
+    echo "."
+    ;;
+  reload)
+    echo -n "Reloading Asterisk Configuration"
+    if [ -f $pidfile ]; then
+      $asterisk -rx "reload"
+    else
+      start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
+    fi
+    echo "."
+    ;;
+  logger-reload)
+    if [ -f $pidfile ]; then
+      $asterisk -rx "logger reload"
+    fi
+    ;;
+  *)
+    echo "Usage: /etc/init.d/asterisk
{start|stop|force-stop|restart|force-restart|reload|logger-reload}"
+    exit 1
+esac
+
+exit 0
+
diff --git a/packages/asterisk/asterisk-1.4.23.1/logrotate
b/packages/asterisk/asterisk-1.4.23.1/logrotate
new file mode 100644
index 0000000..dfd25ee
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/logrotate
@@ -0,0 +1,12 @@
+/var/log/asterisk/cdr-csv/Master.csv
/var/log/asterisk/cdr-custom/Master.csv /var/log/asterisk/queue_log
/var/log/asterisk/event_log /var/log/asterisk/messages {
+    daily
+    missingok
+    compress
+    delaycompress
+    rotate 30
+    sharedscripts
+    postrotate
+      /etc/init.d/asterisk logger-reload
+    endscript
+}
+
diff --git a/packages/asterisk/asterisk-1.4.23.1/sounds.xml.patch
b/packages/asterisk/asterisk-1.4.23.1/sounds.xml.patch
new file mode 100644
index 0000000..2a02bf6
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/sounds.xml.patch
@@ -0,0 +1,19 @@
+diff -Nurd asterisk-1.4.23.1.orig/sounds/sounds.xml
asterisk-1.4.23.1/sounds/sounds.xml
+--- asterisk-1.4.23.1.orig/sounds/sounds.xml   2006-10-25
19:08:58.000000000 +0200
++++ asterisk-1.4.23.1/sounds/sounds.xml        2009-02-25
11:19:13.000000000 +0100
+@@ -6,7 +6,6 @@
+               <member name="CORE-SOUNDS-EN-ALAW" displayname="English,
a-Law format">
+               </member>
+               <member name="CORE-SOUNDS-EN-GSM" displayname="English, GSM
format" >
+-                      <defaultenabled>yes</defaultenabled>
+               </member>
+               <member name="CORE-SOUNDS-EN-G729" displayname="English,
G.729 format">
+               </member>
+@@ -39,7 +38,6 @@
+       </category>
+       <category name="MENUSELECT_MOH" displayname="Music On Hold File
Packages" positive_output="yes">
+               <member name="MOH-FREEPLAY-WAV" displayname="FreePlay Music
On Hold Files, WAV format" >
+-                      <defaultenabled>yes</defaultenabled>
+               </member>
+               <member name="MOH-FREEPLAY-ULAW" displayname="FreePlay Music
On Hold Files, mu-Law format" >
+               </member>
diff --git a/packages/asterisk/asterisk-1.4.23.1/volatiles
b/packages/asterisk/asterisk-1.4.23.1/volatiles
new file mode 100644
index 0000000..c68e786
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/volatiles
@@ -0,0 +1,7 @@
+d asterisk asterisk 0775 /var/run/asterisk none
+d asterisk asterisk 0775 /var/lib/asterisk none
+d asterisk asterisk 0775 /var/log/asterisk none
+d asterisk asterisk 0775 /var/log/asterisk/cdr-csv none
+d asterisk asterisk 0775 /var/log/asterisk/cdr-custom none
+d asterisk asterisk 0775 /var/spool/asterisk/outgoing none
+d asterisk asterisk 0775 /var/spool/asterisk/voicemail none
diff --git a/packages/asterisk/asterisk_1.4.23.1.bb
b/packages/asterisk/asterisk_1.4.23.1.bb
new file mode 100644
index 0000000..f9f8399
--- /dev/null
+++ b/packages/asterisk/asterisk_1.4.23.1.bb
@@ -0,0 +1,165 @@
+# Copyright (C) 2007-2008, Stelios Koroneos - Digital OPSiS, All Rights
Reserved
+# Released under the MIT license (see packages/COPYING)
+DESCRIPTION = "The Asterisk open source software PBX"
+HOMEPAGE = "http://www.asterisk.org"
+LICENSE = "GPLv2"
+PRIORITY = "optional"
+SECTION = "console/telephony"
+DEPENDS = "speex readline zlib openssl curl popt gnutls sqlite libogg
libvorbis"
+#RRECOMMENDS_${PN} = "logrotate"
+
+SRC_URI="http://downloads.digium.com/pub/asterisk/releases/asterisk-${PV}.t
ar.gz \
+       file://sounds.xml.patch;patch=1 \
+       file://Makefile.patch;patch=1 \
+       file://logrotate \
+       file://volatiles \
+       file://init"
+
+ARCH_efika="powerpc"
+ARCH_dht-walnut="powerpc"
+ARCH_magicbox="powerpc"
+ARCH_sequoia="powerpc"
+
+INITSCRIPT_NAME = "asterisk"
+INITSCRIPT_PARAMS = "defaults 60"
+
+inherit autotools update-rc.d
+
+EXTRA_OECONF =  "--with-ssl=${STAGING_EXECPREFIXDIR} \
+                       --with-z=${STAGING_EXECPREFIXDIR} \
+                       --with-curl=${STAGING_EXECPREFIXDIR} \
+                       --with-termcap=${STAGING_EXECPREFIXDIR} \
+                       --with-ogg=${STAGING_EXECPREFIXDIR} \
+                       --with-vorbis=${STAGING_EXECPREFIXDIR} \
+                       --with-sqlite=${STAGING_EXECPREFIXDIR} \
+                       --with-popt=${STAGING_EXECPREFIXDIR} \
+                       --with-gnutls=${STAGING_EXECPREFIXDIR} \
+                       --without-curses\
+                       --with-ncurses=${STAGING_EXECPREFIXDIR} \
+                       --without-imap\
+                       --without-netsnmp\
+                       --without-odbc\
+                       --without-osptk\
+                       --without-nbs\
+                       --without-pwlib\
+                       --without-radius\
+                       --without-tds\
+                       --without-postgres\
+                       --without-zaptel\
+                       "
+
+#export NOISY_BUILD=yes
+
+export ASTCFLAGS = "-fsigned-char -I${STAGING_INCDIR} -DPATH_MAX=4096"
+export ASTLDFLAGS="${LDFLAGS} -lpthread -ldl -lresolv "
+export PROC="${ARCH}"
+
+do_configure_prepend () {
+       sed -i 's:/var:${localstatedir}:' ${WORKDIR}/logrotate
+       sed -i 's:/etc/init.d:${sysconfdir}/init.d:' ${WORKDIR}/logrotate
+       sed -i 's:/var:${localstatedir}:' ${WORKDIR}/volatiles
+}
+
+do_configure () {
+       # Looks like rebuilding configure doesn't work, so we are skipping
+       # that and are just using the shipped one
+       # gnu-configize
+       # libtoolize --force
+       oe_runconf
+}
+
+
+do_compile() {
+        (
+         #make sure that menuselect gets build using host toolchain
+         unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS RANLIB
+         cd menuselect
+         ./configure
+         oe_runmake
+         cd ../
+        ) || exit 1
+        oe_runmake
+}
+
+do_install_append() {
+        install -d ${D}${sysconfdir}/init.d/
+       install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/asterisk
+       install -c -D -m 644 ${WORKDIR}/logrotate
${D}${sysconfdir}/logrotate.d/asterisk
+       install -c -D -m 644 ${WORKDIR}/volatiles
${D}${sysconfdir}/default/volatiles/asterisk
+}
+
+pkg_postinst_prepend() {
+       grep -q asterisk  ${sysconfdir}/group || addgroup --system asterisk
+       grep -q asterisk ${sysconfdir}/passwd || adduser --system --home
${localstatedir}/run/asterisk --no-create-home --disabled-password --ingroup
asterisk -s ${base_bindir}/false asterisk
+       chown -R asterisk:asterisk ${libdir}/asterisk
${localstatedir}/lib/asterisk ${localstatedir}/spool/asterisk
${localstatedir}/log/asterisk ${localstatedir}/run/asterisk
${sysconfdir}/asterisk
+}
+
+do_stage() {
+        autotools_stage_all
+}
+
+FILES_${PN} += "${libdir}/asterisk/modules/*"
+FILES_${PN}-dbg += "${libdir}/asterisk/modules/.debug \
+                    ${localstatedir}/lib/asterisk/*/.debug"
+
+CONFFILES_${PN} += "${sysconfdir}/asterisk/adsi.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/adtranvofr.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/agents.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/alarmreceiver.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/alsa.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/amd.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/asterisk.adsi"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/asterisk.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_custom.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_manager.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_odbc.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_pgsql.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_tds.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/codecs.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/dnsmgr.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/dundi.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/enum.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/extconfig.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/extensions.ael"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/extensions.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/features.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/festival.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/followme.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/func_odbc.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/gtalk.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/h323.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/http.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/iax.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/iaxprov.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/indications.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/jabber.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/logger.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/manager.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/meetme.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/mgcp.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/misdn.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/modules.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/musiconhold.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/muted.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/osp.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/oss.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/phone.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/privacy.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/queues.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/res_odbc.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/res_snmp.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/rpt.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/rtp.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/say.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/sip.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/sip_notify.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/skinny.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/sla.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/smdi.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/telcordia-1.adsi"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/udptl.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/users.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/voicemail.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/vpb.conf"
+CONFFILES_${PN} += "${sysconfdir}/logrotate.d/asterisk"
--
1.5.4.3

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3850 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] Added new recipe for a newer version of the Asterisk Soft-PBX
  2009-03-12 17:13       ` Christian Pössinger
@ 2009-03-12 18:57         ` Denys Dmytriyenko
  2009-03-13 19:20           ` Christian Pössinger
  0 siblings, 1 reply; 9+ messages in thread
From: Denys Dmytriyenko @ 2009-03-12 18:57 UTC (permalink / raw)
  To: openembedded-devel

On Thu, Mar 12, 2009 at 06:13:46PM +0100, Christian P?ssinger wrote:
> Here is the patch again with the checksums.ini entry.

[skip]

> diff --git a/conf/checksums.ini b/conf/checksums.ini
> index bcfe02c..865e23c 100644
> --- a/conf/checksums.ini
> +++ b/conf/checksums.ini
> @@ -1,3 +1,7 @@
> +[http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.23.1.tar.gz
> ]
> +md5=4788954a93f5fbf78e55e2aa6e03329f
> +sha256=03e2cf43ffe9935d56fa0ea3663fc9bd23ce9720682c79d6269e78a9a1629d63
> +
>  [http://www.directfb.org/downloads/Extras/++DFB-0.9.25.tar.gz]
>  md5=c6a2705f6210d8ede50a947b375f1c0b
>  sha256=b3dbf01563dd60d63cff543ea8cd0c885381e78ecbbab8ff176e46df3f198a88
> diff --git a/packages/asterisk/asterisk-1.4.23.1/Makefile.patch
> b/packages/asterisk/asterisk-1.4.23.1/Makefile.patch

[skip]

The checksums.ini patch is not correct:
1. the closing square bracket is misplaced
2. the entry is not sorted (use contrib/source-checker/oe-checksums-sorter.py)

-- 
Denys



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Added new recipe for a newer version of the Asterisk Soft-PBX
  2009-03-12 18:57         ` Denys Dmytriyenko
@ 2009-03-13 19:20           ` Christian Pössinger
  2009-03-13 19:48             ` Denys Dmytriyenko
  0 siblings, 1 reply; 9+ messages in thread
From: Christian Pössinger @ 2009-03-13 19:20 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 15753 bytes --]

Denys Dmytriyenko on March 12, 2009 7:58 PM wrote:
> 
> The checksums.ini patch is not correct:
> 1. the closing square bracket is misplaced
> 2. the entry is not sorted (use contrib/source-checker/oe-checksums-
> sorter.py)
> 

Hopefully this is now my last attempt.

---
 conf/checksums.ini                                 |    4 +
 packages/asterisk/asterisk-1.4.23.1/Makefile.patch |   21 +++
 packages/asterisk/asterisk-1.4.23.1/init           |   77 +++++++++
 packages/asterisk/asterisk-1.4.23.1/logrotate      |   12 ++
 .../asterisk/asterisk-1.4.23.1/sounds.xml.patch    |   19 +++
 packages/asterisk/asterisk-1.4.23.1/volatiles      |    7 +
 packages/asterisk/asterisk_1.4.23.1.bb             |  165
++++++++++++++++++++
 7 files changed, 305 insertions(+), 0 deletions(-)
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/Makefile.patch
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/init
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/logrotate
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/sounds.xml.patch
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/volatiles
 create mode 100644 packages/asterisk/asterisk_1.4.23.1.bb

diff --git a/conf/checksums.ini b/conf/checksums.ini
index 9d578c1..463c58b 100644
--- a/conf/checksums.ini
+++ b/conf/checksums.ini
@@ -1754,6 +1754,10 @@
sha256=85331e63c90370c305121f134358e76cbb06846a12c04a7825d5869f331ee00d
 md5=3b416557d2c395a36b97a819812e99b0
 sha256=2bcc5d5620f8533eb4300ba1b48c9d2a00092ce04588e32f7074cf2aadc34259

+[http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.23.1.tar.gz
]
+md5=4788954a93f5fbf78e55e2aa6e03329f
+sha256=03e2cf43ffe9935d56fa0ea3663fc9bd23ce9720682c79d6269e78a9a1629d63
+
 
[http://downloads.digium.com/pub/telephony/sounds/releases/asterisk-core-sou
nds-en-alaw-1.4.8.tar.gz]
 md5=e708a5510a61217725b6ad663287dfa0
 sha256=5d5c305079eb9918d271fad28ac73248a7d2962347dbd80d16aac66fe35e2729
diff --git a/packages/asterisk/asterisk-1.4.23.1/Makefile.patch
b/packages/asterisk/asterisk-1.4.23.1/Makefile.patch
new file mode 100644
index 0000000..98345f4
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/Makefile.patch
@@ -0,0 +1,21 @@
+diff -Nurd asterisk-1.4.23.1.orig/Makefile asterisk-1.4.23.1/Makefile
+--- asterisk-1.4.23.1.orig/Makefile    2008-11-29 17:58:29.000000000 +0100
++++ asterisk-1.4.23.1/Makefile 2009-02-25 11:17:22.000000000 +0100
+@@ -125,7 +125,7 @@
+   ASTSBINDIR=$(sbindir)
+   ASTSPOOLDIR=$(localstatedir)/spool/asterisk
+   ASTLOGDIR=$(localstatedir)/log/asterisk
+-  ASTVARRUNDIR=$(localstatedir)/run
++  ASTVARRUNDIR=$(localstatedir)/run/asterisk
+   ASTMANDIR=$(mandir)
+ ifneq ($(findstring BSD,$(OSARCH)),)
+   ASTVARLIBDIR=$(prefix)/share/asterisk
+@@ -513,7 +513,7 @@
+       @exit 1
+ endif
+
+-install: badshell datafiles bininstall
++install: badshell datafiles bininstall samples
+       @if [ -x /usr/sbin/asterisk-post-install ]; then \
+               /usr/sbin/asterisk-post-install $(DESTDIR) . ; \
+       fi
diff --git a/packages/asterisk/asterisk-1.4.23.1/init
b/packages/asterisk/asterisk-1.4.23.1/init
new file mode 100644
index 0000000..d53a9a1
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/init
@@ -0,0 +1,77 @@
+#! /bin/sh
+#
+# This is an init script for openembedded
+# Copy it to /etc/init.d/callweaver and type
+# > update-rc.d asterisk defaults 60
+#
+asterisk=/usr/sbin/asterisk
+pidfile=/var/run/asterisk/asterisk.pid
+asterisk_args="-npqT -U asterisk -G asterisk"
+
+test -x "$asterisk" || exit 0
+
+case "$1" in
+  start)
+    echo -n "Starting Asterisk"
+    start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
+    echo "."
+    ;;
+  stop)
+    echo -n "Stopping Asterisk"
+    $asterisk -rx "stop gracefully"
+    sleep 4
+    if [ -f $pidfile ]; then
+      start-stop-daemon --stop --quiet --pidfile $pidfile
+    fi
+    echo "."
+    ;;
+  force-stop)
+    echo -n "Stopping Asterisk"
+    $asterisk -rx "stop now"
+    sleep 2
+    if [ -f $pidfile ]; then
+      start-stop-daemon --stop --quiet --pidfile $pidfile
+    fi
+    echo "."
+    ;;
+  restart)
+    echo -n "Restarting Asterisk"
+    if [ -f $pidfile ]; then
+      $asterisk -rx "restart gracefully"
+      sleep 2
+    else
+      start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
+    fi
+    echo "."
+    ;;
+  force-restart)
+    echo -n "Forcibly Restarting Asterisk"
+    if [ -f $pidfile ]; then
+      $asterisk -rx "restart now"
+      sleep 2
+    else
+      start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
+    fi
+    echo "."
+    ;;
+  reload)
+    echo -n "Reloading Asterisk Configuration"
+    if [ -f $pidfile ]; then
+      $asterisk -rx "reload"
+    else
+      start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
+    fi
+    echo "."
+    ;;
+  logger-reload)
+    if [ -f $pidfile ]; then
+      $asterisk -rx "logger reload"
+    fi
+    ;;
+  *)
+    echo "Usage: /etc/init.d/asterisk
{start|stop|force-stop|restart|force-restart|reload|logger-reload}"
+    exit 1
+esac
+
+exit 0
+
diff --git a/packages/asterisk/asterisk-1.4.23.1/logrotate
b/packages/asterisk/asterisk-1.4.23.1/logrotate
new file mode 100644
index 0000000..dfd25ee
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/logrotate
@@ -0,0 +1,12 @@
+/var/log/asterisk/cdr-csv/Master.csv
/var/log/asterisk/cdr-custom/Master.csv /var/log/asterisk/queue_log
/var/log/asterisk/event_log /var/log/asterisk/messages {
+    daily
+    missingok
+    compress
+    delaycompress
+    rotate 30
+    sharedscripts
+    postrotate
+      /etc/init.d/asterisk logger-reload
+    endscript
+}
+
diff --git a/packages/asterisk/asterisk-1.4.23.1/sounds.xml.patch
b/packages/asterisk/asterisk-1.4.23.1/sounds.xml.patch
new file mode 100644
index 0000000..2a02bf6
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/sounds.xml.patch
@@ -0,0 +1,19 @@
+diff -Nurd asterisk-1.4.23.1.orig/sounds/sounds.xml
asterisk-1.4.23.1/sounds/sounds.xml
+--- asterisk-1.4.23.1.orig/sounds/sounds.xml   2006-10-25
19:08:58.000000000 +0200
++++ asterisk-1.4.23.1/sounds/sounds.xml        2009-02-25
11:19:13.000000000 +0100
+@@ -6,7 +6,6 @@
+               <member name="CORE-SOUNDS-EN-ALAW" displayname="English,
a-Law format">
+               </member>
+               <member name="CORE-SOUNDS-EN-GSM" displayname="English, GSM
format" >
+-                      <defaultenabled>yes</defaultenabled>
+               </member>
+               <member name="CORE-SOUNDS-EN-G729" displayname="English,
G.729 format">
+               </member>
+@@ -39,7 +38,6 @@
+       </category>
+       <category name="MENUSELECT_MOH" displayname="Music On Hold File
Packages" positive_output="yes">
+               <member name="MOH-FREEPLAY-WAV" displayname="FreePlay Music
On Hold Files, WAV format" >
+-                      <defaultenabled>yes</defaultenabled>
+               </member>
+               <member name="MOH-FREEPLAY-ULAW" displayname="FreePlay Music
On Hold Files, mu-Law format" >
+               </member>
diff --git a/packages/asterisk/asterisk-1.4.23.1/volatiles
b/packages/asterisk/asterisk-1.4.23.1/volatiles
new file mode 100644
index 0000000..c68e786
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/volatiles
@@ -0,0 +1,7 @@
+d asterisk asterisk 0775 /var/run/asterisk none
+d asterisk asterisk 0775 /var/lib/asterisk none
+d asterisk asterisk 0775 /var/log/asterisk none
+d asterisk asterisk 0775 /var/log/asterisk/cdr-csv none
+d asterisk asterisk 0775 /var/log/asterisk/cdr-custom none
+d asterisk asterisk 0775 /var/spool/asterisk/outgoing none
+d asterisk asterisk 0775 /var/spool/asterisk/voicemail none
diff --git a/packages/asterisk/asterisk_1.4.23.1.bb
b/packages/asterisk/asterisk_1.4.23.1.bb
new file mode 100644
index 0000000..f9f8399
--- /dev/null
+++ b/packages/asterisk/asterisk_1.4.23.1.bb
@@ -0,0 +1,165 @@
+# Copyright (C) 2007-2008, Stelios Koroneos - Digital OPSiS, All Rights
Reserved
+# Released under the MIT license (see packages/COPYING)
+DESCRIPTION = "The Asterisk open source software PBX"
+HOMEPAGE = "http://www.asterisk.org"
+LICENSE = "GPLv2"
+PRIORITY = "optional"
+SECTION = "console/telephony"
+DEPENDS = "speex readline zlib openssl curl popt gnutls sqlite libogg
libvorbis"
+#RRECOMMENDS_${PN} = "logrotate"
+
+SRC_URI="http://downloads.digium.com/pub/asterisk/releases/asterisk-${PV}.t
ar.gz \
+       file://sounds.xml.patch;patch=1 \
+       file://Makefile.patch;patch=1 \
+       file://logrotate \
+       file://volatiles \
+       file://init"
+
+ARCH_efika="powerpc"
+ARCH_dht-walnut="powerpc"
+ARCH_magicbox="powerpc"
+ARCH_sequoia="powerpc"
+
+INITSCRIPT_NAME = "asterisk"
+INITSCRIPT_PARAMS = "defaults 60"
+
+inherit autotools update-rc.d
+
+EXTRA_OECONF =  "--with-ssl=${STAGING_EXECPREFIXDIR} \
+                       --with-z=${STAGING_EXECPREFIXDIR} \
+                       --with-curl=${STAGING_EXECPREFIXDIR} \
+                       --with-termcap=${STAGING_EXECPREFIXDIR} \
+                       --with-ogg=${STAGING_EXECPREFIXDIR} \
+                       --with-vorbis=${STAGING_EXECPREFIXDIR} \
+                       --with-sqlite=${STAGING_EXECPREFIXDIR} \
+                       --with-popt=${STAGING_EXECPREFIXDIR} \
+                       --with-gnutls=${STAGING_EXECPREFIXDIR} \
+                       --without-curses\
+                       --with-ncurses=${STAGING_EXECPREFIXDIR} \
+                       --without-imap\
+                       --without-netsnmp\
+                       --without-odbc\
+                       --without-osptk\
+                       --without-nbs\
+                       --without-pwlib\
+                       --without-radius\
+                       --without-tds\
+                       --without-postgres\
+                       --without-zaptel\
+                       "
+
+#export NOISY_BUILD=yes
+
+export ASTCFLAGS = "-fsigned-char -I${STAGING_INCDIR} -DPATH_MAX=4096"
+export ASTLDFLAGS="${LDFLAGS} -lpthread -ldl -lresolv "
+export PROC="${ARCH}"
+
+do_configure_prepend () {
+       sed -i 's:/var:${localstatedir}:' ${WORKDIR}/logrotate
+       sed -i 's:/etc/init.d:${sysconfdir}/init.d:' ${WORKDIR}/logrotate
+       sed -i 's:/var:${localstatedir}:' ${WORKDIR}/volatiles
+}
+
+do_configure () {
+       # Looks like rebuilding configure doesn't work, so we are skipping
+       # that and are just using the shipped one
+       # gnu-configize
+       # libtoolize --force
+       oe_runconf
+}
+
+
+do_compile() {
+        (
+         #make sure that menuselect gets build using host toolchain
+         unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS RANLIB
+         cd menuselect
+         ./configure
+         oe_runmake
+         cd ../
+        ) || exit 1
+        oe_runmake
+}
+
+do_install_append() {
+        install -d ${D}${sysconfdir}/init.d/
+       install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/asterisk
+       install -c -D -m 644 ${WORKDIR}/logrotate
${D}${sysconfdir}/logrotate.d/asterisk
+       install -c -D -m 644 ${WORKDIR}/volatiles
${D}${sysconfdir}/default/volatiles/asterisk
+}
+
+pkg_postinst_prepend() {
+       grep -q asterisk  ${sysconfdir}/group || addgroup --system asterisk
+       grep -q asterisk ${sysconfdir}/passwd || adduser --system --home
${localstatedir}/run/asterisk --no-create-home --disabled-password --ingroup
asterisk -s ${base_bindir}/false asterisk
+       chown -R asterisk:asterisk ${libdir}/asterisk
${localstatedir}/lib/asterisk ${localstatedir}/spool/asterisk
${localstatedir}/log/asterisk ${localstatedir}/run/asterisk
${sysconfdir}/asterisk
+}
+
+do_stage() {
+        autotools_stage_all
+}
+
+FILES_${PN} += "${libdir}/asterisk/modules/*"
+FILES_${PN}-dbg += "${libdir}/asterisk/modules/.debug \
+                    ${localstatedir}/lib/asterisk/*/.debug"
+
+CONFFILES_${PN} += "${sysconfdir}/asterisk/adsi.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/adtranvofr.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/agents.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/alarmreceiver.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/alsa.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/amd.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/asterisk.adsi"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/asterisk.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_custom.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_manager.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_odbc.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_pgsql.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_tds.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/codecs.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/dnsmgr.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/dundi.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/enum.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/extconfig.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/extensions.ael"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/extensions.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/features.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/festival.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/followme.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/func_odbc.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/gtalk.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/h323.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/http.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/iax.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/iaxprov.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/indications.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/jabber.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/logger.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/manager.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/meetme.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/mgcp.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/misdn.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/modules.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/musiconhold.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/muted.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/osp.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/oss.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/phone.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/privacy.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/queues.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/res_odbc.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/res_snmp.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/rpt.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/rtp.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/say.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/sip.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/sip_notify.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/skinny.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/sla.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/smdi.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/telcordia-1.adsi"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/udptl.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/users.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/voicemail.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/vpb.conf"
+CONFFILES_${PN} += "${sysconfdir}/logrotate.d/asterisk"
--
1.5.4.3

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3850 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] Added new recipe for a newer version of the Asterisk Soft-PBX
  2009-03-13 19:20           ` Christian Pössinger
@ 2009-03-13 19:48             ` Denys Dmytriyenko
  2009-03-14 10:52               ` Christian Pössinger
  0 siblings, 1 reply; 9+ messages in thread
From: Denys Dmytriyenko @ 2009-03-13 19:48 UTC (permalink / raw)
  To: openembedded-devel

On Fri, Mar 13, 2009 at 08:20:30PM +0100, Christian P?ssinger wrote:
> Denys Dmytriyenko on March 12, 2009 7:58 PM wrote:
> > 
> > The checksums.ini patch is not correct:
> > 1. the closing square bracket is misplaced
> > 2. the entry is not sorted (use contrib/source-checker/oe-checksums-
> > sorter.py)
> > 
> 
> Hopefully this is now my last attempt.
> 
> diff --git a/conf/checksums.ini b/conf/checksums.ini
> index 9d578c1..463c58b 100644
> --- a/conf/checksums.ini
> +++ b/conf/checksums.ini
> @@ -1754,6 +1754,10 @@
> sha256=85331e63c90370c305121f134358e76cbb06846a12c04a7825d5869f331ee00d
>  md5=3b416557d2c395a36b97a819812e99b0
>  sha256=2bcc5d5620f8533eb4300ba1b48c9d2a00092ce04588e32f7074cf2aadc34259
> 
> +[http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.23.1.tar.gz
> ]

^^^

> +md5=4788954a93f5fbf78e55e2aa6e03329f
> +sha256=03e2cf43ffe9935d56fa0ea3663fc9bd23ce9720682c79d6269e78a9a1629d63
> +
>  
> [http://downloads.digium.com/pub/telephony/sounds/releases/asterisk-core-sou
> nds-en-alaw-1.4.8.tar.gz]

^^^

>  md5=e708a5510a61217725b6ad663287dfa0
>  sha256=5d5c305079eb9918d271fad28ac73248a7d2962347dbd80d16aac66fe35e2729

It would be better to attach the patch, as your MUA damages it with 
word-wrapping - see highlights above, and there were more damaged long lines 
in the rest of the patch...

-- 
Denys



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Added new recipe for a newer version of the Asterisk Soft-PBX
  2009-03-13 19:48             ` Denys Dmytriyenko
@ 2009-03-14 10:52               ` Christian Pössinger
  0 siblings, 0 replies; 9+ messages in thread
From: Christian Pössinger @ 2009-03-14 10:52 UTC (permalink / raw)
  To: openembedded-devel


[-- Attachment #1.1: Type: text/plain, Size: 305 bytes --]

OK. See attached file.

- Christian

Denys Dmytriyenko on March 13, 2009 8:48 PM wrote:
> 
> 
> It would be better to attach the patch, as your MUA damages it with
> word-wrapping - see highlights above, and there were more damaged long
> lines
> in the rest of the patch...
> 
> --
> Denys

[-- Attachment #1.2: 0001-Added-new-recipe-for-a-newer-version-of-the-Asterisk.patch --]
[-- Type: application/octet-stream, Size: 14951 bytes --]

From 0e630c75cb263824dfa206d567327e7a668111d8 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Christian=20P=C3=B6ssinger?= <cpo@k9>
Date: Fri, 13 Mar 2009 19:16:24 +0100
Subject: [PATCH] Added new recipe for a newer version of	the Asterisk Soft-PBX

---
 conf/checksums.ini                                 |    4 +
 packages/asterisk/asterisk-1.4.23.1/Makefile.patch |   21 +++
 packages/asterisk/asterisk-1.4.23.1/init           |   77 +++++++++
 packages/asterisk/asterisk-1.4.23.1/logrotate      |   12 ++
 .../asterisk/asterisk-1.4.23.1/sounds.xml.patch    |   19 +++
 packages/asterisk/asterisk-1.4.23.1/volatiles      |    7 +
 packages/asterisk/asterisk_1.4.23.1.bb             |  165 ++++++++++++++++++++
 7 files changed, 305 insertions(+), 0 deletions(-)
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/Makefile.patch
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/init
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/logrotate
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/sounds.xml.patch
 create mode 100644 packages/asterisk/asterisk-1.4.23.1/volatiles
 create mode 100644 packages/asterisk/asterisk_1.4.23.1.bb

diff --git a/conf/checksums.ini b/conf/checksums.ini
index 9d578c1..463c58b 100644
--- a/conf/checksums.ini
+++ b/conf/checksums.ini
@@ -1754,6 +1754,10 @@ sha256=85331e63c90370c305121f134358e76cbb06846a12c04a7825d5869f331ee00d
 md5=3b416557d2c395a36b97a819812e99b0
 sha256=2bcc5d5620f8533eb4300ba1b48c9d2a00092ce04588e32f7074cf2aadc34259
 
+[http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.23.1.tar.gz]
+md5=4788954a93f5fbf78e55e2aa6e03329f
+sha256=03e2cf43ffe9935d56fa0ea3663fc9bd23ce9720682c79d6269e78a9a1629d63
+
 [http://downloads.digium.com/pub/telephony/sounds/releases/asterisk-core-sounds-en-alaw-1.4.8.tar.gz]
 md5=e708a5510a61217725b6ad663287dfa0
 sha256=5d5c305079eb9918d271fad28ac73248a7d2962347dbd80d16aac66fe35e2729
diff --git a/packages/asterisk/asterisk-1.4.23.1/Makefile.patch b/packages/asterisk/asterisk-1.4.23.1/Makefile.patch
new file mode 100644
index 0000000..98345f4
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/Makefile.patch
@@ -0,0 +1,21 @@
+diff -Nurd asterisk-1.4.23.1.orig/Makefile asterisk-1.4.23.1/Makefile
+--- asterisk-1.4.23.1.orig/Makefile	2008-11-29 17:58:29.000000000 +0100
++++ asterisk-1.4.23.1/Makefile	2009-02-25 11:17:22.000000000 +0100
+@@ -125,7 +125,7 @@
+   ASTSBINDIR=$(sbindir)
+   ASTSPOOLDIR=$(localstatedir)/spool/asterisk
+   ASTLOGDIR=$(localstatedir)/log/asterisk
+-  ASTVARRUNDIR=$(localstatedir)/run
++  ASTVARRUNDIR=$(localstatedir)/run/asterisk
+   ASTMANDIR=$(mandir)
+ ifneq ($(findstring BSD,$(OSARCH)),)
+   ASTVARLIBDIR=$(prefix)/share/asterisk
+@@ -513,7 +513,7 @@
+ 	@exit 1
+ endif
+ 
+-install: badshell datafiles bininstall
++install: badshell datafiles bininstall samples
+ 	@if [ -x /usr/sbin/asterisk-post-install ]; then \
+ 		/usr/sbin/asterisk-post-install $(DESTDIR) . ; \
+ 	fi
diff --git a/packages/asterisk/asterisk-1.4.23.1/init b/packages/asterisk/asterisk-1.4.23.1/init
new file mode 100644
index 0000000..d53a9a1
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/init
@@ -0,0 +1,77 @@
+#! /bin/sh 
+#
+# This is an init script for openembedded
+# Copy it to /etc/init.d/callweaver and type
+# > update-rc.d asterisk defaults 60
+#
+asterisk=/usr/sbin/asterisk
+pidfile=/var/run/asterisk/asterisk.pid
+asterisk_args="-npqT -U asterisk -G asterisk"
+
+test -x "$asterisk" || exit 0
+
+case "$1" in
+  start)
+    echo -n "Starting Asterisk"
+    start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
+    echo "."
+    ;;
+  stop)
+    echo -n "Stopping Asterisk"
+    $asterisk -rx "stop gracefully"
+    sleep 4
+    if [ -f $pidfile ]; then
+      start-stop-daemon --stop --quiet --pidfile $pidfile
+    fi
+    echo "."
+    ;;
+  force-stop)
+    echo -n "Stopping Asterisk"
+    $asterisk -rx "stop now"
+    sleep 2
+    if [ -f $pidfile ]; then
+      start-stop-daemon --stop --quiet --pidfile $pidfile
+    fi
+    echo "."
+    ;;
+  restart)
+    echo -n "Restarting Asterisk"
+    if [ -f $pidfile ]; then
+      $asterisk -rx "restart gracefully"
+      sleep 2
+    else
+      start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
+    fi
+    echo "."
+    ;;
+  force-restart)
+    echo -n "Forcibly Restarting Asterisk"
+    if [ -f $pidfile ]; then
+      $asterisk -rx "restart now"
+      sleep 2
+    else
+      start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
+    fi
+    echo "."
+    ;;
+  reload)
+    echo -n "Reloading Asterisk Configuration"
+    if [ -f $pidfile ]; then
+      $asterisk -rx "reload"
+    else
+      start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args
+    fi
+    echo "."
+    ;;
+  logger-reload)
+    if [ -f $pidfile ]; then
+      $asterisk -rx "logger reload"
+    fi
+    ;;
+  *)
+    echo "Usage: /etc/init.d/asterisk {start|stop|force-stop|restart|force-restart|reload|logger-reload}"
+    exit 1
+esac
+
+exit 0
+
diff --git a/packages/asterisk/asterisk-1.4.23.1/logrotate b/packages/asterisk/asterisk-1.4.23.1/logrotate
new file mode 100644
index 0000000..dfd25ee
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/logrotate
@@ -0,0 +1,12 @@
+/var/log/asterisk/cdr-csv/Master.csv /var/log/asterisk/cdr-custom/Master.csv /var/log/asterisk/queue_log /var/log/asterisk/event_log /var/log/asterisk/messages {
+    daily
+    missingok
+    compress
+    delaycompress
+    rotate 30
+    sharedscripts
+    postrotate
+      /etc/init.d/asterisk logger-reload
+    endscript
+}
+
diff --git a/packages/asterisk/asterisk-1.4.23.1/sounds.xml.patch b/packages/asterisk/asterisk-1.4.23.1/sounds.xml.patch
new file mode 100644
index 0000000..2a02bf6
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/sounds.xml.patch
@@ -0,0 +1,19 @@
+diff -Nurd asterisk-1.4.23.1.orig/sounds/sounds.xml asterisk-1.4.23.1/sounds/sounds.xml
+--- asterisk-1.4.23.1.orig/sounds/sounds.xml	2006-10-25 19:08:58.000000000 +0200
++++ asterisk-1.4.23.1/sounds/sounds.xml	2009-02-25 11:19:13.000000000 +0100
+@@ -6,7 +6,6 @@
+ 		<member name="CORE-SOUNDS-EN-ALAW" displayname="English, a-Law format">
+ 		</member>
+ 		<member name="CORE-SOUNDS-EN-GSM" displayname="English, GSM format" >
+-			<defaultenabled>yes</defaultenabled>
+ 		</member>
+ 		<member name="CORE-SOUNDS-EN-G729" displayname="English, G.729 format">
+ 		</member>
+@@ -39,7 +38,6 @@
+ 	</category>
+ 	<category name="MENUSELECT_MOH" displayname="Music On Hold File Packages" positive_output="yes">
+ 		<member name="MOH-FREEPLAY-WAV" displayname="FreePlay Music On Hold Files, WAV format" >
+-			<defaultenabled>yes</defaultenabled>
+ 		</member>
+ 		<member name="MOH-FREEPLAY-ULAW" displayname="FreePlay Music On Hold Files, mu-Law format" >
+ 		</member>
diff --git a/packages/asterisk/asterisk-1.4.23.1/volatiles b/packages/asterisk/asterisk-1.4.23.1/volatiles
new file mode 100644
index 0000000..c68e786
--- /dev/null
+++ b/packages/asterisk/asterisk-1.4.23.1/volatiles
@@ -0,0 +1,7 @@
+d asterisk asterisk 0775 /var/run/asterisk none
+d asterisk asterisk 0775 /var/lib/asterisk none
+d asterisk asterisk 0775 /var/log/asterisk none
+d asterisk asterisk 0775 /var/log/asterisk/cdr-csv none
+d asterisk asterisk 0775 /var/log/asterisk/cdr-custom none
+d asterisk asterisk 0775 /var/spool/asterisk/outgoing none
+d asterisk asterisk 0775 /var/spool/asterisk/voicemail none
diff --git a/packages/asterisk/asterisk_1.4.23.1.bb b/packages/asterisk/asterisk_1.4.23.1.bb
new file mode 100644
index 0000000..f9f8399
--- /dev/null
+++ b/packages/asterisk/asterisk_1.4.23.1.bb
@@ -0,0 +1,165 @@
+# Copyright (C) 2007-2008, Stelios Koroneos - Digital OPSiS, All Rights Reserved
+# Released under the MIT license (see packages/COPYING)
+DESCRIPTION = "The Asterisk open source software PBX"
+HOMEPAGE = "http://www.asterisk.org"
+LICENSE = "GPLv2"
+PRIORITY = "optional"
+SECTION = "console/telephony"
+DEPENDS = "speex readline zlib openssl curl popt gnutls sqlite libogg libvorbis"
+#RRECOMMENDS_${PN} = "logrotate"
+
+SRC_URI="http://downloads.digium.com/pub/asterisk/releases/asterisk-${PV}.tar.gz \
+	file://sounds.xml.patch;patch=1 \
+	file://Makefile.patch;patch=1 \
+	file://logrotate \
+	file://volatiles \
+	file://init"
+
+ARCH_efika="powerpc"
+ARCH_dht-walnut="powerpc"
+ARCH_magicbox="powerpc"
+ARCH_sequoia="powerpc"
+
+INITSCRIPT_NAME = "asterisk"
+INITSCRIPT_PARAMS = "defaults 60"
+
+inherit autotools update-rc.d
+
+EXTRA_OECONF =  "--with-ssl=${STAGING_EXECPREFIXDIR} \
+			--with-z=${STAGING_EXECPREFIXDIR} \
+			--with-curl=${STAGING_EXECPREFIXDIR} \
+			--with-termcap=${STAGING_EXECPREFIXDIR} \
+			--with-ogg=${STAGING_EXECPREFIXDIR} \
+			--with-vorbis=${STAGING_EXECPREFIXDIR} \
+			--with-sqlite=${STAGING_EXECPREFIXDIR} \
+			--with-popt=${STAGING_EXECPREFIXDIR} \
+			--with-gnutls=${STAGING_EXECPREFIXDIR} \
+			--without-curses\
+			--with-ncurses=${STAGING_EXECPREFIXDIR} \
+			--without-imap\
+			--without-netsnmp\
+			--without-odbc\
+			--without-osptk\
+			--without-nbs\
+			--without-pwlib\
+			--without-radius\
+			--without-tds\
+			--without-postgres\
+			--without-zaptel\
+			"
+
+#export NOISY_BUILD=yes
+
+export ASTCFLAGS = "-fsigned-char -I${STAGING_INCDIR} -DPATH_MAX=4096"
+export ASTLDFLAGS="${LDFLAGS} -lpthread -ldl -lresolv "
+export PROC="${ARCH}"
+
+do_configure_prepend () {
+	sed -i 's:/var:${localstatedir}:' ${WORKDIR}/logrotate
+	sed -i 's:/etc/init.d:${sysconfdir}/init.d:' ${WORKDIR}/logrotate
+	sed -i 's:/var:${localstatedir}:' ${WORKDIR}/volatiles
+}
+
+do_configure () {
+	# Looks like rebuilding configure doesn't work, so we are skipping
+	# that and are just using the shipped one
+	# gnu-configize
+	# libtoolize --force
+	oe_runconf
+}
+
+
+do_compile() {
+        (
+         #make sure that menuselect gets build using host toolchain
+         unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS RANLIB
+         cd menuselect 
+         ./configure
+         oe_runmake
+         cd ../
+        ) || exit 1
+        oe_runmake
+}
+
+do_install_append() {
+        install -d ${D}${sysconfdir}/init.d/
+	install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/asterisk
+	install -c -D -m 644 ${WORKDIR}/logrotate ${D}${sysconfdir}/logrotate.d/asterisk
+	install -c -D -m 644 ${WORKDIR}/volatiles ${D}${sysconfdir}/default/volatiles/asterisk
+}
+
+pkg_postinst_prepend() {
+	grep -q asterisk  ${sysconfdir}/group || addgroup --system asterisk
+	grep -q asterisk ${sysconfdir}/passwd || adduser --system --home ${localstatedir}/run/asterisk --no-create-home --disabled-password --ingroup asterisk -s ${base_bindir}/false asterisk
+	chown -R asterisk:asterisk ${libdir}/asterisk ${localstatedir}/lib/asterisk ${localstatedir}/spool/asterisk ${localstatedir}/log/asterisk ${localstatedir}/run/asterisk ${sysconfdir}/asterisk
+}
+
+do_stage() {
+        autotools_stage_all
+}
+
+FILES_${PN} += "${libdir}/asterisk/modules/*"
+FILES_${PN}-dbg += "${libdir}/asterisk/modules/.debug \
+                    ${localstatedir}/lib/asterisk/*/.debug"
+
+CONFFILES_${PN} += "${sysconfdir}/asterisk/adsi.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/adtranvofr.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/agents.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/alarmreceiver.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/alsa.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/amd.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/asterisk.adsi"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/asterisk.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_custom.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_manager.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_odbc.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_pgsql.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/cdr_tds.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/codecs.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/dnsmgr.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/dundi.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/enum.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/extconfig.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/extensions.ael"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/extensions.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/features.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/festival.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/followme.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/func_odbc.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/gtalk.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/h323.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/http.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/iax.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/iaxprov.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/indications.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/jabber.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/logger.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/manager.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/meetme.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/mgcp.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/misdn.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/modules.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/musiconhold.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/muted.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/osp.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/oss.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/phone.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/privacy.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/queues.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/res_odbc.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/res_snmp.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/rpt.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/rtp.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/say.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/sip.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/sip_notify.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/skinny.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/sla.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/smdi.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/telcordia-1.adsi"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/udptl.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/users.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/voicemail.conf"
+CONFFILES_${PN} += "${sysconfdir}/asterisk/vpb.conf"
+CONFFILES_${PN} += "${sysconfdir}/logrotate.d/asterisk"
-- 
1.5.4.3


[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3850 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-03-14 10:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-28 10:49 [PATCH] Added new recipe for a newer version of the Asterisk Soft-PBX Christian Pössinger
2009-03-01  3:39 ` Otavio Salvador
2009-03-07 13:16   ` Christian Pössinger
2009-03-09 16:54     ` Otavio Salvador
2009-03-12 17:13       ` Christian Pössinger
2009-03-12 18:57         ` Denys Dmytriyenko
2009-03-13 19:20           ` Christian Pössinger
2009-03-13 19:48             ` Denys Dmytriyenko
2009-03-14 10:52               ` Christian Pössinger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.