Re: exim plug seen on the redhat list ... any RPM volunteer …

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Nigel Metheringham
Dátum:  
Címzett: Michelle Dick
CC: exim-users
Tárgy: Re: exim plug seen on the redhat list ... any RPM volunteer ?
} I would be interested in seeing a startup script. Not because I can't
} do one myself -- I did -- but because while I can hack most things to
} make them work the way I want (you should see what I've done to poor
} innocent SmartList), I'm new to running a unix system and not
} knowledgable about standard ways of doing things.

OK, here is the startup script I use as a patch file, along with the
configs I put in on Linux systems (I did say I relaxed permissions), and
the rpm spec file.
BTW you can ignore the "reconfig" option on the script - on some of our
stuff a load of scripts support a reconfig option which causes a
reconfiguration/restart of the tool.

Feel free to hack on them. Please don't put them out with my name on
(sort of reverse copyright) since I don't want to get a bundle of
questions on them!

    Nigel.


Description: Exim - Experimental Internet Mailer - main package
Summary: Exim - Experimental Internet Mailer - main package
Name: exim
Version: 1.58
Release: 1
Copyright: GPL
Group: Networking/Utilities
Source: ftp://ftp.cus.cam.ac.uk/pub/software/programs/exim/exim-1.58.tar.gz
Patch0: exim-0.56-config.patch
Patch1: exim-0.56-init.patch
#Patch2: ftp://ftp.cus.cam.ac.uk/pub/software/programs/exim/exim-0.56.patch
es

%package monitor
Description: Exim - Experimental Internet Mailer - X mail monitor
Summary: Exim - Experimental Internet Mailer - X mail monitor
Group: Networking/Utilities

%package config
Description: Exim - Experimental Internet Mailer - sample config file
Summary: Exim - Experimental Internet Mailer - sample config file
Group: Networking/Utilities

%prep
%setup
mkdir Local
%patch0 -p1
%patch1
#%patch2 -p1

%build
make # || make || make

strip build-Linux-i486-linux/exim
strip build-Linux-i486-linux/exim_dbmbuild
strip build-Linux-i486-linux/exim_dumpdb
strip build-Linux-i486-linux/exim_fixdb
strip build-Linux-i486-linux/exim_tidydb

%install
if [ ! -d /etc/exim ]
then
    mkdir /etc/exim
    chmod 755 /etc/exim
fi
make install
install exim.init /etc/rc.d/init.d/exim.init
ln -sf ../init.d/exim.init /etc/rc.d/rc0.d/K30exim
ln -sf ../init.d/exim.init /etc/rc.d/rc1.d/K30exim
ln -sf ../init.d/exim.init /etc/rc.d/rc6.d/K30exim
ln -sf ../init.d/exim.init /etc/rc.d/rc2.d/S60exim
ln -sf ../init.d/exim.init /etc/rc.d/rc3.d/S80exim
ln -sf ../init.d/exim.init /etc/rc.d/rc5.d/S80exim


rm -f /usr/sbin/exi*.O
ln -sf /usr/sbin/exim /usr/sbin/sendmail
ln -sf /usr/sbin/exim /usr/lib/sendmail
ln -sf /usr/sbin/exim /usr/bin/mailq
# mv /etc/exim/config /etc/exim/config.sample

%files
%dir /etc/exim
/usr/sbin/exim
/usr/sbin/exigrep
/usr/sbin/exinext
/usr/sbin/eximstats
/usr/sbin/exim_dumpdb
/usr/sbin/exim_fixdb
/usr/sbin/exim_tidydb
/usr/sbin/exiwhat
/usr/sbin/exim_dbmbuild
/usr/sbin/exicyclog
/usr/sbin/sendmail
/usr/lib/sendmail
/usr/bin/mailq
/etc/rc.d/rc0.d/K30exim
/etc/rc.d/rc1.d/K30exim
/etc/rc.d/rc6.d/K30exim
/etc/rc.d/rc2.d/S60exim
/etc/rc.d/rc3.d/S80exim
/etc/rc.d/rc5.d/S80exim
/etc/rc.d/init.d/exim.init

%files monitor
/usr/sbin/eximon
/usr/sbin/eximon.bin

%files config
%config /etc/exim/config
[ Nigel.Metheringham@??? - Unix Applications Engineer ]
[ *Views expressed here are personal and not supported by PLAnet* ]
[ PLAnet Online : The White House          Tel : +44 113 251 6012 ]
[ Melbourne Street, Leeds LS2 7PS UK.      Fax : +44 113 2345656  ]