diff options
Diffstat (limited to 'net-misc/asterisk-addons/files')
4 files changed, 163 insertions, 0 deletions
diff --git a/net-misc/asterisk-addons/files/asterisk-addons-1.2.0-gentoo-base.diff b/net-misc/asterisk-addons/files/asterisk-addons-1.2.0-gentoo-base.diff new file mode 100644 index 000000000000..25d432c30a7a --- /dev/null +++ b/net-misc/asterisk-addons/files/asterisk-addons-1.2.0-gentoo-base.diff @@ -0,0 +1,40 @@ +--- asterisk-addons/Makefile.orig 2005-07-30 21:04:44.000000000 +0200 ++++ asterisk-addons/Makefile 2005-07-30 21:06:06.000000000 +0200 +@@ -16,7 +16,6 @@ + MODS=format_mp3/format_mp3.so app_saycountpl.so + + CFLAGS+=-fPIC +-CFLAGS+=-I../asterisk + CFLAGS+=-D_GNU_SOURCE + + INSTALL=install +@@ -27,17 +26,11 @@ + # + # 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_addon_mysql.so app_addon_sql_mysql.so res_config_mysql.so"; fi) +-CFLAGS+=$(shell if [ -d /usr/local/mysql/include ]; then echo "-I/usr/local/mysql/include"; fi) ++MODS+=$(shell if [ -d /usr/include/mysql ]; then echo "cdr_addon_mysql.so app_addon_sql_mysql.so res_config_mysql.so"; 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/lib64/mysql ]; then echo "-L/usr/lib64/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) ++MLFLAGS+=$(shell if [ -d /usr/lib/mysql ]; then echo "-L/usr/lib/mysql"; fi) + + OSARCH=$(shell uname -s) + +@@ -55,7 +48,8 @@ + format_mp3/format_mp3.so: + $(MAKE) -C format_mp3 all + +-install: all ++install: ++ $(INSTALL) -m 755 -d $(DESTDIR)$(MODULES_DIR) + for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done + + clean: diff --git a/net-misc/asterisk-addons/files/asterisk-addons-1.2.0-gentoo-ooh323c.diff b/net-misc/asterisk-addons/files/asterisk-addons-1.2.0-gentoo-ooh323c.diff new file mode 100644 index 000000000000..3faa121f2c40 --- /dev/null +++ b/net-misc/asterisk-addons/files/asterisk-addons-1.2.0-gentoo-ooh323c.diff @@ -0,0 +1,30 @@ +--- asterisk-addons-1.2.0/asterisk-ooh323c/Makefile.am.orig 2005-10-26 20:49:40.000000000 +0000 ++++ asterisk-addons-1.2.0/asterisk-ooh323c/Makefile.am 2005-12-06 20:28:44.000000000 +0000 +@@ -19,10 +19,10 @@ + $(MAKE) "CFLAGS = -g -DGNU -D_GNU_SOURCE -D_REENTRANT" all + + install: +- cp .libs/libchan_h323.so.1.0.1 /usr/lib/asterisk/modules/chan_ooh323.so ++ $(INSTALL) -D -m755 .libs/libchan_h323.so.1.0.1 $(DESTDIR)/usr/lib/asterisk/modules/chan_ooh323.so + + sample: +- cp h323.conf.sample /etc/asterisk/ooh323.conf ++ $(INSTALL) -D -m644 h323.conf.sample $(DESTDIR)/etc/asterisk/ooh323.conf + + + EXTRA_DIST = extensions.conf h323.conf README COPYING +--- asterisk-addons-1.2.0/asterisk-ooh323c/Makefile.in.orig 2005-10-26 20:49:40.000000000 +0000 ++++ asterisk-addons-1.2.0/asterisk-ooh323c/Makefile.in 2005-12-06 20:29:43.000000000 +0000 +@@ -1235,10 +1235,10 @@ + $(MAKE) "CFLAGS = -g -DGNU -D_GNU_SOURCE -D_REENTRANT" all + + install: +- cp .libs/libchan_h323.so.1.0.1 /usr/lib/asterisk/modules/chan_ooh323.so ++ $(INSTALL) -D -m755 .libs/libchan_h323.so.1.0.1 $(DESTDIR)/usr/lib/asterisk/modules/chan_ooh323.so + + sample: +- cp h323.conf.sample /etc/asterisk/ooh323.conf ++ $(INSTALL) -D -m644 h323.conf.sample $(DESTDIR)/etc/asterisk/ooh323.conf + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: diff --git a/net-misc/asterisk-addons/files/asterisk-addons-1.2.0-gentoo-res_sqlite3.diff b/net-misc/asterisk-addons/files/asterisk-addons-1.2.0-gentoo-res_sqlite3.diff new file mode 100644 index 000000000000..c8120edea3c9 --- /dev/null +++ b/net-misc/asterisk-addons/files/asterisk-addons-1.2.0-gentoo-res_sqlite3.diff @@ -0,0 +1,91 @@ +--- asterisk-addons/res_sqlite3/Makefile.orig 2005-08-04 23:27:22.000000000 +0200 ++++ asterisk-addons/res_sqlite3/Makefile 2005-08-04 23:37:38.000000000 +0200 +@@ -1,44 +1,24 @@ +-ASTDIR=/usr/src/asterisk +-ASTXS=$(ASTDIR)/contrib/scripts/astxs +-ASTSQLITE=/var/lib/asterisk/sqlite +-SQLITE2=/usr/local/bin/sqlite +-SQLITE3=/usr/local/bin/sqlite3 +-SQLITEBASE=http://www.sqlite.org/ +-SQLITEFILE=sqlite-3.2.1 ++SQLITEDIR= ++DESTDIR= + +-CFLAGS=-I$(SQLITEFILE) -I $(SQLITEFILE)/src ++ASTCFG=/usr/bin/asterisk-config ++ASTSQLITE=/var/lib/asterisk/sqlite ++ASTMODDIR=/usr/lib/asterisk/modules + +-all: .sqlite res_sqlite.so ++CFLAGS=-I$(SQLITEDIR) -I$(SQLITEDIR)/src + ++all: res_sqlite.so + + res_sqlite.so: +- ASTSRC=$(ASTDIR) $(ASTXS) "-append=CFLAGS:$(CFLAGS)" "-append=EXTOBJ:./$(SQLITEFILE)/.libs/libsqlite3.a" res_sqlite.c +- +-.sqlite: +- wget $(SQLITEBASE)/$(SQLITEFILE).tar.gz +- tar -zxvf $(SQLITEFILE).tar.gz +- cd $(SQLITEFILE) && test -f ./config.status || ./configure --enable-threadsafe +- cd $(SQLITEFILE) && make +- touch .sqlite ++ $(CC) $(shell $(ASTCFG) --cflags) $(CFLAGS) -fPIC -c -o res_sqlite.o res_sqlite.c ++ $(CC) $(shell $(ASTCFG) --solink) -o res_sqlite.so res_sqlite.o $(SQLITEDIR)/.libs/libsqlite3.a + + clean: + /bin/rm -f *.o *.so *~ + +-distclean: clean +- /bin/rm -fr .sqlite sqlite $(SQLITEFILE) $(SQLITEFILE).tar.gz +- + install: +- $(ASTXS) -autoload -install res_sqlite.so +- /bin/mkdir -p $(ASTSQLITE) +- if [ ! -f /etc/asterisk/res_sqlite.conf ] ; then /bin/cp res_sqlite.conf /etc/asterisk; fi +- +-sqlite_install: .sqlite +- cd sqlite && make install +- test -f /etc/ld.so.conf && ldconfig +- +-upgrade: $(SQLITE2) $(SQLITE3) +- @echo upgrading database files +- @upgrade.sh $(ASTSQLITE) $(SQLITE2) $(SQLITE3) +- +- +- ++ /bin/mkdir -p $(DESTDIR)$(ASTSQLITE) ++ /bin/mkdir -p $(DESTDIR)$(ASTMODDIR) ++ /bin/mkdir -p $(DESTDIR)/etc/asterisk ++ /bin/cp res_sqlite.so $(DESTDIR)$(ASTMODDIR) ++ /bin/cp res_sqlite.conf $(DESTDIR)/etc/asterisk +--- asterisk-addons-1.2.0/res_sqlite3/res_sqlite.c.orig 2005-12-06 20:36:25.000000000 +0000 ++++ asterisk-addons-1.2.0/res_sqlite3/res_sqlite.c 2005-12-06 20:36:51.000000000 +0000 +@@ -10,6 +10,13 @@ + * This program is free software, distributed under the terms of + * the GNU General Public License + */ ++#include <stdlib.h> ++#include <unistd.h> ++#include <string.h> ++#include <stdio.h> ++#include <pthread.h> ++#include <sqlite3.h> ++#include <sqliteInt.h> + + #include <asterisk/file.h> + #include <asterisk/logger.h> +@@ -20,13 +27,6 @@ + #include <asterisk/module.h> + #include <asterisk/utils.h> + #include <asterisk/config.h> +-#include <stdlib.h> +-#include <unistd.h> +-#include <string.h> +-#include <stdlib.h> +-#include <pthread.h> +-#include <sqlite3.h> +-#include <sqliteInt.h> + + /* When you change the DATE_FORMAT, be sure to change the CHAR(19) below to something else */ + #define DATE_FORMAT "%Y-%m-%d %T" diff --git a/net-misc/asterisk-addons/files/digest-asterisk-addons-1.2.0 b/net-misc/asterisk-addons/files/digest-asterisk-addons-1.2.0 new file mode 100644 index 000000000000..77217a857bd4 --- /dev/null +++ b/net-misc/asterisk-addons/files/digest-asterisk-addons-1.2.0 @@ -0,0 +1,2 @@ +MD5 c49f3e816eb4ec6602a98fbdb2a76ff1 asterisk-addons-1.2.0.tar.gz 750149 +MD5 ccf3831c2f67452d444c5e5e2c7ca6f0 sqlite-3.2.1.tar.gz 1351842 |