diff options
author | sobomax <sobomax@FreeBSD.org> | 2003-10-17 19:22:52 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2003-10-17 19:22:52 +0800 |
commit | 833e5e373d9b0cf324df571c69ad7fe349abc376 (patch) | |
tree | dbc33242b36bcccbd6fc83b4cb58335a83063330 /net/asterisk10 | |
parent | e2a21e1e7649b3fd2cee9922499262b285089df8 (diff) | |
download | freebsd-ports-gnome-833e5e373d9b0cf324df571c69ad7fe349abc376.tar.gz freebsd-ports-gnome-833e5e373d9b0cf324df571c69ad7fe349abc376.tar.zst freebsd-ports-gnome-833e5e373d9b0cf324df571c69ad7fe349abc376.zip |
Add asterisk 0.5.0, an Open Source PBX and telephony toolkit.
Diffstat (limited to 'net/asterisk10')
26 files changed, 1206 insertions, 0 deletions
diff --git a/net/asterisk10/Makefile b/net/asterisk10/Makefile new file mode 100644 index 000000000000..870aaae229af --- /dev/null +++ b/net/asterisk10/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: asterisk +# Date created: 17 October 2003 +# Whom: Maxim Sobolev <sobomax@portaone.com> +# +# $FreeBSD$ +# + +PORTNAME= asterisk +PORTVERSION= 0.5.0 +CATEGORIES= net +MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \ + ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/ + +MAINTAINER= sobomax@FreeBSD.org +COMMENT= An Open Source PBX and telephony toolkit + +BUILD_DEPENDS= ${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql40-client +RUN_DEPENDS= ${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql40-client + +GNU_CONFIGURE= yes +CONFIGURE_WRKSRC= ${WRKSRC}/editline +USE_GMAKE= yes +MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ + PTHREAD_LIBS="${PTHREAD_LIBS}" \ + MKDIR="${MKDIR}" + +.include <bsd.port.mk> diff --git a/net/asterisk10/distinfo b/net/asterisk10/distinfo new file mode 100644 index 000000000000..aae6b84dba9d --- /dev/null +++ b/net/asterisk10/distinfo @@ -0,0 +1 @@ +MD5 (asterisk-0.5.0.tar.gz) = 6daf4091a62933d74fb8650f00b22374 diff --git a/net/asterisk10/files/patch-Makefile b/net/asterisk10/files/patch-Makefile new file mode 100644 index 000000000000..a11dc52ae1b5 --- /dev/null +++ b/net/asterisk10/files/patch-Makefile @@ -0,0 +1,295 @@ + +$FreeBSD$ + +--- Makefile.orig Tue Sep 2 03:33:42 2003 ++++ Makefile Fri Oct 17 13:33:58 2003 +@@ -39,10 +39,10 @@ + #K6OPT = -DK6OPT + + #Tell gcc to optimize the asterisk's code +-OPTIMIZE=-O6 ++#OPTIMIZE=-O6 + + #Include debug symbols in the executables (-g) and profiling info (-pg) +-DEBUG=-g #-pg ++#DEBUG=-g #-pg + + # New hangup routines for chan_zap.c + # If this flag is uncommented then you need to have new libpri code in your system +@@ -64,7 +64,7 @@ + + # Where to install asterisk after compiling + # Default -> leave empty +-INSTALL_PREFIX= ++INSTALL_PREFIX=${PREFIX} + + # Original busydetect routine + BUSYDETECT = #-DBUSYDETECT +@@ -78,28 +78,28 @@ + # Don't use together with -DBUSYDETECT_TONEONLY + BUSYDETECT+= #-DBUSYDETECT_COMPARE_TONE_AND_SILENCE + +-ASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk +-ASTVARLIBDIR=$(INSTALL_PREFIX)/var/lib/asterisk ++ASTLIBDIR=$(INSTALL_PREFIX)/lib/asterisk ++ASTVARLIBDIR=$(INSTALL_PREFIX)/share/asterisk + ASTETCDIR=$(INSTALL_PREFIX)/etc/asterisk +-ASTSPOOLDIR=$(INSTALL_PREFIX)/var/spool/asterisk +-ASTLOGDIR=$(INSTALL_PREFIX)/var/log/asterisk +-ASTHEADERDIR=$(INSTALL_PREFIX)/usr/include/asterisk ++ASTSPOOLDIR=/var/spool/asterisk ++ASTLOGDIR=/var/log/asterisk ++ASTHEADERDIR=$(INSTALL_PREFIX)/include/asterisk + ASTCONFPATH=$(ASTETCDIR)/asterisk.conf +-ASTBINDIR=$(INSTALL_PREFIX)/usr/bin +-ASTSBINDIR=$(INSTALL_PREFIX)/usr/sbin +-ASTVARRUNDIR=$(INSTALL_PREFIX)/var/run ++ASTBINDIR=$(INSTALL_PREFIX)/bin ++ASTSBINDIR=$(INSTALL_PREFIX)/sbin ++ASTVARRUNDIR=/var/run + + + MODULES_DIR=$(ASTLIBDIR)/modules + AGI_DIR=$(ASTVARLIBDIR)/agi-bin + + INCLUDE=-Iinclude -I../include +-CFLAGS=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE #-DMAKE_VALGRIND_HAPPY ++CFLAGS+=-Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE #-DMAKE_VALGRIND_HAPPY + CFLAGS+=$(OPTIMIZE) + CFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi) + CFLAGS+=$(shell if uname -m | grep -q ppc; then echo "-fsigned-char"; fi) +-ifeq (${OSARCH},OpenBSD) +-CFLAGS+=-pthread ++ifeq (${OSARCH},FreeBSD) ++CFLAGS+=${PTHREAD_CFLAGS} + endif + + CFLAGS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "-DZAPTEL_OPTIMIZATIONS"; fi) +@@ -131,14 +131,14 @@ + ifeq (${OSARCH},Linux) + LIBS=-ldl + endif +-LIBS+=-lpthread -lncurses -lm -lresolv #-lnjamd ++LIBS+=${PTHREAD_LIBS} -lncurses -lm #-lnjamd + OBJS=io.o sched.o logger.o frame.o loader.o config.o channel.o \ + translate.o file.o say.o pbx.o cli.o md5.o term.o \ + ulaw.o alaw.o callerid.o fskmodem.o image.o app.o \ + cdr.o tdd.o acl.o rtp.o manager.o asterisk.o ast_expr.o \ + dsp.o chanvars.o indications.o autoservice.o db.o privacy.o \ + astmm.o enum.o srv.o +-CC=gcc ++CC?=gcc + INSTALL=install + + _all: all +@@ -163,13 +163,13 @@ + editline/libedit.a: editline/config.h + $(MAKE) -C editline libedit.a + +-db1-ast/libdb1.a: +- @if [ -d db1-ast ]; then \ +- $(MAKE) -C db1-ast libdb1.a ; \ +- else \ +- echo "You need to do a cvs update -d not just cvs update"; \ +- exit 1; \ +- fi ++#db1-ast/libdb1.a: ++# @if [ -d db1-ast ]; then \ ++# $(MAKE) -C db1-ast libdb1.a ; \ ++# else \ ++# echo "You need to do a cvs update -d not just cvs update"; \ ++# exit 1; \ ++# fi + + ifneq ($(wildcard .depend),) + include .depend +@@ -199,8 +199,8 @@ + ./make_build_h + endif + +-asterisk: editline/libedit.a db1-ast/libdb1.a $(OBJS) +- $(CC) $(DEBUG) -o asterisk -rdynamic $(OBJS) $(LIBS) $(LIBEDIT) db1-ast/libdb1.a ++asterisk: editline/libedit.a $(OBJS) ++ $(CC) $(DEBUG) -o asterisk -rdynamic $(OBJS) $(LIBS) $(LIBEDIT) + + subdirs: + for x in $(SUBDIRS); do $(MAKE) -C $$x || exit 1 ; done +@@ -214,10 +214,10 @@ + $(MAKE) -C db1-ast clean + + datafiles: all +- mkdir -p $(ASTVARLIBDIR)/sounds/digits ++ $(MKDIR) $(ASTVARLIBDIR)/sounds/digits + for x in sounds/digits/*.gsm; do \ + if grep -q "^%`basename $$x`%" sounds.txt; then \ +- install $$x $(ASTVARLIBDIR)/sounds/digits ; \ ++ $(BSD_INSTALL_DATA) $$x $(ASTVARLIBDIR)/sounds/digits ; \ + else \ + echo "No description for $$x"; \ + exit 1; \ +@@ -225,18 +225,18 @@ + done + for x in sounds/vm-* sounds/transfer* sounds/pbx-* sounds/ss-* sounds/beep* sounds/dir-* sounds/conf-* sounds/agent-* sounds/invalid* sounds/tt-* sounds/auth-* sounds/privacy-*; do \ + if grep -q "^%`basename $$x`%" sounds.txt; then \ +- install $$x $(ASTVARLIBDIR)/sounds ; \ ++ $(BSD_INSTALL_DATA) $$x $(ASTVARLIBDIR)/sounds ; \ + else \ + echo "No description for $$x"; \ + exit 1; \ + fi; \ + done +- mkdir -p $(ASTVARLIBDIR)/mohmp3 +- mkdir -p $(ASTVARLIBDIR)/images ++ $(MKDIR) $(ASTVARLIBDIR)/mohmp3 ++ $(MKDIR) $(ASTVARLIBDIR)/images + for x in images/*.jpg; do \ +- install $$x $(ASTVARLIBDIR)/images ; \ ++ $(BSD_INSTALL_DATA) $$x $(ASTVARLIBDIR)/images ; \ + done +- mkdir -p $(AGI_DIR) ++ $(MKDIR) $(AGI_DIR) + + update: + @if [ -d CVS ]; then \ +@@ -248,98 +248,73 @@ + fi + + bininstall: all +- mkdir -p $(MODULES_DIR) +- mkdir -p $(ASTSBINDIR) +- mkdir -p $(ASTETCDIR) +- mkdir -p $(ASTBINDIR) +- mkdir -p $(ASTSBINDIR) +- mkdir -p $(ASTVARRUNDIR) +- mkdir -p $(ASTSPOOLDIR)/voicemail +- install -m 755 asterisk $(ASTSBINDIR)/ +- install -m 755 astgenkey $(ASTSBINDIR)/ +- install -m 755 safe_asterisk $(ASTSBINDIR)/ ++ $(MKDIR) $(MODULES_DIR) ++ $(MKDIR) $(ASTSBINDIR) ++ $(MKDIR) $(ASTETCDIR) ++ $(MKDIR) $(ASTBINDIR) ++ $(MKDIR) $(ASTSBINDIR) ++ $(MKDIR) $(ASTVARRUNDIR) ++ $(MKDIR) $(ASTSPOOLDIR)/voicemail ++ ${BSD_INSTALL_PROGRAM} asterisk $(ASTSBINDIR)/ ++ ${BSD_INSTALL_SCRIPT} astgenkey $(ASTSBINDIR)/ ++ ${BSD_INSTALL_SCRIPT} safe_asterisk $(ASTSBINDIR)/ + for x in $(SUBDIRS); do $(MAKE) -C $$x install || exit 1 ; done +- install -d $(ASTHEADERDIR) +- install include/asterisk/*.h $(ASTHEADERDIR) +- rm -f $(ASTVARLIBDIR)/sounds/vm +- rm -f $(ASTVARLIBDIR)/sounds/voicemail +- if [ ! -h $(ASTSPOOLDIR)/vm ] && [ -d $(ASTSPOOLDIR)/vm ]; then \ +- mv $(ASTSPOOLDIR)/vm $(ASTSPOOLDIR)/voicemail/default; \ +- else \ +- mkdir -p $(ASTSPOOLDIR)/voicemail/default; \ +- rm -f $(ASTSPOOLDIR)/vm; \ +- fi +- ln -s $(ASTSPOOLDIR)/voicemail/default $(ASTSPOOLDIR)/vm +- rm -f $(MODULES_DIR)/chan_ixj.so +- rm -f $(MODULES_DIR)/chan_tor.so +- mkdir -p $(ASTVARLIBDIR)/sounds +- mkdir -p $(ASTLOGDIR)/cdr-csv +- mkdir -p $(ASTVARLIBDIR)/keys +- install -m 644 keys/iaxtel.pub $(ASTVARLIBDIR)/keys +- ( cd $(ASTVARLIBDIR)/sounds ; ln -s $(ASTSPOOLDIR)/vm . ) +- ( cd $(ASTVARLIBDIR)/sounds ; ln -s $(ASTSPOOLDIR)/voicemail . ) +- @echo " +---- Asterisk Installation Complete -------+" +- @echo " + +" +- @echo " + YOU MUST READ THE SECURITY DOCUMENT +" +- @echo " + +" +- @echo " + Asterisk has successfully been installed. +" +- @echo " + If you would like to install the sample +" +- @echo " + configuration files (overwriting any +" +- @echo " + existing config files), run: +" +- @echo " + +" +- @echo " + $(MAKE) samples +" +- @echo " + +" +- @echo " +----------------- or ---------------------+" +- @echo " + +" +- @echo " + You can go ahead and install the asterisk +" +- @echo " + program documentation now or later run: +" +- @echo " + +" +- @echo " + $(MAKE) progdocs +" +- @echo " + +" +- @echo " + **Note** This requires that you have +" +- @echo " + doxygen installed on your local system +" +- @echo " +-------------------------------------------+" ++ $(MKDIR) $(ASTHEADERDIR) ++ ${BSD_INSTALL_DATA} include/asterisk/*.h $(ASTHEADERDIR) ++ $(MKDIR) $(ASTSPOOLDIR)/voicemail/default ++ rm -f $(ASTSPOOLDIR)/vm ++ ln -sf $(ASTSPOOLDIR)/voicemail/default $(ASTSPOOLDIR)/vm ++ $(MKDIR) $(ASTVARLIBDIR)/sounds ++ $(MKDIR) $(ASTLOGDIR)/cdr-csv ++ $(MKDIR) $(ASTVARLIBDIR)/keys ++ ${BSD_INSTALL_DATA} keys/iaxtel.pub $(ASTVARLIBDIR)/keys ++ ( cd $(ASTVARLIBDIR)/sounds; rm -f vm; ln -sf $(ASTSPOOLDIR)/vm . ) ++ ( cd $(ASTVARLIBDIR)/sounds; rm -f voicemail; ln -sf $(ASTSPOOLDIR)/voicemail . ) + +-install: all datafiles bininstall ++install: all datafiles bininstall samples + + upgrade: all bininstall + + adsi: all +- mkdir -p $(ASTETCDIR) ++ $(MKDIR) $(ASTETCDIR) + for x in configs/*.adsi; do \ ++ $(BSD_INSTALL_DATA) $$x $(ASTETCDIR)/`basename $$x`-dist; \ + if ! [ -f $(ASTETCDIRX)/$$x ]; then \ +- install -m 644 $$x $(ASTETCDIR)/`basename $$x` ; \ ++ $(BSD_INSTALL_DATA) $$x $(ASTETCDIR)/`basename $$x` ; \ + fi ; \ + done + + samples: all datafiles adsi +- mkdir -p $(ASTETCDIR) ++ $(MKDIR) $(ASTETCDIR) + for x in configs/*.sample; do \ +- if [ -f $(ASTETCDIR)/`basename $$x .sample` ]; then \ +- mv -f $(ASTETCDIR)/`basename $$x .sample` $(ASTETCDIR)/`basename $$x .sample`.old ; \ ++ $(BSD_INSTALL_DATA) $$x $(ASTETCDIR)/`basename $$x .sample`-dist ;\ ++ if ! [ -f $(ASTETCDIR)/`basename $$x .sample` ]; then \ ++ $(BSD_INSTALL_DATA) $$x $(ASTETCDIR)/`basename $$x .sample` ;\ + fi ; \ +- install $$x $(ASTETCDIR)/`basename $$x .sample` ;\ + done +- echo "[directories]" > $(ASTETCDIR)/asterisk.conf +- echo "astetcdir => $(ASTETCDIR)" >> $(ASTETCDIR)/asterisk.conf +- echo "astmoddir => $(MODULES_DIR)" >> $(ASTETCDIR)/asterisk.conf +- echo "astvarlibdir => $(ASTVARLIBDIR)" >> $(ASTETCDIR)/asterisk.conf +- echo "astagidir => $(AGI_DIR)" >> $(ASTETCDIR)/asterisk.conf +- echo "astspooldir => $(ASTSPOOLDIR)" >> $(ASTETCDIR)/asterisk.conf +- echo "astrundir => $(ASTVARRUNDIR)" >> $(ASTETCDIR)/asterisk.conf +- echo "astlogdir => $(ASTLOGDIR)" >> $(ASTETCDIR)/asterisk.conf ++ echo "[directories]" > $(ASTETCDIR)/asterisk.conf-dist ++ echo "astetcdir => $(ASTETCDIR)" >> $(ASTETCDIR)/asterisk.conf-dist ++ echo "astmoddir => $(MODULES_DIR)" >> $(ASTETCDIR)/asterisk.conf-dist ++ echo "astvarlibdir => $(ASTVARLIBDIR)" >> $(ASTETCDIR)/asterisk.conf-dist ++ echo "astagidir => $(AGI_DIR)" >> $(ASTETCDIR)/asterisk.conf-dist ++ echo "astspooldir => $(ASTSPOOLDIR)" >> $(ASTETCDIR)/asterisk.conf-dist ++ echo "astrundir => $(ASTVARRUNDIR)" >> $(ASTETCDIR)/asterisk.conf-dist ++ echo "astlogdir => $(ASTLOGDIR)" >> $(ASTETCDIR)/asterisk.conf-dist ++ if ! [ -f $(ASTETCDIR)/asterisk.conf ]; then \ ++ $(BSD_INSTALL_DATA) $(ASTETCDIR)/asterisk.conf-dist $(ASTETCDIR)/asterisk.conf; \ ++ fi + for x in sounds/demo-*; do \ + if grep -q "^%`basename $$x`%" sounds.txt; then \ +- install $$x $(ASTVARLIBDIR)/sounds ; \ ++ $(BSD_INSTALL_DATA) $$x $(ASTVARLIBDIR)/sounds ; \ + else \ + echo "No description for $$x"; \ + exit 1; \ + fi; \ + done + for x in sounds/*.mp3; do \ +- install $$x $(ASTVARLIBDIR)/mohmp3 ; \ ++ $(BSD_INSTALL_DATA) $$x $(ASTVARLIBDIR)/mohmp3 ; \ + done +- mkdir -p $(ASTSPOOLDIR)/voicemail/default/1234/INBOX ++ $(MKDIR) $(ASTSPOOLDIR)/voicemail/default/1234/INBOX + :> $(ASTVARLIBDIR)/sounds/voicemail/default/1234/unavail.gsm + for x in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isunavail; do \ + cat $(ASTVARLIBDIR)/sounds/$$x.gsm >> $(ASTVARLIBDIR)/sounds/voicemail/default/1234/unavail.gsm ; \ diff --git a/net/asterisk10/files/patch-agi::Makefile b/net/asterisk10/files/patch-agi::Makefile new file mode 100644 index 000000000000..806195bfbb3e --- /dev/null +++ b/net/asterisk10/files/patch-agi::Makefile @@ -0,0 +1,33 @@ + +$FreeBSD$ + +--- agi/Makefile.orig Tue Aug 19 19:42:30 2003 ++++ agi/Makefile Fri Oct 17 14:13:14 2003 +@@ -11,20 +11,23 @@ + # the GNU General Public License + # + +-AGIS=agi-test.agi eagi-test eagi-sphinx-test ++AGIS_BIN=eagi-test eagi-sphinx-test ++AGIS_SCR=agi-test.agi ++AGIS=$(AGIS_SCR) $(AGIS_BIN) + + CFLAGS+= + + all: depend $(AGIS) + + install: all +- for x in $(AGIS); do $(INSTALL) -m 755 $$x $(AGI_DIR) ; done ++ for x in $(AGIS_BIN); do $(BSD_INSTALL_PROGRAM) $$x $(AGI_DIR) ; done ++ for x in $(AGIS_SCR); do $(BSD_INSTALL_SCRIPT) $$x $(AGI_DIR) ; done + + eagi-test: eagi-test.o +- $(CC) -o eagi-test eagi-test.o ++ $(CC) $(CFLAGS) -o eagi-test eagi-test.o + + eagi-sphinx-test: eagi-sphinx-test.o +- $(CC) -o eagi-sphinx-test eagi-sphinx-test.o ++ $(CC) $(CFLAGS) -o eagi-sphinx-test eagi-sphinx-test.o + + clean: + rm -f *.so *.o look .depend diff --git a/net/asterisk10/files/patch-apps::Makefile b/net/asterisk10/files/patch-apps::Makefile new file mode 100644 index 000000000000..66bf2e7524e7 --- /dev/null +++ b/net/asterisk10/files/patch-apps::Makefile @@ -0,0 +1,32 @@ + +$FreeBSD$ + +--- apps/Makefile.orig Thu Sep 4 07:40:37 2003 ++++ apps/Makefile Fri Oct 17 12:40:46 2003 +@@ -15,15 +15,8 @@ + + MLFLAGS= + ifeq ($(USE_MYSQL_VM_INTERFACE),1) +-CFLAGS+=-DUSEMYSQLVM +-CFLAGS+=$(shell if [ -d /usr/local/mysql/include ]; then echo "-I/usr/local/mysql/include"; fi) +-CFLAGS+=$(shell if [ -d /usr/include/mysql ]; then echo "-I/usr/include/mysql"; fi) +-CFLAGS+=$(shell if [ -d /usr/local/include/mysql ]; then echo "-I/usr/local/include/mysql"; fi) +-CFLAGS+=$(shell if [ -d /opt/mysql/include/mysql ]; then echo "-I/opt/mysql/include/mysql"; fi) +-MLFLAGS+=$(shell if [ -d /usr/lib/mysql ]; then echo "-L/usr/lib/mysql"; fi) +-MLFLAGS+=$(shell if [ -d /usr/local/mysql/lib ]; then echo "-L/usr/local/mysql/lib"; fi) +-MLFLAGS+=$(shell if [ -d /usr/local/lib/mysql ]; then echo "-L/usr/local/lib/mysql"; fi) +-MLFLAGS+=$(shell if [ -d /opt/mysql/lib/mysql ]; then echo "-L/opt/mysql/lib/mysql"; fi) ++CFLAGS+=-DUSEMYSQLVM -I${LOCALBASE}/include/mysql ++MLFLAGS+=-L${LOCALBASE}/lib/mysql + endif + + #APPS=app_dial.so app_playback.so app_directory.so app_intercom.so app_mp3.so +@@ -57,7 +50,7 @@ + $(CC) -shared -Xlinker -x -o $@ $< -ltonezone + + install: all +- for x in $(APPS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done ++ for x in $(APPS); do $(BSD_INSTALL_PROGRAM) $$x $(MODULES_DIR) ; done + + app_todd.o: app_todd.c + gcc -pipe -O6 -g -Iinclude -I../include -D_REENTRANT -march=i586 -DDO_CRASH -c -o app_todd.o app_todd.c diff --git a/net/asterisk10/files/patch-apps::app_intercom.c b/net/asterisk10/files/patch-apps::app_intercom.c new file mode 100644 index 000000000000..387ddfb36f24 --- /dev/null +++ b/net/asterisk10/files/patch-apps::app_intercom.c @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- apps/app_intercom.c.orig Wed Aug 13 18:25:16 2003 ++++ apps/app_intercom.c Fri Oct 17 11:27:30 2003 +@@ -29,7 +29,7 @@ + #ifdef __linux__ + #include <linux/soundcard.h> + #else +-#include <soundcard.h> ++#include <sys/soundcard.h> + #endif + #include <netinet/in.h> + diff --git a/net/asterisk10/files/patch-astman::Makefile b/net/asterisk10/files/patch-astman::Makefile new file mode 100644 index 000000000000..53c8b316c2df --- /dev/null +++ b/net/asterisk10/files/patch-astman::Makefile @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- astman/Makefile 2003/10/17 09:43:08 1.1 ++++ astman/Makefile 2003/10/17 09:43:31 +@@ -8,7 +8,7 @@ + install: + if [ "$(TARGET)" != "none" ]; then \ + for x in $(TARGET); do \ +- install -m 755 $$x $(ASTSBINDIR)/astman; \ ++ $(BSD_INSTALL_PROGRAM) $$x $(ASTSBINDIR)/astman; \ + done ; \ + fi + diff --git a/net/asterisk10/files/patch-cdr::Makefile b/net/asterisk10/files/patch-cdr::Makefile new file mode 100644 index 000000000000..59db17a59b8b --- /dev/null +++ b/net/asterisk10/files/patch-cdr::Makefile @@ -0,0 +1,31 @@ + +$FreeBSD$ + +--- cdr/Makefile.orig Tue Aug 19 19:42:30 2003 ++++ cdr/Makefile Fri Oct 17 12:42:54 2003 +@@ -18,21 +18,14 @@ + # + # MySQL stuff... Autoconf anyone?? + # +-MODS+=$(shell if [ -d /usr/local/mysql/include ] || [ -d /usr/include/mysql ] || [ -d /usr/local/include/mysql ] || [ -d /opt/mysql/include ]; then echo "cdr_mysql.so"; fi) +-CFLAGS+=$(shell if [ -d /usr/local/mysql/include ]; then echo "-I/usr/local/mysql/include"; fi) +-CFLAGS+=$(shell if [ -d /usr/include/mysql ]; then echo "-I/usr/include/mysql"; fi) +-CFLAGS+=$(shell if [ -d /usr/local/include/mysql ]; then echo "-I/usr/local/include/mysql"; fi) +-CFLAGS+=$(shell if [ -d /opt/mysql/include/mysql ]; then echo "-I/opt/mysql/include/mysql"; fi) +-MLFLAGS= +-MLFLAGS+=$(shell if [ -d /usr/lib/mysql ]; then echo "-L/usr/lib/mysql"; fi) +-MLFLAGS+=$(shell if [ -d /usr/local/mysql/lib ]; then echo "-L/usr/local/mysql/lib"; fi) +-MLFLAGS+=$(shell if [ -d /usr/local/lib/mysql ]; then echo "-L/usr/local/lib/mysql"; fi) +-MLFLAGS+=$(shell if [ -d /opt/mysql/lib/mysql ]; then echo "-L/opt/mysql/lib/mysql"; fi) ++MODS+=cdr_mysql.so ++CFLAGS+=-I${LOCALBASE}/include/mysql ++MLFLAGS+=-L${LOCALBASE}/lib/mysql + + all: depend $(MODS) + + install: all +- for x in $(MODS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done ++ for x in $(MODS); do $(BSD_INSTALL_PROGRAM) $$x $(MODULES_DIR) ; done + + clean: + rm -f *.so *.o .depend diff --git a/net/asterisk10/files/patch-channels::Makefile b/net/asterisk10/files/patch-channels::Makefile new file mode 100644 index 000000000000..5c04f9ee8533 --- /dev/null +++ b/net/asterisk10/files/patch-channels::Makefile @@ -0,0 +1,23 @@ + +$FreeBSD$ + +--- channels/Makefile.orig Tue Aug 19 19:42:30 2003 ++++ channels/Makefile Fri Oct 17 12:39:34 2003 +@@ -95,7 +95,7 @@ + ifeq (${OSARCH},Linux) + $(CC) -shared -Xlinker -x -o $@ chan_iax2.o iax2-parser.o + else +- $(CC) -shared -Xlinker -x -o $@ chan_iax2.o iax2-parser.o -lossaudio ++ $(CC) -shared -Xlinker -x -o $@ chan_iax2.o iax2-parser.o + endif + + chan_zap.o: $(CHANZAP) +@@ -127,7 +127,7 @@ + # $(CC) -rdynamic -shared -Xlinker -x -o $@ $< + + install: all +- for x in $(CHANNEL_LIBS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done ++ for x in $(CHANNEL_LIBS); do $(BSD_INSTALL_PROGRAM) $$x $(MODULES_DIR) ; done + + depend: .depend + diff --git a/net/asterisk10/files/patch-channels::chan_oss.c b/net/asterisk10/files/patch-channels::chan_oss.c new file mode 100644 index 000000000000..10bbc21f9ba7 --- /dev/null +++ b/net/asterisk10/files/patch-channels::chan_oss.c @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- channels/chan_oss.c.orig Wed Aug 13 18:25:16 2003 ++++ channels/chan_oss.c Fri Oct 17 11:27:30 2003 +@@ -36,7 +36,7 @@ + #ifdef __linux + #include <linux/soundcard.h> + #else +-#include <soundcard.h> ++#include <sys/soundcard.h> + #endif + #include "busy.h" + #include "ringtone.h" diff --git a/net/asterisk10/files/patch-codecs::Makefile b/net/asterisk10/files/patch-codecs::Makefile new file mode 100644 index 000000000000..1b2df457265c --- /dev/null +++ b/net/asterisk10/files/patch-codecs::Makefile @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- codecs/Makefile 2003/10/17 09:41:04 1.1 ++++ codecs/Makefile 2003/10/17 09:41:19 +@@ -95,7 +95,7 @@ + include .depend + + install: all +- for x in $(CODECS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done ++ for x in $(CODECS); do $(BSD_INSTALL_PROGRAM) $$x $(MODULES_DIR) ; done + + depend: .depend + diff --git a/net/asterisk10/files/patch-codecs::gsm::Makefile b/net/asterisk10/files/patch-codecs::gsm::Makefile new file mode 100644 index 000000000000..0c9a35eecb6d --- /dev/null +++ b/net/asterisk10/files/patch-codecs::gsm::Makefile @@ -0,0 +1,25 @@ + +$FreeBSD$ + +--- codecs/gsm/Makefile.orig Sun Apr 27 21:13:11 2003 ++++ codecs/gsm/Makefile Fri Oct 17 11:59:00 2003 +@@ -54,8 +54,8 @@ + # CC = /usr/lang/acc + # CCFLAGS = -c -O + +-CC = gcc -ansi -pedantic $(OPTIMIZE) -march=$(PROC) -fschedule-insns2 -fomit-frame-pointer +-CCFLAGS += -c -DNeedFunctionPrototypes=1 -finline-functions -funroll-loops -fPIC ++CC ?= gcc ++CCFLAGS += -c -DNeedFunctionPrototypes=1 -finline-functions -funroll-loops -fPIC -ansi -pedantic $(OPTIMIZE) -fschedule-insns2 -fomit-frame-pointer + + LD = $(CC) + +@@ -140,7 +140,7 @@ + DEBUG = -DNDEBUG + ######### Remove -DNDEBUG to enable assertions. + +-CFLAGS = $(PG) $(CCFLAGS) $(SASR) $(DEBUG) $(MULHACK) $(FAST) \ ++CFLAGS += $(PG) $(CCFLAGS) $(SASR) $(DEBUG) $(MULHACK) $(FAST) \ + $(LTP_CUT) $(WAV49) $(K6OPT) $(CCINC) -I$(INC) + ######### It's $(CC) $(CFLAGS) + diff --git a/net/asterisk10/files/patch-codecs::ilbc::Makefile b/net/asterisk10/files/patch-codecs::ilbc::Makefile new file mode 100644 index 000000000000..1eb6bc1887f6 --- /dev/null +++ b/net/asterisk10/files/patch-codecs::ilbc::Makefile @@ -0,0 +1,11 @@ + +$FreeBSD$ + +--- codecs/ilbc/Makefile 2003/10/17 09:04:00 1.1 ++++ codecs/ilbc/Makefile 2003/10/17 09:04:09 +@@ -1,4 +1,4 @@ +-CFLAGS+= -fPIC -O3 ++CFLAGS+= -fPIC + LIB=libilbc.a + + OBJS= anaFilter.o iCBSearch.o packing.o \ diff --git a/net/asterisk10/files/patch-codecs::lpc10::Makefile b/net/asterisk10/files/patch-codecs::lpc10::Makefile new file mode 100644 index 000000000000..43138eb093d9 --- /dev/null +++ b/net/asterisk10/files/patch-codecs::lpc10::Makefile @@ -0,0 +1,29 @@ + +$FreeBSD$ + +--- codecs/lpc10/Makefile.orig Sun Apr 27 21:13:11 2003 ++++ codecs/lpc10/Makefile Fri Oct 17 12:07:20 2003 +@@ -3,7 +3,7 @@ + # + + # default C compiler +-CC= gcc ++CC?= gcc + + # + # These definitions for CFLAGS and LIB_TARGET_DIR are used when one +@@ -22,12 +22,12 @@ + # + + WARNINGS = -Wall -Wno-comment -Wno-error +-CFLAGS = $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS) -fPIC ++CFLAGS += $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS) -fPIC + #CFLAGS+= $(shell if uname -m | grep -q 86; then echo "-mpentium" ; fi) + + #fix for PPC processors + ifneq ($(PROC),ppc) +- CFLAGS+= -march=$(PROC) ++ CFLAGS+= + endif + + LIB = $(LIB_TARGET_DIR)/liblpc10.a diff --git a/net/asterisk10/files/patch-codecs::lpc10::lpcini.c b/net/asterisk10/files/patch-codecs::lpc10::lpcini.c new file mode 100644 index 000000000000..f30f7e4b2b6c --- /dev/null +++ b/net/asterisk10/files/patch-codecs::lpc10::lpcini.c @@ -0,0 +1,17 @@ + +$FreeBSD$ + +--- codecs/lpc10/lpcini.c.orig Wed Feb 12 15:59:15 2003 ++++ codecs/lpc10/lpcini.c Fri Oct 17 12:13:04 2003 +@@ -29,9 +29,9 @@ + -lf2c -lm (in that order) + */ + +-#include "f2c.h" ++#include <stdlib.h> + +-#include <malloc.h> ++#include "f2c.h" + + /* Common Block Declarations */ + diff --git a/net/asterisk10/files/patch-codecs::mp3::Makefile b/net/asterisk10/files/patch-codecs::mp3::Makefile new file mode 100644 index 000000000000..3cd714f7ce62 --- /dev/null +++ b/net/asterisk10/files/patch-codecs::mp3::Makefile @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- codecs/mp3/Makefile 2003/10/17 09:05:05 1.1 ++++ codecs/mp3/Makefile 2003/10/17 09:05:18 +@@ -1,7 +1,7 @@ + # + # LMC section + +-CFLAGS+= -I../include -Iinclude -O6 -funroll-loops -finline-functions -Wall -Wno-missing-prototypes -Wno-missing-declarations -g -fPIC ++CFLAGS+= -I../include -Iinclude -funroll-loops -finline-functions -Wall -Wno-missing-prototypes -Wno-missing-declarations -fPIC + RANLIB=ranlib + + # the XING decoder objs and dependencies: diff --git a/net/asterisk10/files/patch-codecs::mp3::include::L3.h b/net/asterisk10/files/patch-codecs::mp3::include::L3.h new file mode 100644 index 000000000000..50d7345c39a4 --- /dev/null +++ b/net/asterisk10/files/patch-codecs::mp3::include::L3.h @@ -0,0 +1,20 @@ + +$FreeBSD$ + +--- codecs/mp3/include/L3.h.orig Wed Feb 12 15:59:14 2003 ++++ codecs/mp3/include/L3.h Fri Oct 17 11:27:30 2003 +@@ -49,6 +49,14 @@ + #define LITTLE_ENDIAN 0 + #endif + ++#if BYTE_ORDER == LITTLE_ENDIAN ++#define LITTLE_ENDIAN 1 ++#endif ++ ++#if BYTE_ORDER == BIG_ENDIAN ++#define LITTLE_ENDIAN 0 ++#endif ++ + #ifndef LITTLE_ENDIAN + #error Layer III LITTLE_ENDIAN must be defined 0 or 1 + #endif diff --git a/net/asterisk10/files/patch-db.c b/net/asterisk10/files/patch-db.c new file mode 100644 index 000000000000..ebe8fedec060 --- /dev/null +++ b/net/asterisk10/files/patch-db.c @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- db.c.orig Wed Aug 13 18:25:16 2003 ++++ db.c Fri Oct 17 11:27:30 2003 +@@ -32,7 +32,7 @@ + #include <asterisk/options.h> + #include <asterisk/astdb.h> + #include <asterisk/cli.h> +-#include "db1-ast/include/db.h" ++#include <db.h> + #include "asterisk.h" + #include "astconf.h" + diff --git a/net/asterisk10/files/patch-editline::configure b/net/asterisk10/files/patch-editline::configure new file mode 100644 index 000000000000..040ab0422c92 --- /dev/null +++ b/net/asterisk10/files/patch-editline::configure @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- editline/configure 2003/10/17 09:02:33 1.1 ++++ editline/configure 2003/10/17 09:03:18 +@@ -1906,7 +1906,7 @@ + CPPFLAGS="$CPPFLAGS -DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG" + CPPFLAGS="$CPPFLAGS -DDEBUG_REFRESH -DDEBUG_PASTE" + else +- CFLAGS="$CFLAGS -O" ++ CFLAGS="$CFLAGS" + fi + + diff --git a/net/asterisk10/files/patch-enum.c b/net/asterisk10/files/patch-enum.c new file mode 100644 index 000000000000..fd5c7f9926af --- /dev/null +++ b/net/asterisk10/files/patch-enum.c @@ -0,0 +1,40 @@ + +$FreeBSD$ + +--- enum.c.orig Mon Sep 1 18:36:52 2003 ++++ enum.c Fri Oct 17 11:27:30 2003 +@@ -380,9 +380,14 @@ + struct enum_search *s = NULL; + int version = -1; + struct __res_state enumstate; +- res_ninit(&enumstate); +- if (chan && ast_autoservice_start(chan) < 0) ++ static ast_mutex_t reslock = AST_MUTEX_INITIALIZER; ++ ++ ast_mutex_lock(&reslock); ++ res_init(); ++ if (chan && ast_autoservice_start(chan) < 0) { ++ ast_mutex_unlock(&reslock); + return -1; ++ } + + strncat(naptrinput, number, sizeof(naptrinput) - 2); + +@@ -411,7 +416,7 @@ + ast_mutex_unlock(&enumlock); + if (!s) + break; +- res = res_nsearch(&enumstate, tmp, C_IN, T_NAPTR, answer, sizeof(answer)); ++ res = res_search(tmp, C_IN, T_NAPTR, answer, sizeof(answer)); + if (res > 0) + break; + } +@@ -429,7 +434,7 @@ + } + if (chan) + ret |= ast_autoservice_stop(chan); +- res_nclose(&enumstate); ++ ast_mutex_unlock(&reslock); + return ret; + } + diff --git a/net/asterisk10/files/patch-formats::Makefile b/net/asterisk10/files/patch-formats::Makefile new file mode 100644 index 000000000000..2b59d3522211 --- /dev/null +++ b/net/asterisk10/files/patch-formats::Makefile @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- formats/Makefile 2003/10/17 09:41:29 1.1 ++++ formats/Makefile 2003/10/17 09:41:43 +@@ -40,7 +40,7 @@ + $(CC) -shared -Xlinker -x -o $@ $< -lm + + install: all +- for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done ++ for x in $(FORMAT_LIBS); do $(BSD_INSTALL_PROGRAM) $$x $(MODULES_DIR) ; done + + depend: .depend + diff --git a/net/asterisk10/files/patch-pbx::Makefile b/net/asterisk10/files/patch-pbx::Makefile new file mode 100644 index 000000000000..2725838254dc --- /dev/null +++ b/net/asterisk10/files/patch-pbx::Makefile @@ -0,0 +1,23 @@ + +$FreeBSD$ + +--- pbx/Makefile.orig Tue Aug 19 19:42:30 2003 ++++ pbx/Makefile Fri Oct 17 14:21:00 2003 +@@ -16,7 +16,7 @@ + PBX_LIBS=pbx_config.so pbx_wilcalu.so pbx_spool.so # pbx_gtkconsole.so pbx_kdeconsole.so + + # Add GTK console if appropriate +-PBX_LIBS+=$(shell gtk-config --cflags >/dev/null 2>/dev/null && echo "pbx_gtkconsole.so") ++#PBX_LIBS+=$(shell gtk-config --cflags >/dev/null 2>/dev/null && echo "pbx_gtkconsole.so") + # Add KDE Console if appropriate + #PBX_LIBS+=$(shell [ "$$QTDIR" != "" ] && echo "pbx_kdeconsole.so") + +@@ -62,7 +62,7 @@ + endif + + install: all +- for x in $(PBX_LIBS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done ++ for x in $(PBX_LIBS); do $(BSD_INSTALL_PROGRAM) $$x $(MODULES_DIR) ; done + + depend: .depend + diff --git a/net/asterisk10/files/patch-res::Makefile b/net/asterisk10/files/patch-res::Makefile new file mode 100644 index 000000000000..33e2d72cc932 --- /dev/null +++ b/net/asterisk10/files/patch-res::Makefile @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- res/Makefile 2003/10/17 09:38:22 1.1 ++++ res/Makefile 2003/10/17 09:38:47 +@@ -25,7 +25,7 @@ + all: depend $(MODS) + + install: all +- for x in $(MODS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done ++ for x in $(MODS); do $(BSD_INSTALL_PROGRAM) $$x $(MODULES_DIR) ; done + + res_crypto.so: res_crypto.o + $(CC) -shared -Xlinker -x -o $@ $< $(CRYPTO_LIBS) diff --git a/net/asterisk10/files/patch-srv.c b/net/asterisk10/files/patch-srv.c new file mode 100644 index 000000000000..3cbb534f1b22 --- /dev/null +++ b/net/asterisk10/files/patch-srv.c @@ -0,0 +1,34 @@ + +$FreeBSD$ + +--- srv.c.orig Thu Aug 14 02:56:16 2003 ++++ srv.c Fri Oct 17 11:27:30 2003 +@@ -246,13 +246,17 @@ + int ret = -1; + struct __res_state srvstate; + char answer[MAX_SIZE]; ++ static ast_mutex_t reslock = AST_MUTEX_INITIALIZER; + + if (*port) + *port = 0; +- res_ninit(&srvstate); +- if (chan && ast_autoservice_start(chan) < 0) ++ ast_mutex_lock(&reslock); ++ res_init(); ++ if (chan && ast_autoservice_start(chan) < 0) { ++ ast_mutex_unlock(&reslock); + return -1; +- res = res_nsearch(&srvstate, service, C_IN, T_SRV, answer, sizeof(answer)); ++ } ++ res = res_search(service, C_IN, T_SRV, answer, sizeof(answer)); + if (res > 0) { + if ((res = parse_answer(host, hostlen, port, answer, res))) { + ast_log(LOG_WARNING, "Parse error returned %d\n", res); +@@ -267,6 +271,6 @@ + } + if (chan) + ret |= ast_autoservice_stop(chan); +- res_nclose(&srvstate); ++ ast_mutex_unlock(&reslock); + return ret; + } diff --git a/net/asterisk10/pkg-descr b/net/asterisk10/pkg-descr new file mode 100644 index 000000000000..28b7a1deb011 --- /dev/null +++ b/net/asterisk10/pkg-descr @@ -0,0 +1,5 @@ +Asterisk is an Open Source PBX and telephony toolkit. It is, in a +sense, middleware between Internet and telephony channels on the bottom, +and Internet and telephony applications at the top. + +WWW: http://www.asteriskpbx.com diff --git a/net/asterisk10/pkg-plist b/net/asterisk10/pkg-plist new file mode 100644 index 000000000000..3cb2deb678e0 --- /dev/null +++ b/net/asterisk10/pkg-plist @@ -0,0 +1,434 @@ +@unexec if cmp -s %D/etc/asterisk/adsi.conf %D/etc/asterisk/adsi.conf-dist; then rm -f %D/etc/asterisk/adsi.conf; fi +etc/asterisk/adsi.conf-dist +@exec [ -f %B/adsi.conf ] || cp %B/%f %B/adsi.conf +@unexec if cmp -s %D/etc/asterisk/adtranvofr.conf %D/etc/asterisk/adtranvofr.conf-dist; then rm -f %D/etc/asterisk/adtranvofr.conf; fi +etc/asterisk/adtranvofr.conf-dist +@exec [ -f %B/adtranvofr.conf ] || cp %B/%f %B/adtranvofr.conf +@unexec if cmp -s %D/etc/asterisk/agents.conf %D/etc/asterisk/agents.conf-dist; then rm -f %D/etc/asterisk/agents.conf; fi +etc/asterisk/agents.conf-dist +@exec [ -f %B/agents.conf ] || cp %B/%f %B/agents.conf +@unexec if cmp -s %D/etc/asterisk/alsa.conf %D/etc/asterisk/alsa.conf-dist; then rm -f %D/etc/asterisk/alsa.conf; fi +etc/asterisk/alsa.conf-dist +@exec [ -f %B/alsa.conf ] || cp %B/%f %B/alsa.conf +@unexec if cmp -s %D/etc/asterisk/asterisk.adsi %D/etc/asterisk/asterisk.adsi-dist; then rm -f %D/etc/asterisk/asterisk.adsi; fi +etc/asterisk/asterisk.adsi-dist +@exec [ -f %B/asterisk.adsi ] || cp %B/%f %B/asterisk.adsi +@unexec if cmp -s %D/etc/asterisk/asterisk.conf %D/etc/asterisk/asterisk.conf-dist; then rm -f %D/etc/asterisk/asterisk.conf; fi +etc/asterisk/asterisk.conf-dist +@exec [ -f %B/asterisk.conf ] || cp %B/%f %B/asterisk.conf +@unexec if cmp -s %D/etc/asterisk/cdr_mysql.conf %D/etc/asterisk/cdr_mysql.conf-dist; then rm -f %D/etc/asterisk/cdr_mysql.conf; fi +etc/asterisk/cdr_mysql.conf-dist +@exec [ -f %B/cdr_mysql.conf ] || cp %B/%f %B/cdr_mysql.conf +@unexec if cmp -s %D/etc/asterisk/enum.conf %D/etc/asterisk/enum.conf-dist; then rm -f %D/etc/asterisk/enum.conf; fi +etc/asterisk/enum.conf-dist +@exec [ -f %B/enum.conf ] || cp %B/%f %B/enum.conf +@unexec if cmp -s %D/etc/asterisk/extensions.conf %D/etc/asterisk/extensions.conf-dist; then rm -f %D/etc/asterisk/extensions.conf; fi +etc/asterisk/extensions.conf-dist +@exec [ -f %B/extensions.conf ] || cp %B/%f %B/extensions.conf +@unexec if cmp -s %D/etc/asterisk/festival.conf %D/etc/asterisk/festival.conf-dist; then rm -f %D/etc/asterisk/festival.conf; fi +etc/asterisk/festival.conf-dist +@exec [ -f %B/festival.conf ] || cp %B/%f %B/festival.conf +@unexec if cmp -s %D/etc/asterisk/iax.conf %D/etc/asterisk/iax.conf-dist; then rm -f %D/etc/asterisk/iax.conf; fi +etc/asterisk/iax.conf-dist +@exec [ -f %B/iax.conf ] || cp %B/%f %B/iax.conf +@unexec if cmp -s %D/etc/asterisk/indications.conf %D/etc/asterisk/indications.conf-dist; then rm -f %D/etc/asterisk/indications.conf; fi +etc/asterisk/indications.conf-dist +@exec [ -f %B/indications.conf ] || cp %B/%f %B/indications.conf +@unexec if cmp -s %D/etc/asterisk/logger.conf %D/etc/asterisk/logger.conf-dist; then rm -f %D/etc/asterisk/logger.conf; fi +etc/asterisk/logger.conf-dist +@exec [ -f %B/logger.conf ] || cp %B/%f %B/logger.conf +@unexec if cmp -s %D/etc/asterisk/manager.conf %D/etc/asterisk/manager.conf-dist; then rm -f %D/etc/asterisk/manager.conf; fi +etc/asterisk/manager.conf-dist +@exec [ -f %B/manager.conf ] || cp %B/%f %B/manager.conf +@unexec if cmp -s %D/etc/asterisk/meetme.conf %D/etc/asterisk/meetme.conf-dist; then rm -f %D/etc/asterisk/meetme.conf; fi +etc/asterisk/meetme.conf-dist +@exec [ -f %B/meetme.conf ] || cp %B/%f %B/meetme.conf +@unexec if cmp -s %D/etc/asterisk/mgcp.conf %D/etc/asterisk/mgcp.conf-dist; then rm -f %D/etc/asterisk/mgcp.conf; fi +etc/asterisk/mgcp.conf-dist +@exec [ -f %B/mgcp.conf ] || cp %B/%f %B/mgcp.conf +@unexec if cmp -s %D/etc/asterisk/modem.conf %D/etc/asterisk/modem.conf-dist; then rm -f %D/etc/asterisk/modem.conf; fi +etc/asterisk/modem.conf-dist +@exec [ -f %B/modem.conf ] || cp %B/%f %B/modem.conf +@unexec if cmp -s %D/etc/asterisk/modules.conf %D/etc/asterisk/modules.conf-dist; then rm -f %D/etc/asterisk/modules.conf; fi +etc/asterisk/modules.conf-dist +@exec [ -f %B/modules.conf ] || cp %B/%f %B/modules.conf +@unexec if cmp -s %D/etc/asterisk/musiconhold.conf %D/etc/asterisk/musiconhold.conf-dist; then rm -f %D/etc/asterisk/musiconhold.conf; fi +etc/asterisk/musiconhold.conf-dist +@exec [ -f %B/musiconhold.conf ] || cp %B/%f %B/musiconhold.conf +@unexec if cmp -s %D/etc/asterisk/oss.conf %D/etc/asterisk/oss.conf-dist; then rm -f %D/etc/asterisk/oss.conf; fi +etc/asterisk/oss.conf-dist +@exec [ -f %B/oss.conf ] || cp %B/%f %B/oss.conf +@unexec if cmp -s %D/etc/asterisk/parking.conf %D/etc/asterisk/parking.conf-dist; then rm -f %D/etc/asterisk/parking.conf; fi +etc/asterisk/parking.conf-dist +@exec [ -f %B/parking.conf ] || cp %B/%f %B/parking.conf +@unexec if cmp -s %D/etc/asterisk/phone.conf %D/etc/asterisk/phone.conf-dist; then rm -f %D/etc/asterisk/phone.conf; fi +etc/asterisk/phone.conf-dist +@exec [ -f %B/phone.conf ] || cp %B/%f %B/phone.conf +@unexec if cmp -s %D/etc/asterisk/privacy.conf %D/etc/asterisk/privacy.conf-dist; then rm -f %D/etc/asterisk/privacy.conf; fi +etc/asterisk/privacy.conf-dist +@exec [ -f %B/privacy.conf ] || cp %B/%f %B/privacy.conf +@unexec if cmp -s %D/etc/asterisk/queues.conf %D/etc/asterisk/queues.conf-dist; then rm -f %D/etc/asterisk/queues.conf; fi +etc/asterisk/queues.conf-dist +@exec [ -f %B/queues.conf ] || cp %B/%f %B/queues.conf +@unexec if cmp -s %D/etc/asterisk/rpt.conf %D/etc/asterisk/rpt.conf-dist; then rm -f %D/etc/asterisk/rpt.conf; fi +etc/asterisk/rpt.conf-dist +@exec [ -f %B/rpt.conf ] || cp %B/%f %B/rpt.conf +@unexec if cmp -s %D/etc/asterisk/rtp.conf %D/etc/asterisk/rtp.conf-dist; then rm -f %D/etc/asterisk/rtp.conf; fi +etc/asterisk/rtp.conf-dist +@exec [ -f %B/rtp.conf ] || cp %B/%f %B/rtp.conf +@unexec if cmp -s %D/etc/asterisk/sip.conf %D/etc/asterisk/sip.conf-dist; then rm -f %D/etc/asterisk/sip.conf; fi +etc/asterisk/sip.conf-dist +@exec [ -f %B/sip.conf ] || cp %B/%f %B/sip.conf +@unexec if cmp -s %D/etc/asterisk/telcordia-1.adsi %D/etc/asterisk/telcordia-1.adsi-dist; then rm -f %D/etc/asterisk/telcordia-1.adsi; fi +etc/asterisk/telcordia-1.adsi-dist +@exec [ -f %B/telcordia-1.adsi ] || cp %B/%f %B/telcordia-1.adsi +@unexec if cmp -s %D/etc/asterisk/voicemail.conf %D/etc/asterisk/voicemail.conf-dist; then rm -f %D/etc/asterisk/voicemail.conf; fi +etc/asterisk/voicemail.conf-dist +@exec [ -f %B/voicemail.conf ] || cp %B/%f %B/voicemail.conf +@unexec if cmp -s %D/etc/asterisk/vpb.conf %D/etc/asterisk/vpb.conf-dist; then rm -f %D/etc/asterisk/vpb.conf; fi +etc/asterisk/vpb.conf-dist +@exec [ -f %B/vpb.conf ] || cp %B/%f %B/vpb.conf +@unexec if cmp -s %D/etc/asterisk/zapata.conf %D/etc/asterisk/zapata.conf-dist; then rm -f %D/etc/asterisk/zapata.conf; fi +etc/asterisk/zapata.conf-dist +@exec [ -f %B/zapata.conf ] || cp %B/%f %B/zapata.conf +include/asterisk/acl.h +include/asterisk/adsi.h +include/asterisk/alaw.h +include/asterisk/app.h +include/asterisk/ast_expr.h +include/asterisk/astdb.h +include/asterisk/astmm.h +include/asterisk/callerid.h +include/asterisk/cdr.h +include/asterisk/channel.h +include/asterisk/channel_pvt.h +include/asterisk/chanvars.h +include/asterisk/cli.h +include/asterisk/config.h +include/asterisk/crypto.h +include/asterisk/dsp.h +include/asterisk/enum.h +include/asterisk/file.h +include/asterisk/frame.h +include/asterisk/fskmodem.h +include/asterisk/image.h +include/asterisk/indications.h +include/asterisk/io.h +include/asterisk/linkedlists.h +include/asterisk/lock.h +include/asterisk/logger.h +include/asterisk/manager.h +include/asterisk/md5.h +include/asterisk/module.h +include/asterisk/monitor.h +include/asterisk/musiconhold.h +include/asterisk/options.h +include/asterisk/parking.h +include/asterisk/pbx.h +include/asterisk/privacy.h +include/asterisk/rtp.h +include/asterisk/say.h +include/asterisk/sched.h +include/asterisk/srv.h +include/asterisk/tdd.h +include/asterisk/term.h +include/asterisk/translate.h +include/asterisk/ulaw.h +include/asterisk/vmodem.h +include/asterisk/zonedata.h +lib/asterisk/modules/app_adsiprog.so +lib/asterisk/modules/app_agi.so +lib/asterisk/modules/app_authenticate.so +lib/asterisk/modules/app_chanisavail.so +lib/asterisk/modules/app_datetime.so +lib/asterisk/modules/app_db.so +lib/asterisk/modules/app_dial.so +lib/asterisk/modules/app_directory.so +lib/asterisk/modules/app_disa.so +lib/asterisk/modules/app_echo.so +lib/asterisk/modules/app_enumlookup.so +lib/asterisk/modules/app_festival.so +lib/asterisk/modules/app_getcpeid.so +lib/asterisk/modules/app_image.so +lib/asterisk/modules/app_intercom.so +lib/asterisk/modules/app_lookupblacklist.so +lib/asterisk/modules/app_lookupcidname.so +lib/asterisk/modules/app_macro.so +lib/asterisk/modules/app_milliwatt.so +lib/asterisk/modules/app_mp3.so +lib/asterisk/modules/app_parkandannounce.so +lib/asterisk/modules/app_playback.so +lib/asterisk/modules/app_privacy.so +lib/asterisk/modules/app_qcall.so +lib/asterisk/modules/app_queue.so +lib/asterisk/modules/app_record.so +lib/asterisk/modules/app_senddtmf.so +lib/asterisk/modules/app_setcallerid.so +lib/asterisk/modules/app_setcidname.so +lib/asterisk/modules/app_setcidnum.so +lib/asterisk/modules/app_softhangup.so +lib/asterisk/modules/app_striplsd.so +lib/asterisk/modules/app_substring.so +lib/asterisk/modules/app_system.so +lib/asterisk/modules/app_transfer.so +lib/asterisk/modules/app_url.so +lib/asterisk/modules/app_voicemail.so +lib/asterisk/modules/app_voicemail2.so +lib/asterisk/modules/app_waitforring.so +lib/asterisk/modules/app_zapateller.so +lib/asterisk/modules/cdr_csv.so +lib/asterisk/modules/cdr_mysql.so +lib/asterisk/modules/chan_agent.so +lib/asterisk/modules/chan_iax.so +lib/asterisk/modules/chan_iax2.so +lib/asterisk/modules/chan_local.so +lib/asterisk/modules/chan_mgcp.so +lib/asterisk/modules/chan_modem.so +lib/asterisk/modules/chan_modem_aopen.so +lib/asterisk/modules/chan_modem_bestdata.so +lib/asterisk/modules/chan_modem_i4l.so +lib/asterisk/modules/chan_oss.so +lib/asterisk/modules/chan_sip.so +lib/asterisk/modules/codec_a_mu.so +lib/asterisk/modules/codec_adpcm.so +lib/asterisk/modules/codec_alaw.so +lib/asterisk/modules/codec_gsm.so +lib/asterisk/modules/codec_ilbc.so +lib/asterisk/modules/codec_lpc10.so +lib/asterisk/modules/codec_mp3_d.so +lib/asterisk/modules/codec_ulaw.so +lib/asterisk/modules/format_g729.so +lib/asterisk/modules/format_gsm.so +lib/asterisk/modules/format_h263.so +lib/asterisk/modules/format_jpeg.so +lib/asterisk/modules/format_mp3.so +lib/asterisk/modules/format_pcm.so +lib/asterisk/modules/format_pcm_alaw.so +lib/asterisk/modules/format_vox.so +lib/asterisk/modules/format_wav.so +lib/asterisk/modules/format_wav_gsm.so +lib/asterisk/modules/pbx_config.so +lib/asterisk/modules/pbx_spool.so +lib/asterisk/modules/pbx_wilcalu.so +lib/asterisk/modules/res_adsi.so +lib/asterisk/modules/res_crypto.so +lib/asterisk/modules/res_indications.so +lib/asterisk/modules/res_monitor.so +lib/asterisk/modules/res_musiconhold.so +lib/asterisk/modules/res_parking.so +sbin/asterisk +sbin/astgenkey +sbin/safe_asterisk +share/asterisk/agi-bin/agi-test.agi +share/asterisk/agi-bin/eagi-sphinx-test +share/asterisk/agi-bin/eagi-test +share/asterisk/images/asterisk-intro.jpg +share/asterisk/keys/iaxtel.pub +share/asterisk/mohmp3/sample-hold.mp3 +share/asterisk/sounds/agent-alreadyon.gsm +share/asterisk/sounds/agent-incorrect.gsm +share/asterisk/sounds/agent-loggedoff.gsm +share/asterisk/sounds/agent-loginok.gsm +share/asterisk/sounds/agent-newlocation.gsm +share/asterisk/sounds/agent-pass.gsm +share/asterisk/sounds/agent-user.gsm +share/asterisk/sounds/auth-incorrect.gsm +share/asterisk/sounds/auth-thankyou.gsm +share/asterisk/sounds/beep.gsm +share/asterisk/sounds/conf-getchannel.gsm +share/asterisk/sounds/conf-getconfno.gsm +share/asterisk/sounds/conf-invalid.gsm +share/asterisk/sounds/conf-onlyperson.gsm +share/asterisk/sounds/demo-abouttotry.gsm +share/asterisk/sounds/demo-congrats.gsm +share/asterisk/sounds/demo-echodone.gsm +share/asterisk/sounds/demo-echotest.gsm +share/asterisk/sounds/demo-enterkeywords.gsm +share/asterisk/sounds/demo-instruct.gsm +share/asterisk/sounds/demo-moreinfo.gsm +share/asterisk/sounds/demo-nogo.gsm +share/asterisk/sounds/demo-nomatch.gsm +share/asterisk/sounds/demo-thanks.gsm +share/asterisk/sounds/digits/0.gsm +share/asterisk/sounds/digits/1.gsm +share/asterisk/sounds/digits/10.gsm +share/asterisk/sounds/digits/11.gsm +share/asterisk/sounds/digits/12.gsm +share/asterisk/sounds/digits/13.gsm +share/asterisk/sounds/digits/14.gsm +share/asterisk/sounds/digits/15.gsm +share/asterisk/sounds/digits/16.gsm +share/asterisk/sounds/digits/17.gsm +share/asterisk/sounds/digits/18.gsm +share/asterisk/sounds/digits/19.gsm +share/asterisk/sounds/digits/2.gsm +share/asterisk/sounds/digits/20.gsm +share/asterisk/sounds/digits/3.gsm +share/asterisk/sounds/digits/30.gsm +share/asterisk/sounds/digits/4.gsm +share/asterisk/sounds/digits/40.gsm +share/asterisk/sounds/digits/5.gsm +share/asterisk/sounds/digits/50.gsm +share/asterisk/sounds/digits/6.gsm +share/asterisk/sounds/digits/60.gsm +share/asterisk/sounds/digits/7.gsm +share/asterisk/sounds/digits/70.gsm +share/asterisk/sounds/digits/8.gsm +share/asterisk/sounds/digits/80.gsm +share/asterisk/sounds/digits/9.gsm +share/asterisk/sounds/digits/90.gsm +share/asterisk/sounds/digits/a-m.gsm +share/asterisk/sounds/digits/at.gsm +share/asterisk/sounds/digits/day-0.gsm +share/asterisk/sounds/digits/day-1.gsm +share/asterisk/sounds/digits/day-2.gsm +share/asterisk/sounds/digits/day-3.gsm +share/asterisk/sounds/digits/day-4.gsm +share/asterisk/sounds/digits/day-5.gsm +share/asterisk/sounds/digits/day-6.gsm +share/asterisk/sounds/digits/dollars.gsm +share/asterisk/sounds/digits/h-1.gsm +share/asterisk/sounds/digits/h-10.gsm +share/asterisk/sounds/digits/h-11.gsm +share/asterisk/sounds/digits/h-12.gsm +share/asterisk/sounds/digits/h-13.gsm +share/asterisk/sounds/digits/h-14.gsm +share/asterisk/sounds/digits/h-15.gsm +share/asterisk/sounds/digits/h-16.gsm +share/asterisk/sounds/digits/h-17.gsm +share/asterisk/sounds/digits/h-18.gsm +share/asterisk/sounds/digits/h-19.gsm +share/asterisk/sounds/digits/h-2.gsm +share/asterisk/sounds/digits/h-20.gsm +share/asterisk/sounds/digits/h-3.gsm +share/asterisk/sounds/digits/h-30.gsm +share/asterisk/sounds/digits/h-4.gsm +share/asterisk/sounds/digits/h-5.gsm +share/asterisk/sounds/digits/h-6.gsm +share/asterisk/sounds/digits/h-7.gsm +share/asterisk/sounds/digits/h-8.gsm +share/asterisk/sounds/digits/h-9.gsm +share/asterisk/sounds/digits/hundred.gsm +share/asterisk/sounds/digits/million.gsm +share/asterisk/sounds/digits/mon-0.gsm +share/asterisk/sounds/digits/mon-1.gsm +share/asterisk/sounds/digits/mon-10.gsm +share/asterisk/sounds/digits/mon-11.gsm +share/asterisk/sounds/digits/mon-2.gsm +share/asterisk/sounds/digits/mon-3.gsm +share/asterisk/sounds/digits/mon-4.gsm +share/asterisk/sounds/digits/mon-5.gsm +share/asterisk/sounds/digits/mon-6.gsm +share/asterisk/sounds/digits/mon-7.gsm +share/asterisk/sounds/digits/mon-8.gsm +share/asterisk/sounds/digits/mon-9.gsm +share/asterisk/sounds/digits/oclock.gsm +share/asterisk/sounds/digits/oh.gsm +share/asterisk/sounds/digits/p-m.gsm +share/asterisk/sounds/digits/pound.gsm +share/asterisk/sounds/digits/star.gsm +share/asterisk/sounds/digits/thousand.gsm +share/asterisk/sounds/digits/today.gsm +share/asterisk/sounds/digits/tomorrow.gsm +share/asterisk/sounds/digits/yesterday.gsm +share/asterisk/sounds/dir-instr.gsm +share/asterisk/sounds/dir-intro.gsm +share/asterisk/sounds/dir-nomatch.gsm +share/asterisk/sounds/dir-nomore.gsm +share/asterisk/sounds/invalid.gsm +share/asterisk/sounds/pbx-invalid.gsm +share/asterisk/sounds/pbx-invalidpark.gsm +share/asterisk/sounds/pbx-transfer.gsm +share/asterisk/sounds/privacy-incorrect.gsm +share/asterisk/sounds/privacy-prompt.gsm +share/asterisk/sounds/privacy-thankyou.gsm +share/asterisk/sounds/privacy-unident.gsm +share/asterisk/sounds/ss-noservice.gsm +share/asterisk/sounds/transfer.gsm +share/asterisk/sounds/tt-allbusy.gsm +share/asterisk/sounds/tt-monkeys.gsm +share/asterisk/sounds/tt-monkeysintro.gsm +share/asterisk/sounds/tt-somethingwrong.gsm +share/asterisk/sounds/tt-weasels.gsm +share/asterisk/sounds/vm +share/asterisk/sounds/vm-Family.gsm +share/asterisk/sounds/vm-Friends.gsm +share/asterisk/sounds/vm-INBOX.gsm +share/asterisk/sounds/vm-Old.gsm +share/asterisk/sounds/vm-Work.gsm +share/asterisk/sounds/vm-and.gsm +share/asterisk/sounds/vm-changeto.gsm +share/asterisk/sounds/vm-delete.gsm +share/asterisk/sounds/vm-deleted.gsm +share/asterisk/sounds/vm-extension.gsm +share/asterisk/sounds/vm-first.gsm +share/asterisk/sounds/vm-for.gsm +share/asterisk/sounds/vm-goodbye.gsm +share/asterisk/sounds/vm-helpexit.gsm +share/asterisk/sounds/vm-incorrect.gsm +share/asterisk/sounds/vm-instructions.gsm +share/asterisk/sounds/vm-intro.gsm +share/asterisk/sounds/vm-isonphone.gsm +share/asterisk/sounds/vm-isunavail.gsm +share/asterisk/sounds/vm-last.gsm +share/asterisk/sounds/vm-login.gsm +share/asterisk/sounds/vm-message.gsm +share/asterisk/sounds/vm-messages.gsm +share/asterisk/sounds/vm-mismatch.gsm +share/asterisk/sounds/vm-msginstruct.gsm +share/asterisk/sounds/vm-msgsaved.gsm +share/asterisk/sounds/vm-newpassword.gsm +share/asterisk/sounds/vm-next.gsm +share/asterisk/sounds/vm-no.gsm +share/asterisk/sounds/vm-nobodyavail.gsm +share/asterisk/sounds/vm-nomore.gsm +share/asterisk/sounds/vm-onefor.gsm +share/asterisk/sounds/vm-options.gsm +share/asterisk/sounds/vm-opts.gsm +share/asterisk/sounds/vm-passchanged.gsm +share/asterisk/sounds/vm-password.gsm +share/asterisk/sounds/vm-press.gsm +share/asterisk/sounds/vm-prev.gsm +share/asterisk/sounds/vm-rec-busy.gsm +share/asterisk/sounds/vm-rec-name.gsm +share/asterisk/sounds/vm-rec-unv.gsm +share/asterisk/sounds/vm-received.gsm +share/asterisk/sounds/vm-reenterpassword.gsm +share/asterisk/sounds/vm-repeat.gsm +share/asterisk/sounds/vm-saved.gsm +share/asterisk/sounds/vm-savedto.gsm +share/asterisk/sounds/vm-savefolder.gsm +share/asterisk/sounds/vm-savemessage.gsm +share/asterisk/sounds/vm-sorry.gsm +share/asterisk/sounds/vm-theperson.gsm +share/asterisk/sounds/vm-tocancel.gsm +share/asterisk/sounds/vm-toforward.gsm +share/asterisk/sounds/vm-undelete.gsm +share/asterisk/sounds/vm-undeleted.gsm +share/asterisk/sounds/vm-whichbox.gsm +share/asterisk/sounds/vm-youhave.gsm +share/asterisk/sounds/voicemail +@dirrm share/asterisk/sounds/digits +@dirrm share/asterisk/sounds +@dirrm share/asterisk/mohmp3 +@dirrm share/asterisk/keys +@dirrm share/asterisk/images +@dirrm share/asterisk/agi-bin +@dirrm share/asterisk +@dirrm lib/asterisk/modules +@dirrm lib/asterisk +@dirrm include/asterisk +@dirrm etc/asterisk +@cwd /var +spool/asterisk/vm +spool/asterisk/voicemail/default/1234/busy.gsm +spool/asterisk/voicemail/default/1234/unavail.gsm +@exec mkdir -p %D/log/asterisk/cdr-csv +@exec mkdir -p %D/spool/asterisk/voicemail/default/1234/INBOX +@dirrm spool/asterisk/voicemail/default/1234/INBOX +@dirrm spool/asterisk/voicemail/default/1234 +@dirrm spool/asterisk/voicemail/default +@dirrm spool/asterisk/voicemail +@dirrm spool/asterisk +@dirrm log/asterisk/cdr-csv +@dirrm log/asterisk |