ClamAV
am 09.04.2007 07:30:34 von lwirving
Can some one help me with installing the clamAV module
It is on the Cpan site but when I run ppm install file-scan-clamav it
does not find it
I also tried ppm install clamav with the same result
wayne
Re: ClamAV
am 09.04.2007 08:11:17 von Sisyphus
wrote in message
news:1176096634.829445.235700@n76g2000hsh.googlegroups.com.. .
> Can some one help me with installing the clamAV module
>
> It is on the Cpan site but when I run ppm install file-scan-clamav it
> does not find it
> I also tried ppm install clamav with the same result
>
I don't think there's any ppm distro for File-Scan-ClamAV.
The module has been written under the assumption that the local machine has
a "clamd'" server, and the operating system is a Unix-type os.
Which operating system are you running ? If you're running Windows there'll
be some hacking of the module's source required - though it might run as is
on Windows under Cygwin (asssuming the "clamd" server is installed).
Do you have the "clamd" server installed ? That would be the first thing to
take care of. (Even if a ppm existed, it wouldn't be functional without a
clamd server.)
Cheers,
Rob
Re: ClamAV
am 09.04.2007 14:09:10 von lwirving
On Apr 9, 4:11 pm, "Sisyphus" wrote:
> wrote in message
>
> news:1176096634.829445.235700@n76g2000hsh.googlegroups.com.. .
>
> > Can some one help me with installing the clamAV module
>
> > It is on the Cpan site but when I run ppm install file-scan-clamav it
> > does not find it
> > I also tried ppm install clamav with the same result
>
> I don't think there's any ppm distro for File-Scan-ClamAV.
>
> The module has been written under the assumption that the local machine has
> a "clamd'" server, and the operating system is a Unix-type os.
>
> Which operating system are you running ? If you're running Windows there'll
> be some hacking of the module's source required - though it might run as is
> on Windows under Cygwin (asssuming the "clamd" server is installed).
>
> Do you have the "clamd" server installed ? That would be the first thing to
> take care of. (Even if a ppm existed, it wouldn't be functional without a
> clamd server.)
>
> Cheers,
> Rob
Yes I have the clamd server installed on windows 2003 and have been
using it with Merak mailserver successfully
it is the native win 32 port that does not use cygwin though
I saw that it could run under assp (anti SPAM SMTP Proxy)- and figure
it would be better to reject the mail there rather than passing it
through to Merak mailserver
The native windows port of clamd has to be installed in the c:\program
files\clamav folder according to the install instructions
I tried to install into the c:\clamav folder but the runclamd service
would not work in that configuration even after I manually edited the
path to the runclamd.exe file in the registry
Thanks for your help
Wayne
Re: ClamAV
am 10.04.2007 02:39:58 von Sisyphus
wrote in message
news:1176120550.773913.262560@d57g2000hsg.googlegroups.com.. .
..
..
>
> Yes I have the clamd server installed on windows 2003 and have been
> using it with Merak mailserver successfully
..
..
> The native windows port of clamd has to be installed in the c:\program
> files\clamav folder
Ok - first thing to do is to set the CLAMD_PATH environment variable to
c:\program files\clamav, then see how it goes. (I think you could still
access that server using Cygwin if you wanted.)
The module's code doesn't seem to be all that difficult to understand, and
the documentation is clear - success probably depends upon how
desperate/committed you are :-)
Cheers,
Rob
Re: ClamAV
am 10.04.2007 16:31:19 von lwirving
On Apr 10, 10:39 am, "Sisyphus" wrote:
> wrote in message
>
> news:1176120550.773913.262560@d57g2000hsg.googlegroups.com.. .
> .
> .
>
> > Yes I have the clamd server installed on windows 2003 and have been
> > using it with Merak mailserver successfully
>
> .
> .
>
> > The native windows port of clamd has to be installed in the c:\program
> > files\clamav folder
>
> Ok - first thing to do is to set the CLAMD_PATH environment variable to
> c:\program files\clamav, then see how it goes. (I think you could still
> access that server using Cygwin if you wanted.)
>
> The module's code doesn't seem to be all that difficult to understand, and
> the documentation is clear - success probably depends upon how
> desperate/committed you are :-)
>
> Cheers,
> Rob
I have a tiny little programing experience but not with PERL
I tried changing the makefile.pl
use ExtUtils::MakeMaker;
$ENV{CLAMD_PATH} ||= -e "/usr/local/sbin/clamd" ?
"/usr/local/sbin" : -e "/usr/sbin/clamd" ?
"/usr/sbin" : -e "/usr/local/bin/clamd" ?
"/usr/local/bin" : -e "C:\\program files\\clamav" ?
"c:\\program files\\clamav" : "$ENV{HOME}\\bin";
my $help = `$ENV{CLAMD_PATH}/clamd --help 2>&1` || '';
if ($help !~ /clam/i) {
die "Cannot find clamd in $ENV{CLAMD_PATH} (or a number of other
places)\n - are you sure clamav in installed?\n";
}
WriteMakefile(
'NAME' => 'File::Scan::ClamAV',
'VERSION_FROM' => 'lib/File/Scan/ClamAV.pm',
'PREREQ_PM' => {},
'ABSTRACT' => 'A simple interface to the Clam Anti-Virus system',
'AUTHOR' => 'Colin Faber '
);
sub MY::test {
package MY;
my $self = shift;
my $make = $self->SUPER::test();
$make =~ s/PERL_DL_NONLAZY=1/PERL_DL_NONLAZY=1 CLAMD_PATH=
$ENV{CLAMD_PATH}/g;
return $make;
}
I also tried -e "C:\program files\clamav" ?
"c:\program files\clamav" : "$ENV{HOME}\bin";
and -e "C:/program files/clamav" ?
"c:/program files/clamav" : "$ENV{HOME}/bin";
and -e "/program files/clamav" ?
"/program files/clamav" : "$ENV{HOME}/bin";
then i noticed the / bin
so I did this
use ExtUtils::MakeMaker;
$ENV{CLAMD_PATH} ||= -e "/usr/local/sbin/clamd" ?
"/usr/local/sbin" : -e "/usr/sbin/clamd" ?
"/usr/sbin" : -e "/usr/local/bin/clamd" ?
"/usr/local/bin" : -e "C:\\program files\\clamav" ?
"c:\\program files\\clamav" : "$ENV{HOME}\\bin";
my $help = `$ENV{CLAMD_PATH}\\clamd --help 2>&1` || '';
WriteMakefile(
'NAME' => 'File::Scan::ClamAV',
'VERSION_FROM' => 'c:\\clamav\\lib\\File\\Scan\\ClamAV.pm',
'PREREQ_PM' => {},
'ABSTRACT' => 'A simple interface to the Clam Anti-Virus system',
'AUTHOR' => 'Colin Faber '
);
sub MY::test {
package MY;
my $self = shift;
my $make = $self->SUPER::test();
$make =~ s/PERL_DL_NONLAZY=1/PERL_DL_NONLAZY=1 CLAMD_PATH=
$ENV{CLAMD_PATH}/g;
return $make;
}
and got this
C:\ClamAV>perl makefile.pl
Checking if your kit is complete...
Looks good
Writing Makefile for File::Scan::ClamAV
Does this mean I'm done or do I have to find the makefile (if so
where) and do something with it
Regards
Wayne
Re: ClamAV
am 10.04.2007 16:33:16 von lwirving
Found the makefile
do I need a compiler or something
Re: ClamAV
am 10.04.2007 17:26:58 von Sisyphus
wrote in message
news:1176215596.870275.236030@e65g2000hsc.googlegroups.com.. .
> Found the makefile
> do I need a compiler or something
>
No - it's pure perl, so you won't need a compiler (as there's nothing to be
compiled).
But you *will* need a 'make' program. If you're using a build of ActivePerl
that's >= 815 you can use 'dmake' (which can be downloaded from
http://search.cpan.org/dist/dmake/ ).
Then you'll need to run 'perl Makefile.PL', 'dmake test' and 'dmake
install'. But I expect a number of failures with 'dmake test'. For a start,
I'm not sure what Windows perl will make of:
1 while (waitpid($pid, &WNOHANG) != -1);
(which occurs in t/01ping.t).
If you don't want to install 'dmake' you could just copy ClamAV.pm to your
perl/site/lib/File/Scan directory (creating the directories as needed, and
honoring case-sensitivity) and then test by running the test scripts as
'perl t\01ping.t', etc.
I don't feel inclined to try to anticipate (and solve in advance) the
problems that you will encounter, but if you care to report the issues as
they arise, I will try to help. (It could be a tedious process ... ie you
post and wait for a day or so for my response; I post and wait a day or so
for your response .... :-)
Where does one obtain this clamd server for Windows ? I'm quite happy to
install it and see if I can get File::Scan::ClamAV working. That's probably
the best way for me to stay abreast of any problems that arise. (I, myself,
use ClamWin as my anti-virus program, but it doesn't include a file named
"clamd".)
Cheers,
Rob
Re: ClamAV
am 11.04.2007 06:59:55 von lwirving
On Apr 11, 1:26 am, "Sisyphus" wrote:
> wrote in message
>
> news:1176215596.870275.236030@e65g2000hsc.googlegroups.com.. .
>
> > Found the makefile
> > do I need a compiler or something
>
> No - it's pure perl, so you won't need a compiler (as there's nothing to be
> compiled).
>
> But you *will* need a 'make' program. If you're using a build of ActivePerl
> that's >= 815 you can use 'dmake' (which can be downloaded fromhttp://search.cpan.org/dist/dmake/).
>
> Then you'll need to run 'perl Makefile.PL', 'dmake test' and 'dmake
> install'. But I expect a number of failures with 'dmake test'. For a start,
> I'm not sure what Windows perl will make of:
>
> 1 while (waitpid($pid, &WNOHANG) != -1);
>
> (which occurs in t/01ping.t).
>
> If you don't want to install 'dmake' you could just copy ClamAV.pm to your
> perl/site/lib/File/Scan directory (creating the directories as needed, and
> honoring case-sensitivity) and then test by running the test scripts as
> 'perl t\01ping.t', etc.
>
> I don't feel inclined to try to anticipate (and solve in advance) the
> problems that you will encounter, but if you care to report the issues as
> they arise, I will try to help. (It could be a tedious process ... ie you
> post and wait for a day or so for my response; I post and wait a day or so
> for your response .... :-)
>
> Where does one obtain this clamd server for Windows ? I'm quite happy to
> install it and see if I can get File::Scan::ClamAV working. That's probably
> the best way for me to stay abreast of any problems that arise. (I, myself,
> use ClamWin as my anti-virus program, but it doesn't include a file named
> "clamd".)
>
> Cheers,
> Rob
>From the asspsmtp wiki
http://www.asspsmtp.org/wiki/ClamAV_Win32
the links to native port and the runclamd.zip files are there and some
instructions to install
Strangley it does not say in the wiki that fLe::Scan:Clamav is need -
I think it is assumed
however as the asspsmtp config page says in the Virus Control section
Use Av Clamd
If activated, the message is checked by Av Clamd, this requires an
installed File::Scan::ClamAV Perl module.
Regards
Wayne
Re: ClamAV
am 11.04.2007 07:06:21 von lwirving
On Apr 11, 2:59 pm, lwirv...@gmail.com wrote:
> On Apr 11, 1:26 am, "Sisyphus" wrote:
>
>
>
> > wrote in message
>
> >news:1176215596.870275.236030@e65g2000hsc.googlegroups.com. ..
>
> > > Found the makefile
> > > do I need a compiler or something
>
> > No - it's pure perl, so you won't need a compiler (as there's nothing to be
> > compiled).
>
> > But you *will* need a 'make' program. If you're using a build of ActivePerl
> > that's >= 815 you can use 'dmake' (which can be downloaded fromhttp://search.cpan.org/dist/dmake/).
>
> > Then you'll need to run 'perl Makefile.PL', 'dmake test' and 'dmake
> > install'. But I expect a number of failures with 'dmake test'. For a start,
> > I'm not sure what Windows perl will make of:
>
> > 1 while (waitpid($pid, &WNOHANG) != -1);
>
> > (which occurs in t/01ping.t).
>
> > If you don't want to install 'dmake' you could just copy ClamAV.pm to your
> > perl/site/lib/File/Scan directory (creating the directories as needed, and
> > honoring case-sensitivity) and then test by running the test scripts as
> > 'perl t\01ping.t', etc.
>
> > I don't feel inclined to try to anticipate (and solve in advance) the
> > problems that you will encounter, but if you care to report the issues as
> > they arise, I will try to help. (It could be a tedious process ... ie you
> > post and wait for a day or so for my response; I post and wait a day or so
> > for your response .... :-)
>
> > Where does one obtain this clamd server for Windows ? I'm quite happy to
> > install it and see if I can get File::Scan::ClamAV working. That's probably
> > the best way for me to stay abreast of any problems that arise. (I, myself,
> > use ClamWin as my anti-virus program, but it doesn't include a file named
> > "clamd".)
>
> > Cheers,
> > Rob
> >From the asspsmtp wiki
>
> http://www.asspsmtp.org/wiki/ClamAV_Win32
>
> the links to native port and the runclamd.zip files are there and some
> instructions to install
>
> Strangley it does not say in the wiki that fLe::Scan:Clamav is need -
> I think it is assumed
> however as the asspsmtp config page says in the Virus Control section
> Use Av Clamd
> If activated, the message is checked by Av Clamd, this requires an
> installed File::Scan::ClamAV Perl module.
>
> Regards
> Wayne
I used the MSI file (requires DotNet 2) which contains the ClamD
program
I could not get ClamD to run as a service but the RunClamD file out
of the zip runs as a service without a problem
I also could not get the power tools version to work but that may heve
been because I had ClamAV installed in c:\clamAV at the time I tried
it
Re: ClamAV
am 11.04.2007 09:51:29 von Sisyphus
wrote in message
news:1176267981.620014.17470@y5g2000hsa.googlegroups.com...
..
..
>
> I used the MSI file (requires DotNet 2) which contains the ClamD
> program
>
> I could not get ClamD to run as a service but the RunClamD file out
> of the zip runs as a service without a problem
>
> I also could not get the power tools version to work but that may heve
> been because I had ClamAV installed in c:\clamAV at the time I tried
> it
>
>
Turns out that it's too much trouble to install on the (Windows 2000) box I
was going to put it on. I transferred the msi and zip file across ok, but to
install the msi I needed dotnet 2 (as you said). I grabbed it, transferred
it across, but it needs Windows Installer 3.0 .... which I grabbed and
transferred across ... but it needs another Service Pack to install .... at
which point I gave up.
Sorry :-(
You'll just have to cross the bridges as you come to them. Is running
Cygwin's perl an option for you ? I still think (without really knowing)
that might be the quickest way to get it working.
Cheers,
Rob