diff options
Diffstat (limited to 'net-misc/asterisk/files/1.2.0')
7 files changed, 0 insertions, 575 deletions
diff --git a/net-misc/asterisk/files/1.2.0/asterisk-1.2.1-uclibc-getloadavg.diff b/net-misc/asterisk/files/1.2.0/asterisk-1.2.1-uclibc-getloadavg.diff deleted file mode 100644 index 370ccc970923..000000000000 --- a/net-misc/asterisk/files/1.2.0/asterisk-1.2.1-uclibc-getloadavg.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- asterisk-1.2.1/include/asterisk/compat.h.orig 2005-12-20 23:04:56 +0000 -+++ asterisk-1.2.1/include/asterisk/compat.h 2005-12-20 23:05:19 +0000 -@@ -74,7 +74,7 @@ - #define HAVE_VASPRINTF - #define HAVE_STRTOQ - --#ifdef _BSD_SOURCE -+#if defined(_BSD_SOURCE) && !defined(__UCLIBC__) - #define HAVE_GETLOADAVG - #endif - diff --git a/net-misc/asterisk/files/1.2.0/asterisk-1.2.21.1-h323-dumb-makefile.diff b/net-misc/asterisk/files/1.2.0/asterisk-1.2.21.1-h323-dumb-makefile.diff deleted file mode 100644 index 37c44e6ad188..000000000000 --- a/net-misc/asterisk/files/1.2.0/asterisk-1.2.21.1-h323-dumb-makefile.diff +++ /dev/null @@ -1,36 +0,0 @@ -diff -Nura asterisk-1.2.17/channels/h323/Makefile asterisk-1.2.17.h323/channels/h323/Makefile ---- asterisk-1.2.17/channels/h323/Makefile 2007-03-06 12:17:16.000000000 -0300 -+++ asterisk-1.2.17.h323/channels/h323/Makefile 2007-04-27 16:08:27.481923054 -0300 -@@ -12,15 +12,13 @@ - STDCCFLAGS += -fPIC - #OPTCCFLAGS += - CFLAGS += -pipe -+CXXFLAGS += -I/usr/include/openh323 $(STDCCFLAGS) - TARGET += libchanh323.a - TARGET += Makefile.ast - SOURCES = ast_h323.cxx -+OBJS = ast_h323.o - OBJDIR = . - --ifndef OPENH323DIR --OPENH323DIR=$(HOME)/openh323 --endif -- - clean: - rm -f *.so *.o .depend - -@@ -31,13 +29,12 @@ - touch $(SOURCES) - - libchanh323.a: $(OBJS) -- include $(OPENH323DIR)/openh323u.mak - ar crv $@ $(OBJS) - - Makefile.ast: FORCE - @echo H323CFLAGS = $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) >$@.tmp - @echo H323LDFLAGS = $(CFLAGS) $(LDFLAGS) >>$@.tmp -- @echo H323LDLIBS = $(LDLIBS) $(ENDLDLIBS) $(ENDLDFLAGS) >>$@.tmp -+ @echo H323LDLIBS = $(LDLIBS) $(ENDLDLIBS) $(ENDLDFLAGS) -lopenh323 -lpt >>$@.tmp - @if [ -r $@ ] && cmp -s $@ $@.tmp; then rm -f $@.tmp; else mv -f $@.tmp $@; fi - - FORCE: diff --git a/net-misc/asterisk/files/1.2.0/asterisk-1.2.31.1-comma-is-not-pipe.diff b/net-misc/asterisk/files/1.2.0/asterisk-1.2.31.1-comma-is-not-pipe.diff deleted file mode 100644 index b07c1fb93bce..000000000000 --- a/net-misc/asterisk/files/1.2.0/asterisk-1.2.31.1-comma-is-not-pipe.diff +++ /dev/null @@ -1,12 +0,0 @@ -diff -uNr asterisk-1.2.31.1.ORIG/apps/app_chanspy.c asterisk-1.2.31.1/apps/app_chanspy.c ---- asterisk-1.2.31.1.ORIG/apps/app_chanspy.c 2009-03-11 15:37:50.000000000 +0000 -+++ asterisk-1.2.31.1/apps/app_chanspy.c 2009-03-11 15:38:55.000000000 +0000 -@@ -438,7 +438,7 @@ - if (recbase) { - char filename[512]; - snprintf(filename,sizeof(filename),"%s/%s.%d.raw",ast_config_AST_MONITOR_DIR, recbase, (int)time(NULL)); -- if ((fd = open(filename, O_CREAT | O_WRONLY, O_TRUNC, 0644)) <= 0) { -+ if ((fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0644)) <= 0) { - ast_log(LOG_WARNING, "Cannot open %s for recording\n", filename); - fd = 0; - } diff --git a/net-misc/asterisk/files/1.2.0/asterisk-1.2.35-lpc10-prototypes.diff b/net-misc/asterisk/files/1.2.0/asterisk-1.2.35-lpc10-prototypes.diff deleted file mode 100644 index 41d20f085194..000000000000 --- a/net-misc/asterisk/files/1.2.0/asterisk-1.2.35-lpc10-prototypes.diff +++ /dev/null @@ -1,12 +0,0 @@ -diff -uNr asterisk-1.2.35.ORIG/codecs/lpc10/Makefile asterisk-1.2.35/codecs/lpc10/Makefile ---- asterisk-1.2.35.ORIG/codecs/lpc10/Makefile 2009-09-04 13:12:03.000000000 +0100 -+++ asterisk-1.2.35/codecs/lpc10/Makefile 2009-09-04 13:15:32.000000000 +0100 -@@ -22,7 +22,7 @@ - # - - WARNINGS = -Wall -Wno-comment -Wno-error --CFLAGS += $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS) -+CFLAGS += $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS) -DP_R_O_T_O_T_Y_P_E_S - ifneq (${OSARCH},CYGWIN) - CFLAGS += -fPIC - endif diff --git a/net-misc/asterisk/files/1.2.0/asterisk-updater b/net-misc/asterisk/files/1.2.0/asterisk-updater deleted file mode 100644 index 273f511375b6..000000000000 --- a/net-misc/asterisk/files/1.2.0/asterisk-updater +++ /dev/null @@ -1,153 +0,0 @@ -#!/bin/bash - -# -# -# -PORTDB_DIR="$(portageq vdb_path)" -PRETEND=0 -UPDATE=0 - -# -# -# -modules_list="" -ebuild_list="" - -pkgname() { - echo "${1%-[0-9.]*}" -} - -pkgver() { - echo "${1##$(pkgname "$1")-}" -} - -for x in $@; do - case ${x} in - *help|*h) - echo "Usage: $0 [EMERGE_OPTIONS|--help|-h]" - exit 0 - ;; - *pretend|*p) - PRETEND=1 - ;; - *update|*u) - UPDATE=1 - ;; - esac -done - -# strip --update and -u from emerge options (breaks re-emerging) -EMERGE_OPTS="$(echo $@ | sed -e "s:--update\|-u::")" - -echo ">>> Scanning modules in /usr/lib/asterisk/modules..." - -# create list of modules -for x in $(ls -1 /usr/lib/asterisk/modules/*.so); do - - if $(readelf -s "${x}" | grep -q "\(ast_load\|ast_save\|ast_destroy\|ast_pthread_create\|ast_strcasestr\)$"); then - modules_list="${modules_list} $(basename ${x})" - fi -done - -if [[ -n "${modules_list}" ]]; then - echo ">>> Module(s) need to be updated, creating list..." - - # - # grab initial list of ebuilds - # - for x in ${modules_list}; do - package="$(grep -l "${x}" "${PORTDB_DIR}"/net-misc/*/CONTENTS | head -n 1 | sed -e "s:${PORTDB_DIR}/::" -e "s:/CONTENTS::")" - - [[ -n "${package}" ]] && \ - ebuild_list="${ebuild_list} ${package}" - done - - echo - echo ">>> Checking packages..." - - tmp_list="" - fail_list="" - for x in ${ebuild_list}; do - # strip version from package - pkgname="${x%-[0-9.]*}" - - if [[ $UPDATE -eq 0 ]]; then - # try to emerge same version - if ! emerge -pq "=${x}" &>/dev/null; then - if ! emerge -pq ">${x}" &>/dev/null; then - - # ebuild is gone - fail_list="${fail_list} ${x}" - else - - # ebuild is available in a newer version, - # add it to the update list - update_list="${update_list} ${x}" - fi - else - tmp_list="${tmp_list} =${x}" - fi - else - # try to update ebuild - if ! emerge -pq ">=${x}" &>/dev/null; then - if ! emerge -pq ">${x}" &>/dev/null; then - - # ebuild is gone - fail_list="${fail_list} ${x}" - fi - else - tmp_list="${tmp_list} >=${x}" - fi - fi - done - - echo - - if [[ -n "${fail_list}" ]]; then - echo - echo "!!! The following ebuild(s) need to be updated manually:" - for x in ${fail_list}; do - echo " $(pkgname "${x}")" - done - echo - fi - - if [[ $UPDATE -eq 0 ]] && [[ -n "${update_list}" ]] - then - # display list of packages and ask user what to do - echo "!!! The following ebuilds are only available in newer versions:" - echo - for x in ${update_list}; do - echo " $(pkgname "${x}")" - done - echo - echo -n "--- Do you want to update them (y/N)? " - read tmp - - tmp="$(echo "${tmp}" | tr "[[:upper:]]" "[[:lower:]]")" - if [[ "${tmp}" != "y" ]]; then - echo ">>> NOT updating ebuilds" - unset update_list - fi - fi - - if [[ -n "${update_list}" ]]; then - # simply copy update list to merge list - echo ">>> Adding list of ebuilds to update..." - for x in ${update_list}; do - tmp_list="${tmp_list} $(pkgname "${x}")" - done - fi - - if [[ -n "${tmp_list}" ]]; then - echo ">>> Feeding list of ebuilds to emerge ${EMERGE_OPTS}..." - emerge ${tmp_list} ${EMERGE_OPTS} - else - echo -e "*** Nothing to emerge..." - fi -else - echo "*** No asterisk-1.0.x modules found!" -fi - -echo -exit 0 diff --git a/net-misc/asterisk/files/1.2.0/asterisk.confd b/net-misc/asterisk/files/1.2.0/asterisk.confd deleted file mode 100644 index c25ee0050ff9..000000000000 --- a/net-misc/asterisk/files/1.2.0/asterisk.confd +++ /dev/null @@ -1,98 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/files/1.2.0/asterisk.confd,v 1.1 2006/04/16 01:04:44 stkn Exp $ - -# -# Additional options for asterisk -# -# see "asterisk -h" for a list of options -# -ASTERISK_OPTS="" - -# -# User and group to run asterisk as -# -# Value: double-colon separated list of user and group, or empty to run as root: -# -# -# "asterisk:asterisk" to run as user "asterisk" and group "asterisk" -# -# "asterisk" to run as user "asterisk" and all groups that user "asterisk" is a member of -# -# ":asterisk" to run as user "root" and group "asterisk" -# -# "" to run as user "root" and group "root" -# -ASTERISK_USER="asterisk" - -# -# Nicelevel -# -# Set the priority of the asterisk process -# -# Value: (highest) -20..19 (lowest) -# -#ASTERISK_NICE="19" - -# -# Wrapper script -# -# Value: yes or no/empty -# -ASTERISK_WRAPPER="no" - -############# Wrapper script settings ############# - -# -# Send crash notifications emails to this address -# (needs a working mail service and /usr/sbin/sendmail to do so (e.g. ssmtp)) -# -# Value: Email address or empty to disable -# -#ASTERISK_NOTIFY_EMAIL="root" - -# -# Send asterisk's output to this terminal -# -# Value: Full path to device node or a number -# -#ASTERISK_TTY="/dev/tty9" - -# -# Start an asterisk console on the terminal specified by ASTERISK_TTY -# -# Warning! Use only for debugging, this is a potential security issue! -# -# Value: yes or no/empty -# -ASTERISK_CONSOLE="no" - -# -# Maximum size of core files. -# -# Value: Size in bytes, unlimited for no limit or empty to disable. -# -#ASTERISK_CORE_SIZE="unlimited" - -# -# ASTERISK_CORE_DIR -# -# Value: Directory (will be created if non-existant), default is /tmp -# -ASTERISK_CORE_DIR="/var/lib/asterisk/coredump" - -# -# Max number of filedescriptors -# -# Value: Number of descriptors -# -#ASTERISK_MAX_FD="1024" - -# -# Kill these tasks after asterisk crashed (ASTERISK_WRAPPER=yes only!) -# -# Warning! This will kill _ALL_ tasks with the specified names! -# -# Value: Space separated list of names in double quotes (e.g. "mpg123 mad") -# -#ASTERISK_CLEANUP_ON_CRASH="mpg123 asterisk-mpg123 mad" diff --git a/net-misc/asterisk/files/1.2.0/asterisk.rc6 b/net-misc/asterisk/files/1.2.0/asterisk.rc6 deleted file mode 100755 index af388015bb92..000000000000 --- a/net-misc/asterisk/files/1.2.0/asterisk.rc6 +++ /dev/null @@ -1,253 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/files/1.2.0/asterisk.rc6,v 1.5 2007/04/19 19:46:16 gustavoz Exp $ - -opts="${opts} forcestop reload" - -depend() { - need net - use nscd dns zaptel mysql postgresql slapd capi -} - -is_running() { - if [ -z "$(pidof asterisk)" ]; then - return 1 - else - PID="$(cat /var/run/asterisk/asterisk.pid)" - for x in $(pidof asterisk); do - if [ "${x}" = "${PID}" ]; then - return 0 - fi - done - fi - - return 1 -} - -asterisk_run_loop() { - local OPTS ARGS MSG NICE="" - local result=0 signal=0 - - # default options - OPTS="-f" # don't fork / detach breaks wrapper script... - - # filter (redundant) arguments - ARGS="$(echo "${@}" | sed -e "s:-c\|-f::g")" - - # mangle yes/no options - ASTERISK_CONSOLE="$(echo ${ASTERISK_CONSOLE} | tr '[:lower:]' '[:upper:]')" - - if [ -n "${ASTERISK_CORE_SIZE}" ] && - [ "${ASTERISK_CORE_SIZE}" != "0" ]; then - ulimit -c ${ASTERISK_CORE_SIZE} - - if [ -n "${ASTERISK_CORE_DIR}" ] && \ - [ ! -d "${ASTERISK_CORE_DIR}" ] - then - mkdir -m750 -p "${ASTERISK_CORE_DIR}" - - if [ -n "${ASTERISK_USER}" ]; then - chown -R "${ASTERISK_USER}" "${ASTERISK_CORE_DIR}" - fi - fi - ASTERISK_CORE_DIR="${ASTERISK_CORE_DIR:-/tmp}" - - cd "${ASTERISK_CORE_DIR}" - echo " Core dump size : ${ASTERISK_CORE_SIZE}" - echo " Core dump location : ${ASTERISK_CORE_DIR}" - fi - - if [ -n "${ASTERISK_MAX_FD}" ]; then - ulimit -n ${ASTERISK_MAX_FD} - echo " Max open filedescriptors : ${ASTERISK_MAX_FD}" - fi - - if [ -n "${ASTERISK_NICE}" ]; then - echo " Nice level : ${ASTERISK_NICE}" - NICE="nice -n ${ASTERISK_NICE} --" - fi - - if [ -n "${ASTERISK_NOTIFY_EMAIL}" ]; then - if [ -x /usr/sbin/sendmail ]; then - echo " Email notifications go to : ${ASTERISK_NOTIFY_EMAIL}" - else - echo " Notifications disabled, /usr/sbin/sendmail doesn't exist or is not executable!" - unset ASTERISK_NOTIFY_EMAIL - fi - fi - - if [ -n "${ASTERISK_TTY}" ]; then - for x in ${ASTERISK_TTY} \ - /dev/tty${ASTERISK_TTY} \ - /dev/vc/${ASTERISK_TTY} - do - if [ -c "${x}" ]; then - TTY="${x}" - fi - done - [ -n "${TTY}" ] && \ - echo " Messages are sent to : ${TTY}" - fi - - if [ "${ASTERISK_CONSOLE}" = "YES" ] && [ -n "${TTY}" ]; then - echo " Starting Asterisk console : ${ASTERISK_CONSOLE}" - OPTS="${OPTS} -c" - fi - - OPTS="${OPTS} ${ARGS}" - - while :; do - - if [ -n "${TTY}" ]; then - /usr/bin/stty -F ${TTY} sane - ${NICE} /usr/sbin/asterisk ${OPTS} >${TTY} 2>&1 <${TTY} - result=$? - else - ${NICE} /usr/sbin/asterisk ${OPTS} &>/dev/null - result=$? - fi - - if [ $result -eq 0 ]; then - echo "Asterisk terminated normally" - break - else - if [ $result -gt 128 ]; then - signal=$((result - 128)) - MSG="Asterisk terminated with Signal: $signal" - - CORE_TARGET="core-$(date "+%Y%m%d-%h%M%s")" - - local CORE_DUMPED=0 - if [ -f "${ASTERISK_CORE_DIR}/core" ]; then - mv "${ASTERISK_CORE_DIR}/core" \ - "${ASTERISK_CORE_DIR}/${CORE_TARGET}" - CORE_DUMPED=1 - - elif [ -f "${ASTERISK_CORE_DIR}/core.${PID}" ]; then - mv "${ASTERISK_CORE_DIR}/core.${PID}" \ - "${ASTERISK_CORE_DIR}/${CORE_TARGET}" - CORE_DUMPED=1 - - fi - - [ $CORE_DUMPED -eq 1 ] && \ - MSG="${MSG}\n\rCore dumped: ${ASTERISK_CORE_DIR}/${CORE_TARGET}" - else - MSG="Asterisk terminated with return code: $result" - fi - - # kill left-over tasks - for X in ${ASTERISK_CLEANUP_ON_CRASH}; do - kill -9 $(pidof ${X}); - done - fi - - [ -n "${TTY}" ] \ - && echo "${MSG}" >${TTY} \ - || echo "${MSG}" - - - if [ -n "${ASTERISK_NOTIFY_EMAIL}" ] && \ - [ -x /usr/sbin/sendmail ]; then - echo -e -n "Subject: Asterisk crashed\n\r${MSG}\n\r" |\ - /usr/sbin/sendmail "${ASTERISK_NOTIFY_EMAIL}" - fi - sleep 5 - echo "Restarting Asterisk..." - done - return 0 -} - -start() { - local OPTS USER GROUP PID - local tmp x - - if [ -n "${ASTERISK_NICE}" ]; then - if [ ${ASTERISK_NICE} -ge -20 ] && \ - [ ${ASTERISK_NICE} -le 19 ]; then - OPTS="--nicelevel ${ASTERISK_NICE}" - else - eerror "Nice value must be between -20 and 19" - return 1 - fi - fi - - if [ -n "${ASTERISK_USER}" ]; then - USER=$(echo $ASTERISK_USER | sed 's/:.*//') - GROUP=$(echo $ASTERISK_USER | awk -F: '/.*:.*/ { print $2 }') - if [ -n "${USER}" ]; then - ASTERISK_OPTS="${ASTERISK_OPTS} -U ${USER}" - fi - if [ -n "${GROUP}" ]; then - ASTERISK_OPTS="${ASTERISK_OPTS} -G ${GROUP}" - GROUP=":${GROUP}" # make it look nice... - fi - ebegin "Starting asterisk PBX (as ${USER}${GROUP})" - else - ebegin "Starting asterisk PBX (as root)" - fi - - if [ "$(echo ${ASTERISK_WRAPPER} | tr '[:upper:]' '[:lower:]')" != "yes" ]; then - start-stop-daemon --start --exec /usr/sbin/asterisk \ - ${OPTS} -- ${ASTERISK_OPTS} - result=$? - else - asterisk_run_loop ${ASTERISK_OPTS} 2>/dev/null & - result=$? - fi - - if [ $result -eq 0 ]; then - # 2 seconds should be enough for asterisk to start - sleep 2 - is_running - result=$? - fi - - eend $result -} - -forcestop() { - ebegin "Stopping asterisk PBX" - start-stop-daemon --stop --pidfile /var/run/asterisk/asterisk.pid - eend $? -} - -stop() { - if ! is_running; then - eerror "Asterisk is not running!" - return 0 - fi - - ebegin "Stopping asterisk PBX gracefully" - /usr/sbin/asterisk -r -x "stop gracefully" &>/dev/null - # Now we have to wait until asterisk has _really_ stopped. - sleep 1 - if is_running; then - einfon "Waiting for asterisk to shutdown ." - local cnt=0 - while is_running; do - cnt=`expr $cnt + 1` - if [ $cnt -gt 60 ] ; then - # Waited 120 seconds now. Fail. - echo - eend 1 "Failed." - return - fi - sleep 2 - echo -n "." - done - echo - fi - eend 0 -} - -reload() { - if is_running; then - ebegin "Forcing asterisk to reload configuration" - /usr/sbin/asterisk -r -x "reload" &>/dev/null - eend $? - else - eerror "Asterisk is not running!" - fi -} |