Subject: pkg/22585: unfinished pkgsrc for asterisk PBX
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 08/24/2003 10:24:10
>Number: 22585
>Category: pkg
>Synopsis: unfinished pkgsrc for asterisk PBX
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Aug 24 01:25:03 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Jun-ichiro itojun Hagino
>Release: NetBSD 1.6W
>Organization:
itojun.org
>Environment:
System: NetBSD starfruit.itojun.org 1.6W NetBSD 1.6W (STARFRUIT) #285: Sat Aug 23 07:50:18 JST 2003 itojun@starfruit.itojun.org:/home/itojun/NetBSD/src/sys/arch/i386/compile/STARFRUIT i386
Architecture: i386
Machine: i386
>Description:
unfinished pkgsrc for asterisk PBX. a lot of patches due to linux
dependencies. i send it here because (1) i have no experience with
asterisk so i don't know how to test, (2) PLIST (3) how to deal with
/var contents?
>How-To-Repeat:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# ./Makefile
# ./PLIST
# ./distinfo
# ./DESCR
# ./patches/patch-aa
# ./patches/patch-ab
# ./patches/patch-ac
# ./patches/patch-ad
# ./patches/patch-ae
# ./patches/patch-af
# ./patches/patch-ag
# ./patches/patch-ah
# ./patches/patch-ai
# ./patches/patch-aj
# ./patches/patch-ak
# ./patches/patch-al
# ./patches/patch-am
# ./patches/patch-an
# ./patches/patch-ao
# ./patches/patch-ap
# ./patches/patch-aq
# ./patches/patch-ar
# ./patches/patch-as
# ./patches/patch-at
# ./patches/patch-au
# ./patches/patch-av
# ./patches/patch-aw
# ./patches/patch-ax
#
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# $NetBSD$
X#
X
XDISTNAME= asterisk-0.4.0
XCATEGORIES= chat
XMASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/
X
XMAINTAINER= packages@netbsd.org
XHOMEPAGE= http://www.asteriskpbx.com/
XCOMMENT= Open source PBX
X
XUSE_GMAKE= yes
X
X.include "../../mk/bsd.pkg.mk"
END-of-./Makefile
echo x - ./PLIST
sed 's/^X//' >./PLIST << 'END-of-./PLIST'
X@comment $NetBSD$
END-of-./PLIST
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
X$NetBSD$
X
XSHA1 (asterisk-0.4.0.tar.gz) = abebaca3af75fc6654b90534125354423d137bd8
XSize (asterisk-0.4.0.tar.gz) = 2529243 bytes
XSHA1 (patch-aa) = 82443ef3e4479d3640099f5c81e565cb46fba6d9
END-of-./distinfo
echo x - ./DESCR
sed 's/^X//' >./DESCR << 'END-of-./DESCR'
XAsterisk is a complete PBX in software. It runs on Linux and provides
Xall of the features you would expect from a PBX and more. Asterisk
Xdoes voice over IP in three protocols, and can interoperate with
Xalmost all standards-based telephony equipment using relatively
Xinexpensive hardware.
X
XAsterisk provides Voicemail services with Directory, Call Conferencing,
XInteractive Voice Response, Call Queuing. It has support for
Xthree-way calling, caller ID services, ADSI, SIP and H.323 (as both
Xclient and gateway). Check the Features section for a more complete
Xlist.
END-of-./DESCR
echo x - ./patches/patch-aa
sed 's/^X//' >./patches/patch-aa << 'END-of-./patches/patch-aa'
X$NetBSD$
X
X+++ Makefile 2003-08-24 09:39:13.000000000 +0900
X@@ -43,16 +43,16 @@
X # Default -> leave empty
X INSTALL_PREFIX=
X
X-ASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk
X-ASTVARLIBDIR=$(INSTALL_PREFIX)/var/lib/asterisk
X-ASTETCDIR=$(INSTALL_PREFIX)/etc/asterisk
X-ASTSPOOLDIR=$(INSTALL_PREFIX)/var/spool/asterisk
X-ASTLOGDIR=$(INSTALL_PREFIX)/var/log/asterisk
X-ASTHEADERDIR=$(INSTALL_PREFIX)/usr/include/asterisk
X+ASTLIBDIR=$(PREFIX)/lib/asterisk
X+ASTVARLIBDIR=$(PREFIX)/lib/asterisk/var
X+ASTETCDIR=$(PKG_SYSCONFDIR)/asterisk
X+ASTSPOOLDIR=/var/spool/asterisk
X+ASTLOGDIR=/var/log/asterisk
X+ASTHEADERDIR=$(PREFIX)/include/asterisk
X ASTCONFPATH=$(ASTETCDIR)/asterisk.conf
X-ASTBINDIR=$(INSTALL_PREFIX)/usr/bin
X-ASTSBINDIR=$(INSTALL_PREFIX)/usr/sbin
X-ASTVARRUNDIR=$(INSTALL_PREFIX)/var/run
X+ASTBINDIR=$(PREFIX)/bin
X+ASTSBINDIR=$(PREFIX)/sbin
X+ASTVARRUNDIR=/var/run
X
X
X MODULES_DIR=$(ASTLIBDIR)/modules
X@@ -85,7 +85,7 @@
X CFLAGS+= $(TRACE_FRAMES)
X CFLAGS+=# -fomit-frame-pointer
X SUBDIRS=res channels pbx apps codecs formats agi cdr astman
X-LIBS=-ldl -lpthread -lncurses -lm #-lnjamd
X+LIBS=-lpthread -lm #-lncurses -lnjamd
X OBJS=io.o sched.o logger.o frame.o loader.o config.o channel.o \
X translate.o file.o say.o pbx.o cli.o md5.o term.o \
X ulaw.o alaw.o callerid.o fskmodem.o image.o app.o \
X@@ -114,11 +114,11 @@
X fi
X
X editline/libedit.a: editline/config.h
X- make -C editline libedit.a
X+ ${MAKE} -C editline libedit.a
X
X db1-ast/libdb1.a:
X @if [ -d db1-ast ]; then \
X- make -C db1-ast libdb1.a ; \
X+ ${MAKE} -C db1-ast libdb1.a ; \
X else \
X echo "You need to do a cvs update -d not just cvs update"; \
X exit 1; \
X@@ -148,8 +148,8 @@
X rm -f *.o *.so asterisk
X rm -f build.h
X rm -f ast_expr.c
X- @if [ -e editline/Makefile ]; then make -C editline clean ; fi
X- make -C db1-ast clean
X+ @if [ -e editline/Makefile ]; then ${MAKE} -C editline clean ; fi
X+ ${MAKE} -C db1-ast clean
X
X datafiles: all
X mkdir -p $(ASTVARLIBDIR)/sounds/digits
X@@ -305,8 +305,8 @@
X __rpm: _version
X rm -rf /tmp/asterisk ; \
X mkdir -p /tmp/asterisk/redhat/RPMS/i386 ; \
X- make INSTALL_PREFIX=/tmp/asterisk install ; \
X- make INSTALL_PREFIX=/tmp/asterisk samples ; \
X+ ${MAKE} INSTALL_PREFIX=/tmp/asterisk install ; \
X+ ${MAKE} INSTALL_PREFIX=/tmp/asterisk samples ; \
X mkdir -p /tmp/asterisk/etc/rc.d/init.d ; \
X cp -f redhat/asterisk /tmp/asterisk/etc/rc.d/init.d/ ; \
X cp -f redhat/rpmrc /tmp/asterisk/ ; \
X@@ -329,6 +329,6 @@
X
X
X dont-optimize:
X- make OPTIMIZE= K6OPT= install
X+ ${MAKE} OPTIMIZE= K6OPT= install
X
X valgrind: dont-optimize
END-of-./patches/patch-aa
echo x - ./patches/patch-ab
sed 's/^X//' >./patches/patch-ab << 'END-of-./patches/patch-ab'
X$NetBSD$
X
X+++ db1-ast/include/mpool.h 2003-08-24 09:42:22.000000000 +0900
X@@ -38,6 +38,10 @@
X
X #include <sys/queue.h>
X
X+#ifndef __PMT
X+#define __PMT(x) __P(x)
X+#endif
X+
X /*
X * The memory pool scheme is a simple one. Each in-memory page is referenced
X * by a bucket which is threaded in up to two of three ways. All active pages
END-of-./patches/patch-ab
echo x - ./patches/patch-ac
sed 's/^X//' >./patches/patch-ac << 'END-of-./patches/patch-ac'
X$NetBSD$
X
X+++ db1-ast/include/db.h 2003-08-24 09:42:17.000000000 +0900
X@@ -41,6 +41,10 @@
X
X #include <limits.h>
X
X+#ifndef __PMT
X+#define __PMT(x) __P(x)
X+#endif
X+
X #ifdef __DBINTERFACE_PRIVATE
X #include <compat.h>
X #endif
END-of-./patches/patch-ac
echo x - ./patches/patch-ad
sed 's/^X//' >./patches/patch-ad << 'END-of-./patches/patch-ad'
X+++ work.i386/asterisk-0.4.0/include/asterisk/frame.h 2003-08-24 09:43:58.000000000 +0900
X@@ -20,7 +20,7 @@
X extern "C" {
X #endif
X
X-#include <endian.h>
X+#include <machine/endian.h>
X #include <sys/types.h>
X
X //! Data structure associated with a single frame of data
END-of-./patches/patch-ad
echo x - ./patches/patch-ae
sed 's/^X//' >./patches/patch-ae << 'END-of-./patches/patch-ae'
X+++ work.i386/asterisk-0.4.0/rtp.c 2003-08-24 09:46:01.000000000 +0900
X@@ -568,7 +568,11 @@
X int ast_rtp_settos(struct ast_rtp *rtp, int tos)
X {
X int res;
X+#ifndef SOL_IP
X+ if ((res = setsockopt(rtp->s, IPPROTO_IP, IP_TOS, &tos, sizeof(tos))))
X+#else
X if ((res = setsockopt(rtp->s, SOL_IP, IP_TOS, &tos, sizeof(tos))))
X+#endif
X ast_log(LOG_WARNING, "Unable to set TOS to %d\n", tos);
X return res;
X }
END-of-./patches/patch-ae
echo x - ./patches/patch-af
sed 's/^X//' >./patches/patch-af << 'END-of-./patches/patch-af'
X+++ work.i386/asterisk-0.4.0/pbx.c 2003-08-24 09:49:53.000000000 +0900
X@@ -863,7 +863,9 @@
X
X length=(int)(finish-tmp);
X wherearewe+=length+1;
X- lval=strndup(tmp+2,length-2);
X+ lval = malloc(length - 2 + 1);
X+ strncpy(lval, tmp + 2, length - 2);
X+ lval[length - 2] = '\0';
X pbx_substitute_variables_helper(c,lval,<mp,count+1);
X free(lval);
X if (ltmp) {
X@@ -903,7 +905,7 @@
X
X /* No variables or expressions in e->data, so why scan it? */
X if (!strstr(e->data,"${") && !strstr(e->data,"$[")) {
X- return strndup(e->data,strlen(e->data)+1);
X+ return strdup(e->data);
X }
X
X cp1=e->data;
END-of-./patches/patch-af
echo x - ./patches/patch-ag
sed 's/^X//' >./patches/patch-ag << 'END-of-./patches/patch-ag'
X+++ work.i386/asterisk-0.4.0/indications.c 2003-08-24 09:51:04.000000000 +0900
X@@ -140,11 +140,14 @@
X
X int ast_playtones_start(struct ast_channel *chan, int vol, const char *playlst, int interruptible)
X {
X- char *s, *data = strdupa(playlst); /* cute */
X+ char *s, *data;
X struct playtones_def d = { vol, -1, 0, 1, NULL};
X char *stringp=NULL;
X+
X+ data = alloca(strlen(playlst) + 1);
X if (!data)
X return -1;
X+ strcpy(data, playlst);
X if (vol < 1)
X d.vol = 8192;
X
END-of-./patches/patch-ag
echo x - ./patches/patch-ah
sed 's/^X//' >./patches/patch-ah << 'END-of-./patches/patch-ah'
X+++ work.i386/asterisk-0.4.0/channels/chan_iax.c 2003-08-24 09:56:05.000000000 +0900
X@@ -32,6 +32,9 @@
X #include <arpa/inet.h>
X #include <sys/socket.h>
X #include <netinet/in.h>
X+#ifdef __NetBSD__
X+#include <netinet/in_systm.h>
X+#endif
X #include <netinet/ip.h>
X #include <sys/time.h>
X #include <sys/signal.h>
X@@ -4625,6 +4628,9 @@
X } else if (!strcasecmp(v->name, "register")) {
X iax_register(v->value, v->lineno);
X } else if (!strcasecmp(v->name, "tos")) {
X+#ifndef IPTOS_MINCOST
X+#define IPTOS_MINCOST 0x01
X+#endif
X if (sscanf(v->value, "%i", &format) == 1)
X tos = format & 0xff;
X else if (!strcasecmp(v->value, "lowdelay"))
X@@ -5125,7 +5131,11 @@
X if (option_verbose > 1)
X ast_verbose(VERBOSE_PREFIX_2 "Using TOS bits %d\n", tos);
X
X+#ifdef SOL_IP
X if (setsockopt(netsocket, SOL_IP, IP_TOS, &tos, sizeof(tos)))
X+#else
X+ if (setsockopt(netsocket, IPPROTO_IP, IP_TOS, &tos, sizeof(tos)))
X+#endif
X ast_log(LOG_WARNING, "Unable to set TOS to %d\n", tos);
X
X if (!res) {
END-of-./patches/patch-ah
echo x - ./patches/patch-ai
sed 's/^X//' >./patches/patch-ai << 'END-of-./patches/patch-ai'
X+++ work.i386/asterisk-0.4.0/channels/chan_sip.c 2003-08-24 09:57:59.000000000 +0900
X@@ -45,6 +45,9 @@
X #include <netdb.h>
X #include <arpa/inet.h>
X #include <sys/signal.h>
X+#ifdef __NetBSD__
X+#include <netinet/in_systm.h>
X+#endif
X #include <netinet/ip.h>
X
X /* #define VOCAL_DATA_HACK */
X@@ -5110,6 +5113,9 @@
X } else if (!strcasecmp(v->name, "register")) {
X sip_register(v->value, v->lineno);
X } else if (!strcasecmp(v->name, "tos")) {
X+#ifndef IPTOS_MINCOST
X+#define IPTOS_MINCOST 0x01
X+#endif
X if (sscanf(v->value, "%i", &format) == 1)
X tos = format & 0xff;
X else if (!strcasecmp(v->value, "lowdelay"))
X@@ -5207,7 +5213,11 @@
X if (option_verbose > 1)
X ast_verbose(VERBOSE_PREFIX_2 "Using TOS bits %d\n", tos);
X
X+#ifdef SOL_IP
X if (setsockopt(sipsock, SOL_IP, IP_TOS, &tos, sizeof(tos)))
X+#else
X+ if (setsockopt(sipsock, IPPROTO_IP, IP_TOS, &tos, sizeof(tos)))
X+#endif
X ast_log(LOG_WARNING, "Unable to set TOS to %d\n", tos);
X
X }
END-of-./patches/patch-ai
echo x - ./patches/patch-aj
sed 's/^X//' >./patches/patch-aj << 'END-of-./patches/patch-aj'
X+++ work.i386/asterisk-0.4.0/channels/chan_oss.c 2003-08-24 10:01:14.000000000 +0900
X@@ -33,7 +33,11 @@
X #include <string.h>
X #include <stdlib.h>
X #include <stdio.h>
X+#ifdef __NetBSD__
X+#include <soundcard.h>
X+#else
X #include <linux/soundcard.h>
X+#endif
X #include "busy.h"
X #include "ringtone.h"
X #include "ring10.h"
X@@ -360,7 +364,7 @@
X return 0;
X readmode = 0;
X if (force || time_has_passed()) {
X- ioctl(sounddev, SNDCTL_DSP_RESET);
X+ ioctl(sounddev, SNDCTL_DSP_RESET, 0);
X /* Keep the same fd reserved by closing the sound device and copying stdin at the same
X time. */
X /* dup2(0, sound); */
X@@ -390,7 +394,7 @@
X return 0;
X readmode = -1;
X if (force || time_has_passed()) {
X- ioctl(sounddev, SNDCTL_DSP_RESET);
X+ ioctl(sounddev, SNDCTL_DSP_RESET, 0);
X close(sounddev);
X /* dup2(0, sound); */
X fd = open(DEV_DSP, O_RDONLY | O_NONBLOCK);
END-of-./patches/patch-aj
echo x - ./patches/patch-ak
sed 's/^X//' >./patches/patch-ak << 'END-of-./patches/patch-ak'
X+++ work.i386/asterisk-0.4.0/channels/chan_iax2.c 2003-08-24 10:02:32.000000000 +0900
X@@ -34,6 +34,9 @@
X #include <arpa/inet.h>
X #include <sys/socket.h>
X #include <netinet/in.h>
X+#ifdef __NetBSD__
X+#include <netinet/in_systm.h>
X+#endif
X #include <netinet/ip.h>
X #include <sys/time.h>
X #include <sys/signal.h>
X@@ -5004,6 +5007,9 @@
X } else if (!strcasecmp(v->name, "register")) {
X iax2_register(v->value, v->lineno);
X } else if (!strcasecmp(v->name, "tos")) {
X+#ifndef IPTOS_MINCOST
X+#define IPTOS_MINCOST 0x01
X+#endif
X if (sscanf(v->value, "%i", &format) == 1)
X tos = format & 0xff;
X else if (!strcasecmp(v->value, "lowdelay"))
X@@ -5520,7 +5526,11 @@
X if (option_verbose > 1)
X ast_verbose(VERBOSE_PREFIX_2 "Using TOS bits %d\n", tos);
X
X+#ifdef SOL_IP
X if (setsockopt(netsocket, SOL_IP, IP_TOS, &tos, sizeof(tos)))
X+#else
X+ if (setsockopt(netsocket, IPPROTO_IP, IP_TOS, &tos, sizeof(tos)))
X+#endif
X ast_log(LOG_WARNING, "Unable to set TOS to %d\n", tos);
X
X if (!res) {
END-of-./patches/patch-ak
echo x - ./patches/patch-al
sed 's/^X//' >./patches/patch-al << 'END-of-./patches/patch-al'
X+++ work.i386/asterisk-0.4.0/apps/app_intercom.c 2003-08-24 10:03:28.000000000 +0900
X@@ -26,7 +26,11 @@
X #include <stdlib.h>
X #include <pthread.h>
X #include <sys/time.h>
X+#ifdef __NetBSD__
X+#include <soundcard.h>
X+#else
X #include <linux/soundcard.h>
X+#endif
X #include <netinet/in.h>
X
X #define DEV_DSP "/dev/dsp"
END-of-./patches/patch-al
echo x - ./patches/patch-am
sed 's/^X//' >./patches/patch-am << 'END-of-./patches/patch-am'
X+++ work.i386/asterisk-0.4.0/codecs/Makefile 2003-08-24 10:05:03.000000000 +0900
X@@ -38,26 +38,26 @@
X
X clean:
X rm -f *.so *.o
X- ! [ -d g723.1 ] || make -C g723.1 clean
X- ! [ -d g723.1b ] || make -C g723.1b clean
X- make -C gsm clean
X- make -C mp3 clean
X- make -C lpc10 clean
X+ ! [ -d g723.1 ] || ${MAKE} -C g723.1 clean
X+ ! [ -d g723.1b ] || ${MAKE} -C g723.1b clean
X+ ${MAKE} -C gsm clean
X+ ${MAKE} -C mp3 clean
X+ ${MAKE} -C lpc10 clean
X
X $(LIBG723):
X- make -C g723.1 all
X+ ${MAKE} -C g723.1 all
X
X gsm/lib/libgsm.a:
X- make -C gsm lib/libgsm.a
X+ ${MAKE} -C gsm lib/libgsm.a
X
X $(LIBG723B):
X- make -C g723.1b all
X+ ${MAKE} -C g723.1b all
X
X $(LIBMP3):
X- make -C mp3 all
X+ ${MAKE} -C mp3 all
X
X $(LIBLPC10):
X- make -C lpc10 all
X+ ${MAKE} -C lpc10 all
X
X codec_g723_1.so : codec_g723_1.o $(LIBG723)
X $(CC) -shared -Xlinker -x -o $@ $< $(LIBG723)
END-of-./patches/patch-am
echo x - ./patches/patch-an
sed 's/^X//' >./patches/patch-an << 'END-of-./patches/patch-an'
X+++ work.i386/asterisk-0.4.0/codecs/lpc10/lpc10.h 2003-08-24 10:06:39.000000000 +0900
X@@ -32,7 +32,7 @@
X
X */
X
X-#if defined(unix)
X+#if defined(unix) || defined(__NetBSD__)
X typedef short INT16;
X typedef int INT32;
X #endif
END-of-./patches/patch-an
echo x - ./patches/patch-ao
sed 's/^X//' >./patches/patch-ao << 'END-of-./patches/patch-ao'
X+++ work.i386/asterisk-0.4.0/formats/format_wav.c 2003-08-24 10:07:56.000000000 +0900
X@@ -25,7 +25,11 @@
X #include <errno.h>
X #include <string.h>
X #include <pthread.h>
X+#ifdef __NetBSD__
X+#include <machine/endian.h>
X+#else
X #include <endian.h>
X+#endif
X
X /* Some Ideas for this code came from makewave.c by Jeffery Chilton */
X
END-of-./patches/patch-ao
echo x - ./patches/patch-ap
sed 's/^X//' >./patches/patch-ap << 'END-of-./patches/patch-ap'
X+++ work.i386/asterisk-0.4.0/formats/format_wav_gsm.c 2003-08-24 10:08:26.000000000 +0900
X@@ -25,7 +25,11 @@
X #include <errno.h>
X #include <string.h>
X #include <pthread.h>
X+#ifdef __NetBSD__
X+#include <machine/endian.h>
X+#else
X #include <endian.h>
X+#endif
X #include "msgsm.h"
X
X /* Some Ideas for this code came from makewave.c by Jeffery Chilton */
END-of-./patches/patch-ap
echo x - ./patches/patch-aq
sed 's/^X//' >./patches/patch-aq << 'END-of-./patches/patch-aq'
X+++ work.i386/asterisk-0.4.0/formats/format_gsm.c 2003-08-24 10:08:59.000000000 +0900
X@@ -25,7 +25,11 @@
X #include <errno.h>
X #include <string.h>
X #include <pthread.h>
X+#ifdef __NetBSD__
X+#include <machine/endian.h>
X+#else
X #include <endian.h>
X+#endif
X
X /* Some Ideas for this code came from makegsme.c by Jeffery Chilton */
X
END-of-./patches/patch-aq
echo x - ./patches/patch-ar
sed 's/^X//' >./patches/patch-ar << 'END-of-./patches/patch-ar'
X+++ work.i386/asterisk-0.4.0/formats/format_vox.c 2003-08-24 10:09:25.000000000 +0900
X@@ -25,7 +25,11 @@
X #include <errno.h>
X #include <string.h>
X #include <pthread.h>
X+#ifdef __NetBSD__
X+#include <machine/endian.h>
X+#else
X #include <endian.h>
X+#endif
X
X #define BUF_SIZE 80 /* 160 samples */
X
END-of-./patches/patch-ar
echo x - ./patches/patch-as
sed 's/^X//' >./patches/patch-as << 'END-of-./patches/patch-as'
X+++ work.i386/asterisk-0.4.0/formats/format_pcm.c 2003-08-24 10:09:51.000000000 +0900
X@@ -25,7 +25,11 @@
X #include <errno.h>
X #include <string.h>
X #include <pthread.h>
X+#ifdef __NetBSD__
X+#include <machine/endian.h>
X+#else
X #include <endian.h>
X+#endif
X
X #define BUF_SIZE 160 /* 160 samples */
X
END-of-./patches/patch-as
echo x - ./patches/patch-at
sed 's/^X//' >./patches/patch-at << 'END-of-./patches/patch-at'
X+++ work.i386/asterisk-0.4.0/formats/format_g729.c 2003-08-24 10:10:22.000000000 +0900
X@@ -25,7 +25,11 @@
X #include <errno.h>
X #include <string.h>
X #include <pthread.h>
X+#ifdef __NetBSD__
X+#include <machine/endian.h>
X+#else
X #include <endian.h>
X+#endif
X
X /* Some Ideas for this code came from makeg729e.c by Jeffery Chilton */
X
END-of-./patches/patch-at
echo x - ./patches/patch-au
sed 's/^X//' >./patches/patch-au << 'END-of-./patches/patch-au'
X+++ work.i386/asterisk-0.4.0/formats/format_pcm_alaw.c 2003-08-24 10:10:49.000000000 +0900
X@@ -27,7 +27,11 @@
X #include <errno.h>
X #include <string.h>
X #include <pthread.h>
X+#ifdef __NetBSD__
X+#include <machine/endian.h>
X+#else
X #include <endian.h>
X+#endif
X
X #define BUF_SIZE 160 /* 160 samples */
X
END-of-./patches/patch-au
echo x - ./patches/patch-av
sed 's/^X//' >./patches/patch-av << 'END-of-./patches/patch-av'
X+++ work.i386/asterisk-0.4.0/formats/format_jpeg.c 2003-08-24 10:11:19.000000000 +0900
X@@ -25,7 +25,11 @@
X #include <errno.h>
X #include <string.h>
X #include <pthread.h>
X+#ifdef __NetBSD__
X+#include <machine/endian.h>
X+#else
X #include <endian.h>
X+#endif
X
X
X
END-of-./patches/patch-av
echo x - ./patches/patch-aw
sed 's/^X//' >./patches/patch-aw << 'END-of-./patches/patch-aw'
X+++ work.i386/asterisk-0.4.0/channels/Makefile 2003-08-24 10:14:15.000000000 +0900
X@@ -72,6 +72,9 @@
X ringtone.h: gentone
X ./gentone ringtone 440 480
X
X+chan_oss.so: chan_oss.o
X+ $(CC) -shared -Xlinker -x -o $@ chan_oss.o -lossaudio
X+
X chan_oss.o: chan_oss.c busy.h ringtone.h
X
X chan_iax2.so: chan_iax2.o iax2-parser.o
END-of-./patches/patch-aw
echo x - ./patches/patch-ax
sed 's/^X//' >./patches/patch-ax << 'END-of-./patches/patch-ax'
X+++ work.i386/asterisk-0.4.0/apps/Makefile 2003-08-24 10:16:02.000000000 +0900
X@@ -46,6 +46,9 @@
X app_todd.o: app_todd.c
X gcc -pipe -O6 -g -Iinclude -I../include -D_REENTRANT -march=i586 -DDO_CRASH -c -o app_todd.o app_todd.c
X
X+app_intercom.so: app_intercom.o
X+ $(CC) -shared -Xlinker -x -o $@ $< -lossaudio
X+
X app_todd.so: app_todd.o
X $(CC) -shared -Xlinker -x -o $@ $< -L/usr/local/ssl/lib -lssl -lcrypto
X
END-of-./patches/patch-ax
exit
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: