Changes home : internet : mail : toaster : Changes : Mail::Toaster build test procedure 3.x Changes

The Mail::Toaster build test

Before turning a new version of the Mail::Toaster loose on the world, it is run through a battery of tests. The first test is simply making sure it builds properly on a clean system. This document details how I perform that test. This is not a suggested build method. I use shortcuts (such as the perl and mysql packages) that may not work in your environment. It is here so that you may learn from it.

Create a new Jail

  • toaster_setup.pl -s jailadd
  • sh /etc/rc
  • pkg_add -r http://www.tnpi.biz/internet/mail/toaster/src/perl-5.8.5.tbz

Install Mail::Toaster

  • fetch http://www.tnpi.biz/internet/mail/toaster/src/Mail-Toaster-4.xx.tar.gz
  • tar -xzf Mail-Toaster-4.xx.tar.gz
  • cd Mail-Toaster-4.xx/
  • rehash
  • perl Makefile.PL
  • make install
  • make newconf
  • make cgi
  • cp contrib/toaster-watcher.conf-testing /usr/local/etc/toaster-watcher.conf

Edit toaster-watcher.conf

  • vi /usr/local/etc/toaster-watcher.conf

Modify the hostname. The testing config is basically the same as the toaster-watcher.conf but with all nearly all options enabled to make sure they'll all build.

Build the programs

  • rehash
  • toaster_setup.pl -s pre
  • toaster_setup.pl -s all

For the sake of brevity, much compiling and installing snipped. You'll have to answer a few questions, and wait a while. This part takes about 15 minutes on a dual 3GHz Xeon w/1GB RAM and a u320 SCSI disk.

Test

  • toaster_setup.pl -s test

Last modified on 4/5/05.