Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
steve committed Oct 8, 2008
0 parents commit 7e6c48d
Show file tree
Hide file tree
Showing 1,519 changed files with 763,975 additions and 0 deletions.
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (C) 2005 Stephen A. Rodgers

This program 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; either version 2
of the License, or (at your option) any later version.

This program 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 program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

<[email protected]>

Stephen A. Rodgers
4341 Miriam Pl.
La Mesa CA 91941 USA

138 changes: 138 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
# Makefile for Asterisk, Zaptel and Libpri

-include /etc/sysinfo #include if it exists, else use defaults

ASTSRC_VERS:=1.0.6
KVERS?=$(shell uname -r)
PROCESSOR?=i586

.kernel-dev-installed:
-umount /mnt/cf
mount /mnt/cf
(cd /lib/modules/$(KVERS)/build; tar xvzf /mnt/cf/kdev.tgz)
umount /mnt/cf
rm -f /usr/include/linux
ln -s /lib/modules/$(KVERS)/build/include/linux /usr/include/linux
touch .kernel-dev-installed

.zaptel-built: .kernel-dev-installed
(cd zaptel; ./configure --build=$(PROCESSOR)-pc-linux)
(MAKELEVEL=0; make -C zaptel); # Why does MAKELEVEL need to be 0 for zaptel to build correctly?
touch .zaptel-built

.zaptel-installed: .zaptel-built
(MAKELEVEL=0; make -C zaptel install)
#make -C zaptel clean
touch .zaptel-installed

.libpri-built:
make -C libpri
touch .libpri-built

.libpri-installed: .libpri-built
make -C libpri install
#make -C libpri clean
touch .libpri-installed

build-only: .zaptel-installed .libpri-installed
(cd asterisk; ./configure CXX=gcc --build=$(PROCESSOR)-pc-linux; make menuconfig)
make -C asterisk

.asterisk-installed:
-rm -rf /usr/lib/asterisk/modules/*
(cd asterisk; ./configure CXX=gcc --build=$(PROCESSOR)-pc-linux)
make -C asterisk install
#make -C asterisk clean
touch .asterisk-installed

.rpt-sounds-installed:
mkdir -p /var/lib/asterisk/sounds/rpt
cp -a sounds/* /var/lib/asterisk/sounds

.id_file:
-mkdir -p /etc/asterisk
-cp id.gsm /etc/asterisk
touch .id_file

.PHONY: help archive svsrc

help:
@echo "make upgrade - build and install sources only"
@echo "make install_pciradio - build and install sources plus pciradio config files"
@echo "make install_usbradio - build and install sources plus usbradio config files"
@echo "make install_wcte11xp - build and install sources plus single span wcte11xp config files"
@echo "make install_wct1xxp - build and install sources plus single span t100p config files"
@echo "make install_wctdm - build and install sources plus tdm400 config files"
@echo "make svsrc - save the sources on the CF as astsrc.tgz"
@echo "make build_only - build only, do not install"
@echo "make clean - delete all object files, intermediate files, and executables"

upgrade: .kernel-dev-installed .zaptel-installed .libpri-installed .asterisk-installed .rpt-sounds-installed
-umount /mnt/cf
svastbin
mount /mnt/cf
mv -f /root/astbin.tgz /mnt/cf
umount /mnt/cf

install_pciradio: .id_file upgrade
-@mkdir -p /etc/asterisk
-@cp configs/* /etc/asterisk
-@cp configs/pciradio/* /etc/asterisk
-@mv /etc/asterisk/zaptel.conf /etc
-@touch /etc/init.d/pciradio
-@svcfg

install_usbradio: .id_file upgrade
-@mkdir -p /etc/asterisk
-@cp configs/* /etc/asterisk
-@cp configs/usbradio/* /etc/asterisk
-@mv /etc/asterisk/zaptel.conf /etc
-@touch /etc/init.d/usbradio
-@svcfg

install_wcte11xp: .id_file upgrade
-@mkdir -p /etc/asterisk
-@cp configs/* /etc/asterisk
-@cp configs/wct1xxp/* /etc/asterisk
-@mv /etc/asterisk/zaptel.conf /etc
-@touch /etc/init.d/wcte11xp
-@svcfg

install_wct1xxp: .id_file upgrade
-@mkdir -p /etc/asterisk
-@cp configs/* /etc/asterisk
-@cp configs/wct1xxp/* /etc/asterisk
-@mv /etc/asterisk/zaptel.conf /etc
-@touch /etc/init.d/wct1xxp
-@svcfg

install_wctdm: .id_file upgrade
-@mkdir -p /etc/asterisk
-@cp configs/* /etc/asterisk
-@cp configs/tdm400p/* /etc/asterisk
-@mv /etc/asterisk/zaptel.conf /etc
-@touch /etc/init.d/wctdm

clean: .kernel-dev-installed
-rm .zaptel-installed \
.libpri-installed .asterisk-installed \
.rpt-sounds-installed .installed .zaptel-built \
.libpri-built .asterisk-built .id_file
make -C libpri clean
make -C asterisk clean
(MAKELEVEL=0; make -C zaptel clean)

release:
tar cvzf ../astsrc-vers-$(ASTSRC_VERS).tar.gz --exclude='.svn' allstar asterisk libpri zaptel sounds configs Makefile id.gsm README LICENSE
-@rm ../files.tar.gz
(cd ..; ln -s astsrc-vers-$(ASTSRC_VERS).tar.gz files.tar.gz)
(cd ..; sha256sum files.tar.gz | cut -d ' ' -f 1 >files.tar.gz.sha256sum)



svsrc:
-umount /mnt/cf
mount /mnt/cf
tar cvfz /mnt/cf/astsrc.tgz *
sync
umount /mnt/cf
55 changes: 55 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
This is the Asterisk source package for ACID and LIMEY LINUX

asterisk-1.4.23pre
libpri-1.4.7
zaptel 1.4,12,1

This a patched version of Asterisk to run with uClibc on an embedded mini-itx system and on an ACID automatic install disk.

ACID BUILD INSTRUCTIONS
----------------------

The build is automatically handled by the astupd.sh script.


LIMEY LINUX BUILD INSTRUCTIONS
-----------------------------

First, unpack this archive in /usr/src on the target system.

If you are doing a new install, then use one of the following targets:

make install_pciradio

or

make install_usbradio


Choose the correct target for your hardware configuration. install_pciradio
is for users with quad radio PCI cards, and install_usbradio is for users with
a modified USB sound FOB, or commercially available URI.

When the build completes, run the savecfg script on the target to save the
Asterisk config files in /mnt/cf/syscfg.tgz so that they are loaded every
time the system boots up.

If you are doing an upgrade on a target already configured, then use this
target:

make upgrade

DETAILS
-------

The supplied Makefile will build zaptel, libpri and asterisk, then install them
in the correct directories. Once they are installed, then the Makefile runs the
svastbin script to generate the astbin.tgz file, and copies it to /mnt/cf.

With a copy astbin.tgz the system will automatically unpack the asterisk
binaries each time it is booted, load the correct drivers, and then start
Asterisk.




31 changes: 31 additions & 0 deletions allstar/rc.updatenodelist
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#! /bin/sh

TOPDOMAIN=allstarlink.org
SUBDOMAINS="nodes1"
FILEPATH=/var/lib/asterisk
WGET=`which wget`

while [ 1 ]
do
for i in $SUBDOMAINS
do
res=0
while [ $res -eq 0 ]
do
$WGET -q -O $FILEPATH/rpt_extnodes-temp http://$i.$TOPDOMAIN/cgi-bin/nodes.pl
res=$?
if [ $res -eq 0 ]
then
/bin/chmod 700 $FILEPATH/rpt_extnodes-temp
/bin/mv -f $FILEPATH/rpt_extnodes-temp $FILEPATH/rpt_extnodes
#echo "Retrieved node list from $i.$TOPDOMAIN"
#date
sleep 600
else
#echo "Problem retrieving node list from $i.$TOPDOMAIN, trying another server";
sleep 30
fi
done
done
done

22 changes: 22 additions & 0 deletions asterisk/BUGS
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Asterisk Bug Tracking Information
=================================

To learn about and report Asterisk bugs, please visit
the official Asterisk Bug Tracker at:

http://bugs.digium.com

For more information on using the bug tracker, or to
learn how you can contribute by acting as a bug marshal
please see:

http://www.asterisk.org/developers/bug-guidelines

If you would like to submit a feature request, please
resist the temptation to post it to the bug tracker.
Feature requests should be posted to the asterisk-dev
mailing list, located at:

http://lists.digium.com

Thank you!
Loading

0 comments on commit 7e6c48d

Please sign in to comment.