Script to automate SAIL 3.1.x install - no error checking.....
Make a script say called sail31onsme8 with the following contents:
#! /bin/bash
#
echo "Installing SARK / SAIL on New SME Server 8.0"
echo
/sbin/e-smith/db yum_repositories set asterisk-current repository \
Name 'CentOS-$releasever - Asterisk - Current' \
BaseURL 'http://packages.asterisk.org/centos/$releasever/current/$basearch/' \
EnableGroups no \
GPGCheck no \
GPGKey http://packages.asterisk.org/RPM-GPG-KEY-Digium \
Visible no \
Exclude freetype,htop,iptraf,rsync,syslinux \
status disabled
/sbin/e-smith/db yum_repositories set digium-current repository \
Name 'CentOS-$releasever - Digium - Current' \
BaseURL 'http://packages.digium.com/centos/$releasever/current/$basearch/' \
EnableGroups no \
GPGCheck no \
GPGKey http://packages.digium.com/RPM-GPG-KEY-Digium \
Visible no \
Exclude freetype,htop,iptraf,rsync,syslinux \
status disabled
signal-event yum-modify
useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk
yum install asterisk14 asterisk14-configs asterisk14-voicemail dahdi-linux dahdi-tools asterisk-sounds-extra-en-ulaw asterisk-sounds-moh-opsound-ulaw --enablerepo=asterisk-current
yum install asterisk14-addons-mysql --enablerepo=asterisk-current
rpm -Uvh http://sarkpbx.com/sail/sail-3.x-development/perl-File-ReadBackwards-1.04-1.2.el4.rf.noarch.rpm
wget http://sarkpbx.com/sail/sail-3.x-development/perl-DBD-SQLite-1.14-1.el5.rf.i386.rpm
yum localinstall perl-DBD-SQLite-1.14-1.el5.rf.i386.rpm
rm -f perl-DBD-SQLite-1.14-1.el5.rf.i386.rpm
wget http://sarkpbx.com/sail/sail-3.x-development/sail-3.1.0-84.noarch.rpm
yum localinstall sail-3.1.0-84.noarch.rpm --enablerepo=base
rm -f sail-3.1.0-84.noarch.rpm
wget http://sarkpbx.com/sail/sail-3.x-development/smesailenv-1.0.0-18.noarch.rpm
yum localinstall smesailenv-1.0.0-18.noarch.rpm
rm -f smesailenv-1.0.0-18.noarch.rpm
echo
echo "SARK / SAIL 3.1.0.84 has been installed complete"
echo "Browse to https://smeserver_IP/sail"
echo "UserName: admin"
echo "Password: Same as SME Server admin password"
echo "Commit from the Global Settings panel."
echo
Upload to the /root folder of the SMEServer 8 installation and give it execute rights.
Execute it from the SSH console.
cd /root
chmod 700 sail31onsme8
./sail31onsme8
Done!