John Rudd wrote:
Dennis Peterson wrote:
Bowie,
The obvious observation that while this might work for you it's not a
general solution, so now everyone needs to create a script.
F'chrissake... It is trivial to do this. Less than 10 minutes, start
to stop. I wrote the script I use 3 years and it took just minutes. I
have
10 mail servers in 5 timezones and three continents. They are all updated
within 30 minutes of a new drop. This is not rocket science - in fact
this
is very simple stuff. If you are challenged by *any* of this you are
in the
wrong business.
Care to share your script?
(and, hopefully its written in a fashion that is portable, instead of
being linux specific ... or worse yet, specific to a given linux distro)
I don't care for any flavor of Linux. The only Linux system I manage has
Postfix installed and I don't care for it, either. The script is simply
what has been suggested already.
I run Solaris and korn shell but bourne shell works the same:
Download the new release to a download directory
Burst the tar.gz file in a working directory, gzip the tar file and put
it into a permanent central repository.
run buildit.sh (see below)
cd to the build directory of the currently running version, run svcadm
disable clamd, run make uninstall, cd - and run make install. While
that's happening I examine the new config files to see what changes are
made since the last version. I tweak them to suit my needs and put them
in RCS and the working directory. I then run svcadm enable clamd, and
then perform some tests on example viruses I have for the purpose.
On the next cycle, within the hour, cfengine propagates the binaries to
all the managed systems and restarts them.
The buildit.sh script is just a short script that consistently
configures the build between versions and then runs make. I use user
smmsp because that is also the user that my milter runs as it it
simplifies ownerships. And it means I don't have to install a new account.
buildit.sh:
#!/bin/sh
./configure \
--enable-milter \
--enable-bigstack \
--disable-clamuko \
--with-user=smmsp \
--with-group=smmsp \
--without-curl \
--without-clamav-milter |tee config.txt
make |tee build.log
# end
Your requirements will likely vary and you probably don't have cfengine
installed. I'd hate to be without it.
dp
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html