--- asterisk-cvs-20040618.orig/apps/app_voicemail.c +++ asterisk-cvs-20040618/apps/app_voicemail.c @@ -169,7 +169,7 @@ " If the extension is preceded by \n" "* 's' then instructions for leaving the message will be skipped.\n" "* 'u' then the \"unavailable\" message will be played.\n" -" (/var/lib/asterisk/sounds/vm//unavail) if it exists.\n" +" (/var/share/asterisk/sounds/vm//unavail) if it exists.\n" "* 'b' then the the busy message will be played (that is, busy instead of unavail).\n" "If the caller presses '0' (zero) during the prompt, the call jumps to\n" "extension 'o' in the current context.\n" --- asterisk-cvs-20040618.orig/configs/musiconhold.conf.sample +++ asterisk-cvs-20040618/configs/musiconhold.conf.sample @@ -2,8 +2,8 @@ ; Music on hold class definitions ; [classes] -;default => quietmp3:/var/lib/asterisk/mohmp3 -;loud => mp3:/var/lib/asterisk/mohmp3 -;random => quietmp3:/var/lib/asterisk/mohmp3,-z -;unbuffered => mp3nb:/var/lib/asterisk/mohmp3 -;quietunbuf => quietmp3nb:/var/lib/asterisk/mohmp3 +;default => quietmp3:/usr/share/asterisk/mohmp3 +;loud => mp3:/usr/share/asterisk/mohmp3 +;random => quietmp3:/usr/share/asterisk/mohmp3,-z +;unbuffered => mp3nb:/usr/share/asterisk/mohmp3 +;quietunbuf => quietmp3nb:/usr/share/asterisk/mohmp3 --- asterisk-cvs-20040618.orig/Makefile +++ asterisk-cvs-20040618/Makefile @@ -103,6 +103,7 @@ ASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk ASTVARLIBDIR=$(INSTALL_PREFIX)/var/lib/asterisk +ASTSHAREDIR=$(INSTALL_PREFIX)/usr/share/asterisk ASTETCDIR=$(INSTALL_PREFIX)/etc/asterisk ASTSPOOLDIR=$(INSTALL_PREFIX)/var/spool/asterisk ASTLOGDIR=$(INSTALL_PREFIX)/var/log/asterisk @@ -110,10 +111,10 @@ ASTCONFPATH=$(ASTETCDIR)/asterisk.conf ASTBINDIR=$(INSTALL_PREFIX)/usr/bin ASTSBINDIR=$(INSTALL_PREFIX)/usr/sbin -ASTVARRUNDIR=$(INSTALL_PREFIX)/var/run +ASTVARRUNDIR=$(INSTALL_PREFIX)/var/run/asterisk MODULES_DIR=$(ASTLIBDIR)/modules -AGI_DIR=$(ASTVARLIBDIR)/agi-bin +AGI_DIR=$(ASTSHAREDIR)/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 @@ -144,6 +145,7 @@ CFLAGS+=-DASTETCDIR=\"$(ASTETCDIR)\" CFLAGS+=-DASTLIBDIR=\"$(ASTLIBDIR)\" CFLAGS+=-DASTVARLIBDIR=\"$(ASTVARLIBDIR)\" +CFLAGS+=-DASTSHAREDIR=\"${ASTSHAREDIR}\" CFLAGS+=-DASTVARRUNDIR=\"$(ASTVARRUNDIR)\" CFLAGS+=-DASTSPOOLDIR=\"$(ASTSPOOLDIR)\" CFLAGS+=-DASTLOGDIR=\"$(ASTLOGDIR)\" @@ -276,28 +278,28 @@ $(MAKE) -C stdtime clean datafiles: all - mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits + mkdir -p $(DESTDIR)$(ASTSHAREDIR)/sounds/digits for x in sounds/digits/*.gsm; do \ if grep -q "^%`basename $$x`%" sounds.txt; then \ - install -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits ; \ + install -m 644 $$x $(DESTDIR)$(ASTSHAREDIR)/sounds/digits ; \ else \ echo "No description for $$x"; \ exit 1; \ fi; \ done - mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/letters + mkdir -p $(DESTDIR)$(ASTSHAREDIR)/sounds/letters for x in sounds/letters/*.gsm; do \ if grep -q "^%`basename $$x`%" sounds.txt; then \ - install -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/letters ; \ + install -m 644 $$x $(DESTDIR)$(ASTSHAREDIR)/sounds/letters ; \ else \ echo "No description for $$x"; \ exit 1; \ fi; \ done - mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/phonetic + mkdir -p $(DESTDIR)$(ASTSHAREDIR)/sounds/phonetic for x in sounds/phonetic/*.gsm; do \ if grep -q "^%`basename $$x`%" sounds.txt; then \ - install -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/phonetic ; \ + install -m 644 $$x $(DESTDIR)$(ASTSHAREDIR)/sounds/phonetic ; \ else \ echo "No description for $$x"; \ exit 1; \ @@ -305,13 +307,13 @@ 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-* sounds/queue-*; do \ if grep -q "^%`basename $$x`%" sounds.txt; then \ - install -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds ; \ + install -m 644 $$x $(DESTDIR)$(ASTSHAREDIR)/sounds ; \ else \ echo "No description for $$x"; \ exit 1; \ fi; \ done - mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/mohmp3 + mkdir -p $(DESTDIR)$(ASTSHAREDIR)/mohmp3 mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/images for x in images/*.jpg; do \ install -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/images ; \ @@ -341,10 +343,10 @@ install -m 755 contrib/scripts/safe_asterisk $(DESTDIR)$(ASTSBINDIR)/ ;\ fi for x in $(SUBDIRS); do $(MAKE) -C $$x install || exit 1 ; done - install -d $(DESTDIR)$(ASTHEADERDIR) + install -m 644 -d $(DESTDIR)$(ASTHEADERDIR) install -m 644 include/asterisk/*.h $(DESTDIR)$(ASTHEADERDIR) - rm -f $(DESTDIR)$(ASTVARLIBDIR)/sounds/vm - rm -f $(DESTDIR)$(ASTVARLIBDIR)/sounds/voicemail + rm -f $(DESTDIR)$(ASTSHAREDIR)/sounds/vm + rm -f $(DESTDIR)$(ASTSHAREDIR)/sounds/voicemail if [ ! -h $(DESTDIR)$(ASTSPOOLDIR)/vm ] && [ -d $(DESTDIR)$(ASTSPOOLDIR)/vm ]; then \ mv $(DESTDIR)$(ASTSPOOLDIR)/vm $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default; \ else \ @@ -359,7 +361,7 @@ rm -f $(DESTDIR)$(MODULES_DIR)/codec_mp3_d.so rm -f $(DESTDIR)$(MODULES_DIR)/format_mp3.so rm -f $(DESTDIR)$(MODULES_DIR)/app_voicemail2.so - mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds + mkdir -p $(DESTDIR)$(ASTSHAREDIR)/sounds mkdir -p $(DESTDIR)$(ASTLOGDIR)/cdr-csv mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/keys mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/firmware @@ -371,8 +373,9 @@ else \ echo "You need to do cvs update -d not just cvs update" ; \ fi - ( cd $(DESTDIR)$(ASTVARLIBDIR)/sounds ; ln -s $(ASTSPOOLDIR)/vm . ) - ( cd $(DESTDIR)$(ASTVARLIBDIR)/sounds ; ln -s $(ASTSPOOLDIR)/voicemail . ) + ( cd $(DESTDIR)$(ASTSHAREDIR)/sounds ; ln -s $(ASTSPOOLDIR)/vm . ) + ( cd $(DESTDIR)$(ASTSHAREDIR)/sounds ; ln -s $(ASTSPOOLDIR)/voicemail . ) + ( cd $(DESTDIR)$(ASTVARLIBDIR) ; ln -s $(ASTSHAREDIR)/sounds . ) @echo " +---- Asterisk Installation Complete -------+" @echo " + +" @echo " + YOU MUST READ THE SECURITY DOCUMENT +" @@ -425,23 +428,23 @@ echo "astlogdir => $(ASTLOGDIR)" >> $(DESTDIR)$(ASTETCDIR)/asterisk.conf for x in sounds/demo-*; do \ if grep -q "^%`basename $$x`%" sounds.txt; then \ - install -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds ; \ + install -m 644 $$x $(DESTDIR)$(ASTSHAREDIR)/sounds ; \ else \ echo "No description for $$x"; \ exit 1; \ fi; \ done for x in sounds/*.mp3; do \ - install -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/mohmp3 ; \ + install -m 644 $$x $(DESTDIR)$(ASTSHAREDIR)/mohmp3 ; \ done mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/INBOX :> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/unavail.gsm for x in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isunavail; do \ - cat $(DESTDIR)$(ASTVARLIBDIR)/sounds/$$x.gsm >> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/unavail.gsm ; \ + cat $(DESTDIR)$(ASTSHAREDIR)/sounds/$$x.gsm >> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/unavail.gsm ; \ done :> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/busy.gsm for x in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isonphone; do \ - cat $(DESTDIR)$(ASTVARLIBDIR)/sounds/$$x.gsm >> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/busy.gsm ; \ + cat $(DESTDIR)$(ASTSHAREDIR)/sounds/$$x.gsm >> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/busy.gsm ; \ done webvmail: --- asterisk-cvs-20040618.orig/channels/h323/Makefile +++ asterisk-cvs-20040618/channels/h323/Makefile @@ -1,5 +1,9 @@ # include the Makefile of OpenH323 +OPENH323DIR=/usr/share/openh323 +PWLIBDIR=/usr/share/pwlib + + ifndef OPENH323DIR OPENH323DIR=$(HOME)/openh323 endif @@ -19,7 +23,7 @@ # # This needs to be updated to deal with more than just little endian machines # -CFLAGS += -march=$(shell uname -m) -DPBYTE_ORDER=PLITTLE_ENDIAN +CFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi) ############################################# @@ -38,7 +42,7 @@ # Pre Janus release directives CFLAGS += -DNDEBUG -DDO_CRASH -DDEBUG_THREADS -CFLAGS += -pipe -Wall -fPIC -Wmissing-prototypes -Wmissing-declarations +CFLAGS += -pipe -Wall -fPIC ifeq (${OSARCH},Linux) CFLAGS += -DP_LINUX endif @@ -46,8 +50,9 @@ CFLAGS += -DP_HAS_SEMAPHORES -DP_SSL -DP_PTHREADS CFLAGS += -DPHAS_TEMPLATES -DPTRACING -DP_USE_PRAGMA CFLAGS += -I../../include -CFLAGS += -I$(PWLIBDIR)/include/ptlib/unix -I$(PWLIBDIR)/include -CFLAGS += -I$(OPENH323DIR)/include -Wno-missing-prototypes -Wno-missing-declarations +CFLAGS += -I/usr/include/ptlib/unix -I/usr/include/pwlib -I/usr/share/pwlib//include -I/usr/include/openh323 +#CFLAGS += -I$(PWLIBDIR)/include/ptlib/unix -I$(PWLIBDIR)/include +#CFLAGS += -I$(OPENH323DIR)/include -Wno-missing-prototypes -Wno-missing-declarations all: libchanh323.a --- asterisk-cvs-20040618.orig/channels/Makefile +++ asterisk-cvs-20040618/channels/Makefile @@ -26,7 +26,7 @@ # If you really want IAX1 uncomment the following, but it is # unmaintained # -#CHANNEL_LIBS+=chan_iax.so +CHANNEL_LIBS+=chan_iax.so # # If you really want VoFR you can have it :-P @@ -41,8 +41,8 @@ CHANH323LIB=-L/usr/local/lib else MYSQLLIB=-L/usr/lib/mysql -lmysqlclient -PTLIB=-lpt_linux_x86_r -H323LIB=-lh323_linux_x86_r +PTLIB=-lpt +H323LIB=-lopenh323 CHANH323LIB=-ldl endif @@ -181,7 +181,6 @@ chan_h323.so: chan_h323.o h323/libchanh323.a $(CC) $(SOLINK) -o $@ $< h323/libchanh323.a $(CHANH323LIB) -L$(PWLIBDIR)/lib $(PTLIB) -L$(OPENH323DIR)/lib $(H323LIB) -L/usr/lib -lpthread -lcrypto -lssl -lexpat - #chan_modem.so : chan_modem.o # $(CC) -rdynamic -shared -Xlinker -x -o $@ $< --- asterisk-cvs-20040618.orig/debian/asterisk-cvs.install +++ asterisk-cvs-20040618/debian/asterisk-cvs.install @@ -0,0 +1,5 @@ +etc +usr/lib/asterisk +usr/sbin +usr/share/asterisk/agi-bin +var/lib/asterisk --- asterisk-cvs-20040618.orig/debian/docs +++ asterisk-cvs-20040618/debian/docs @@ -0,0 +1 @@ +README --- asterisk-cvs-20040618.orig/debian/control +++ asterisk-cvs-20040618/debian/control @@ -0,0 +1,97 @@ +Source: asterisk-cvs +Priority: optional +Section: comm +Maintainer: Mark Purcell +Standards-Version: 3.5.6 +Build-Depends: debhelper (>= 4.0.4), libgtk2.0-dev | libgtk-dev, libreadline4-dev | libreadline-dev, libgsm1-dev, libssl-dev, libzap-dev, libtonezone-dev, doxygen, libnewt-dev, bison, libedit-dev, libasound2-dev, libgtk1.2-dev | libgtk-dev, postgresql-dev, unixodbc-dev, libpri-dev, libopenh323-dev + +Package: asterisk-cvs +Architecture: any +Section: comm +Depends: ${shlibs:Depends}, asterisk-cvs-sounds +Conflicts: asterisk +Replaces: asterisk +Provides: asterisk +Suggests: ohphone, kphone, asterisk-cvs-doc, asterisk-cvs-dev, rate-engine +Description: Open Source Private Branch Exchange (PBX) + Asterisk is an Open Source telephony switching and private branch + exchange daemon. It is built with a modular architecture for hardware + interfaces and telephony applications. A large number of switching and + packet voice protocols and a variety of hardware interfaces are + supported, and more are in development. + . + It supports a wide range of TDM protocols for the handling and + transmission of voice over traditional telephony interfaces. Asterisk + supports US and European standard signalling types used in standard + business phone systems, allowing it to bridge between next generation + voice-data integrated networks and existing infrastucture. Asterisk + not only supports traditional phone equipment, it enhances them with + additional capabilities. + . + Using the IAX Voice over IP protocol, Asterisk merges voice and data + traffic seemlessly across disparate networks. While using Packet + Voice, it is possible to send data such as URL information and images + in-line with voice traffic, allowing advanced integration of + information. + . + Asterisk provides a central switching core, with four APIs for modular + loading of telephony applications, hardware interfaces, file format + handling, and codecs. It allows for transparent switching between + between all supported interfaces, allowing it to tie together a + diverse mixture of telephony systems into a single switching network. + . + Currently, most PRI and Robbed Bit signalling is supported, as well as + BRI(ISDN4Linux). Packet Voice is available through the IAX, H.323 and + SIP protocols + . + To use Asterisk right now, you will need at least one of the following: + . + * OSS compatible full-duplex sound card (http://www.opensound.com) + * ALSA compatible full-duplex sound card (http://www.alsa-project.org) + * All Wildcard (tm) products from LSS (http://www.linux-support.net) + * QuickNet Internet PhoneJack and LineJack (http://www.quicknet.net) + * Adtran Atlas 800 Plus (http://www.adtran.com) + * ISDN4Linux compatible ISDN card (http://www.isdn4linux.de) + * Tormenta Dual T1 card (http://zapatatelephony.org) + . + This Debian package includes the sample PBX, with demonstration extensions, etc + . + Website: http://www.asterisk.org. + +Package: asterisk-cvs-doc +Recommends: asterisk-cvs +Conflicts: asterisk-doc +Replaces: asterisk-doc +Provides: asterisk-doc +Section: doc +Architecture: all +Description: Documentation for asterisk + Asterisk is an Open Source PBX and telephony toolkit. + . + This package contains the source documentation needed if you wish to + extend the asterisk package. + +Package: asterisk-cvs-dev +Architecture: all +Recommends: asterisk-cvs +Conflicts: asterisk-dev +Replaces: asterisk-dev +Provides: asterisk-dev +Section: devel +Description: Development files for asterisk + Asterisk is an Open Source PBX and telephony toolkit. + . + This package contains the include files used if you wish to compile a + package which requires asterisk source file headers. + +Package: asterisk-cvs-sounds +Architecture: all +Recommends: asterisk-cvs +Conflicts: asterisk-sounds +Replaces: asterisk-sounds +Provides: asterisk-sounds +Section: comm +Description: Sound files for asterisk + Asterisk is an Open Source PBX and telephony toolkit. + . + This package contains the default sound files for operation of asterisk --- asterisk-cvs-20040618.orig/debian/asterisk-cvs.init +++ asterisk-cvs-20040618/debian/asterisk-cvs.init @@ -0,0 +1,56 @@ +#! /bin/sh +# +# asterisk start the asterisk PBX +# +# Based on: +# +# skeleton example file to build /etc/init.d/ scripts. +# This file should be used to construct scripts for /etc/init.d. +# +# Written by Miquel van Smoorenburg . +# Modified for Debian GNU/Linux +# by Ian Murdock . +# +# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl +# + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/asterisk +NAME=asterisk +DESC="Asterisk PBX" + +test -x $DAEMON || exit 0 + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --chuid $NAME \ + --exec $DAEMON + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + $DAEMON -rx 'stop now' > /dev/null && echo -n "$NAME" + echo "." + exit 0 + ;; + reload) + echo "Reloading $DESC configuration files." + $DAEMON -rx reload + ;; + restart|force-reload) + $0 stop + sleep 1 + $0 start + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- asterisk-cvs-20040618.orig/debian/rules +++ asterisk-cvs-20040618/debian/rules @@ -0,0 +1,120 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +export DH_COMPAT=4 + +export PROC := $(shell dpkg-architecture -qDEB_HOST_ARCH) + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +export OPENH323DIR=/usr/share/openh323 +export PWLIBDIR=/usr/share/pwlib + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + +build-arch: configure-stamp build-arch-stamp +build-arch-stamp: + dh_testdir + + # Add here command to compile/build the package. + cd channels/h323; make + $(MAKE) + + touch build-arch-stamp + +build-indep: configure-stamp build-indep-stamp +build-indep-stamp: + dh_testdir + + # Add here command to compile/build the arch indep package. + # It's ok not to do anything here, if you don't need to build + # anything for this package. + #/usr/bin/docbook-to-man debian/asterisk.sgml > asterisk.1 + $(MAKE) progdocs + + touch build-indep-stamp + + +build: build-arch build-indep + +clean: + dh_testdir + dh_testroot + rm -f build-arch-stamp build-indep-stamp configure-stamp + + # Add here commands to clean up after the build process. + cd channels/h323; make clean + -$(MAKE) clean + rm -fR doc/api agi/eagi-test agi/eagi-sphinx-test + + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs var/run/asterisk + dh_installdirs var/spool/asterisk + + # Add here commands to install the package into debian/ + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install samples + cp debian/asterisk.conf $(CURDIR)/debian/tmp/etc/asterisk/asterisk.conf + cp channels/h323/h323.conf.sample $(CURDIR)/debian/tmp/etc/asterisk/h323.conf + + + dh_install --sourcedir=debian/tmp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir -i + dh_testroot -i + dh_installdocs -i + dh_installexamples -i -XCVS + dh_installcron -i + dh_installchangelogs ChangeLog -i + dh_link -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir -a + dh_testroot -a + dh_installdocs -a + dh_installexamples -a -XCVS + dh_installlogrotate -a + dh_installinit -a -- defaults 21 + dh_installchangelogs ChangeLog -a + dh_strip -a + dh_link -a + dh_compress -a + dh_fixperms -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- asterisk-cvs-20040618.orig/debian/changelog +++ asterisk-cvs-20040618/debian/changelog @@ -0,0 +1,6 @@ +asterisk-cvs (20040618-1) unstable; urgency=low + + * new CVS snapshot + + -- Martin List-Petersen Sat, 18 Jun 2004 12:54:00 +0000 + --- asterisk-cvs-20040618.orig/debian/asterisk-dev-sounds.install +++ asterisk-cvs-20040618/debian/asterisk-dev-sounds.install @@ -0,0 +1,3 @@ +usr/share/asterisk/sounds +usr/share/asterisk/mohmp3 +var/spool/asterisk --- asterisk-cvs-20040618.orig/debian/postinst +++ asterisk-cvs-20040618/debian/postinst @@ -0,0 +1,44 @@ +#! /bin/sh + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# + +case "$1" in + configure) + + adduser --system --group --home /var/run/asterisk --gecos "Asterisk PBX daemon" asterisk + adduser asterisk audio + test -d /var/log/asterisk || mkdir /var/log/asterisk + test -d /var/log/asterisk/cdr-csv || mkdir /var/log/asterisk/cdr-csv + chown -R asterisk.asterisk /var/log/asterisk /var/run/asterisk \ + /var/spool/asterisk /var/lib/asterisk /etc/asterisk + chmod o-rwx /etc/asterisk/* + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- asterisk-cvs-20040618.orig/debian/postrm +++ asterisk-cvs-20040618/debian/postrm @@ -0,0 +1,10 @@ +#! /bin/sh -e + +if [ "$1" = purge ]; then + rm -fR /etc/asterisk + userdel -r asterisk 2>/dev/null || true + rm -fR /var/log/asterisk + +fi + +#DEBHELPER# --- asterisk-cvs-20040618.orig/debian/asterisk-cvs-dev.install +++ asterisk-cvs-20040618/debian/asterisk-cvs-dev.install @@ -0,0 +1 @@ +usr/include/asterisk --- asterisk-cvs-20040618.orig/debian/copyright +++ asterisk-cvs-20040618/debian/copyright @@ -0,0 +1,102 @@ +This package was debianized by Mark Purcell + +It was downloaded from http://www.asterisk.org + +Upstream Authors: Mark Spencer + +Copyright: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +Additional permission is granted to link Asterisk against the following +packages: + + * OpenH323 + * OpenSSL + * Packages and modules whose authors have secured written +authorization from Linux Support Services, Inc. to be linked to Asterisk. + +Asterisk modules *are* linked with Asterisk at runtime, so all Asterisk +modules also fall under the terms granted herein. + + Asterisk is distributed under GNU General Public License. The GPL also + must apply to all loadable modules as well, except as defined below. + + Linux Support Services, Inc. retains copyright to all of the core + Asterisk system, and therefore can grant, at its sole discression, the + ability for companies, individuals, or organizations to create proprietary + or Open Source (but non-GPL'd) modules which may be dynamically linked at + runtime with the portions of Asterisk which fall under our copyright + umbrella, or are distributed under more flexible licenses than GPL. At + this time (5/21/2001) the only component of Asterisk which is covered + under GPL and not under our Copyright is the Xing MP3 decoder. + + If you wish to use our code in other GPL programs, don't worry -- there + is no requirement that you provide the same exemption in your GPL'd + products (although if you've written a module for Asterisk we would + strongly encourage you to make the same excemption that we do). + + If you have any questions, whatsoever, regarding our licensing policy, + please contact us. + +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL. + +Other source code in Asterisk: + + GSM source: + + Copyright 1992, 1993, 1994 by Jutta Degener and Carsten Bormann, + Technische Universitaet Berlin + + Any use of this software is permitted provided that this notice is not + removed and that neither the authors nor the Technische Universitaet Berlin + are deemed to have made any representations as to the suitability of this + software for any purpose nor are held responsible for any defects of + this software. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. + + As a matter of courtesy, the authors request to be informed about uses + this software has found, about bugs in this software, and about any + improvements that may be of general interest. + + Berlin, 28.11.1994 + Jutta Degener + Carsten Bormann + + ADPCM source: + + Copyright 1992 by Stichting Mathematisch Centrum, Amsterdam, The + Netherlands. + + All Rights Reserved + + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, + provided that the above copyright notice appear in all copies and that + both that copyright notice and this permission notice appear in + supporting documentation, and that the names of Stichting Mathematisch + Centrum or CWI not be used in advertising or publicity pertaining to + distribution of the software without specific, written prior permission. + + STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO + THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND + FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE + FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT + OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --- asterisk-cvs-20040618.orig/debian/examples +++ asterisk-cvs-20040618/debian/examples @@ -0,0 +1,4 @@ +configs/* +sample.call +agi/agi-test.agi +*.cgi --- asterisk-cvs-20040618.orig/debian/asterisk-cvs.logrotate +++ asterisk-cvs-20040618/debian/asterisk-cvs.logrotate @@ -0,0 +1,9 @@ +/var/log/asterisk/cdr-cvs/Master.csv /var/log/asterisk/debug /var/log/asterisk/event_log /var/log/asterisk/messages { + weekly + missingok + rotate 4 + sharedscripts + postrotate + /usr/sbin/invoke-rc.d asterisk restart + endscript +} --- asterisk-cvs-20040618.orig/debian/asterisk.conf +++ asterisk-cvs-20040618/debian/asterisk.conf @@ -0,0 +1,8 @@ +[global] +astetcdir => /etc/asterisk +astmoddir => /usr/lib/asterisk/modules +astvarlibdir => /var/lib/asterisk +astagidir => /usr/share/asterisk/agi-bin +astspooldir => /var/spool/asterisk +astrundir => /var/run/asterisk +astlogdir => /var/log/asterisk --- asterisk-cvs-20040618.orig/debian/asterisk-dev-doc.docs +++ asterisk-cvs-20040618/debian/asterisk-dev-doc.docs @@ -0,0 +1,8 @@ +BUGS +README +doc +CREDITS +HARDWARE +SECURITY +images/*.gif +images/*.jpg --- asterisk-cvs-20040618.orig/asterisk.h +++ asterisk-cvs-20040618/asterisk.h @@ -24,6 +24,7 @@ #define AST_MODULE_DIR ASTMODDIR #define AST_SPOOL_DIR ASTSPOOLDIR #define AST_VAR_DIR ASTVARLIBDIR +#define AST_SHARE_DIR ASTVARLIBDIR #define AST_LOG_DIR ASTLOGDIR #define AST_AGI_DIR ASTAGIDIR #define AST_KEY_DIR ASTVARLIBDIR "/keys" @@ -31,7 +32,7 @@ #define AST_CONFIG_FILE ASTCONFPATH -#define AST_SOUNDS AST_VAR_DIR "/sounds" +#define AST_SOUNDS AST_SHARE_DIR "/sounds" #define AST_IMAGES AST_VAR_DIR "/images" /* Provided by module.c */