NOTE: There is a newer version of this script here:http://forums.contribs.org/index.php?topic=24285.0[ANNOUNCE] Update script for 6.0.1-01 for testing
By Greg Swallow (greg_at_skynetbc.com)Just thought I would share this. It's just two sh scripts I made to download and install some of the contribs and howto's others have made available. Nothing is new except for the bit that updates Apache to 1.3.31-5 with the 'norlug' rpm. That was my only add-on, everything else is others work. Thanks everyone!
I don't have too much spare time to get involved with development of the SME Server, but I think something like this would be good so that beta-testers of the next version could install all of the proposed contributions on top of a clean 6.0.1-01 install. Then everyone will be testing exactly the same setup. Someone just needs to decide what is going to be updated/included in the next version...
So here are the two scripts. I'd suggest running the downloads.sh script twice. The second time it should only take half a second as it won't download the files twice. If you see any file not found errors, then maybe figure out another place to download that file from, as
***you really don't want to run the updates script if you are missing any files***. Once you have all the files you can run the update script. Everything installs cleanly for me, but I haven't tested this much.
What's included: (Again, thanks to everyone who contributed to these -
Updated Sept. 22 - links to sources added)
PHP 4.3.8
http://forums.contribs.org/index.php?topic=23270.0http://forums.contribs.org/index.php?topic=23301.0phpmyadmin-2.6.0-7
http://forums.contribs.org/index.php?topic=23242.msg92492#msg92492Zlib 1.2.1.1-4
Proftpd 1.2.10-es1
fetchmail 6.2.5-1
rsync 2.6.2-1
gnupg 1.2.4-0_19
openssh 3.9p1-1es1
openssl 0.96m-1es1
http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/imp 3.2.5-01dm (and associated updates)
http://no.longer.valid/mylinks/singlelink.php?cid=117&lid=416apache 1.3.31-5 (required compat-glibc, db4, python2.3)
mod_ssl 2.8.19-1
(no howto/contrib available - not extensivly tested)
mysql 4.0.21-0
http://forums.contribs.org/index.php?topic=23920.0spamfilter add-on panel
http://sme.swerts-knudsen.dk/howtos/howto_29.htmdouble-bounce deletion howto
http://sme.swerts-knudsen.dk/howtos/howto_27.htmDownloads.sh (
Updated Sept 22. NOTE - the wget commands should each be on one line - be careful when copying and pasting)
#!/bin/sh
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/SpamFilter/spamfilter_install.sh
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/PHP/php4.3.8-upgrade.sh
mkdir updates
cd updates
wget -nc --tries=0 http://mirror.contribs.org/smeserver/contribs/nightspirit/e-smith-phpmyadmin/e-smith-phpmyadmin-2.6.0-7.noarch.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/zlib-1.2.1.1-4.i386.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/proftpd-1.2.10-es1.i386.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/fetchmail-6.2.5-1.i386.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/Rsync/rsync-2.6.2-1.noarch.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/GnuPG/gnupg-1.2.4-0_19.rh7.3.at.i386.rpm
cd ..
mkdir ssh
cd ssh
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/OpenSSH/openssh-3.9p1-1es1.i386.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/OpenSSH/openssh-clients-3.9p1-1es1.i386.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/OpenSSH/openssh-server-3.9p1-1es1.i386.rpm
cd ..
mkdir ssl
cd ssl
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/OpenSSL/openssl-0.9.6m-1es1.i386.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/OpenSSL/openssl-devel-0.9.6m-1es1.i386.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/OpenSSL/openssl-perl-0.9.6m-1es1.i386.rpm
cd ..
mkdir webmail
cd webmail
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/e-smith-imp-1.10.0-04dm.noarch.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/e-smith-kronolith-0.8.1-02.noarch.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/e-smith-mnemo-0.8.0-04.noarch.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/e-smith-nag-0.8.0-05.noarch.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/horde-2.2.5-1dm.noarch.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/imp-3.2.5-01dm.noarch.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/kronolith-1.1.2-1es.noarch.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/mnemo-1.1.2-1es.noarch.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/nag-1.1.1-1es.noarch.rpm
wget -nc --tries=0 http://sme.swerts-knudsen.dk/downloads/Updates/6.0.1/WebMail/turba-1.2.2-1es00.noarch.rpm
cd ..
mkdir apache
cd apache
wget -nc --tries=0 ftp://mirrors.kernel.org/redhat/redhat/linux/7.3/en/os/i386/RedHat/RPMS/compat-glibc-6.2-2.1.3.2.i386.rpm
wget -nc --tries=0 ftp://ftp.pbone.net/mirror/norlug.org/redhat-7.3/RPMS/db4-4.0.14-4.norlug.i386.rpm
wget -nc --tries=0 ftp://ftp.pbone.net/mirror/norlug.org/redhat-7.3/RPMS/python2.3-2.3.4-2.norlug.i386.rpm
wget -nc --tries=0 ftp://ftp.pbone.net/mirror/norlug.org/redhat-7.3/RPMS/mod_ssl-2.8.19-1.norlug.i386.rpm
wget -nc --tries=0 ftp://ftp.pbone.net/mirror/norlug.org/redhat-7.3/RPMS/apache-1.3.31-5.norlug.i386.rpm
wget -nc --tries=0 ftp://ftp.pbone.net/mirror/norlug.org/redhat-7.3/RPMS/apache-devel-1.3.31-5.norlug.i386.rpm
wget -nc --tries=0 ftp://ftp.pbone.net/mirror/norlug.org/redhat-7.3/RPMS/apache-manual-1.3.31-5.norlug.i386.rpm
cd ..
mkdir mysql
cd mysql
wget -nc --tries=0 http://mysql.mirror.cygnal.ca/Downloads/MySQL-4.0/MySQL-server-4.0.21-0.i386.rpm
wget -nc --tries=0 http://mysql.mirror.cygnal.ca/Downloads/MySQL-4.0/MySQL-client-4.0.21-0.i386.rpm
wget -nc --tries=0 http://mysql.mirror.cygnal.ca/Downloads/MySQL-4.0/MySQL-devel-4.0.21-0.i386.rpm
wget -nc --tries=0 http://mysql.mirrored.ca/Downloads/MySQL-4.0/MySQL-shared-compat-4.0.21-0.i386.rpm
cd ..
Updates.sh
#!/bin/sh
sh spamfilter_install.sh
mkdir -p /etc/e-smith/templates-custom/var/qmail/alias/
touch /etc/e-smith/templates-custom/var/qmail/alias/.qmail-oblivion
echo "#" > /etc/e-smith/templates-custom/var/qmail/alias/.qmail-oblivion
mkdir -p /etc/e-smith/templates-custom/var/qmail/control/
touch /etc/e-smith/templates-custom/var/qmail/control/doublebounceto
echo "oblivion" > /etc/e-smith/templates-custom/var/qmail/control/doublebounceto
/sbin/e-smith/expand-template /var/qmail/alias/.qmail-oblivion
/sbin/e-smith/expand-template /var/qmail/control/doublebounceto
service qmail restart
sh php4.3.8-upgrade.sh
cd ssh
rpm -Uvh *.rpm
cd ..
cd ssl
rpm -Uvh *.rpm
cd ..
cd webmail
rpm -Uvh e-smith-imp-1.10.0-04dm.noarch.rpm
rpm -Uvh imp-3.2.5-01dm.noarch.rpm
rpm -Uvh horde-2.2.5-1dm.noarch.rpm
rpm -Uvh turba-1.2.2-1es00.noarch.rpm
rpm -Uvh kronolith-1.1.2-1es.noarch.rpm
rpm -Uvh mnemo-1.1.2-1es.noarch.rpm
rpm -Uvh nag-1.1.1-1es.noarch.rpm
rpm -Uvh e-smith-kronolith-0.8.1-02.noarch.rpm
rpm -Uvh e-smith-mnemo-0.8.0-04.noarch.rpm
rpm -Uvh e-smith-nag-0.8.0-05.noarch.rpm
/sbin/e-smith/signal-event post-upgrade
cd ..
cd apache
rpm -Uvh compat-glibc-6.2-2.1.3.2.i386.rpm
rpm -Uvh db4-4.0.14-4.norlug.i386.rpm
rpm -Uvh python2.3-2.3.4-2.norlug.i386.rpm
rpm -Uvh apache-*.rpm
rpm -Uvh mod_ssl-2.8.19-1.norlug.i386.rpm
cd ..
cd mysql
service mysqld stop
rpm -e --nodeps mysql mysql-client mysql-server
rpm -e mysql-devel
rpm -e mysqlclient9
rpm -Uvh MySQL-*.rpm
chkconfig --levels 2345 mysql on
mv /etc/rc.d/init.d/mysql /etc/rc.d/init.d/mysqld
rm /etc/rc.d/rc7.d/S90mysqld
ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc7.d/S90mysqld
/sbin/e-smith/config setprop mysqld LocalNetworkingOnly no
/sbin/e-smith/expand-template /root/.my.cnf
ln -s /usr/sbin/mysqld /usr/libexec/
service mysqld restart
/usr/bin/mysql_fix_privilege_tables
cd ..
cd updates
rpm -Uvh *.rpm
cd ..
Probably a good idea to do a reboot after that. I think one of the contribs called for that, but I didn't put it in the script.