Re: [Mimedefang] Installing on FreeBSD

2005-05-03 Thread Martin Blapp
Hi,
===>   Generating temporary packing list
[: based: unexpected operator
-e: not found
*** Error code 127
Stop in /usr/ports/mail/mimedefang.
*** Error code 1
Stop in /usr/ports/mail/mimedefang.
I  can see the perl modules (including spamassassin) when I do a pkg_info -a 
now. But mimedefang isn't in there (probably because the make install 
failed). I do have /var/spool/MIMEDefang and /var/spool/MD-Quarantine and 
/usr/local/etc/mimedefang/mimedefang-filter so mimedefang is at least 
partially installed. I doubt it's installed enough to be actually working 
though since the make install failed and it does not show up in pkg_info -a.

Any ideas on how to fix the make install for mimedefang?
This is getting complicated ... Have you ever updated a freebsd system ?
Looks like your port collection is not up to date. Install the package cvsup 
(the package, not the port). To do that type 'sysinstall', go to 'Configure',
'Packages'. If you have installed from cd, enter that cd. Under 'devel' you'll 
find a tool called 'cvsup-without-gui'. Install this one.

After that, upgrade your system to FreeBSD 4.11, please read the handbook
how to do that. The upgrade the ports collection with cvsup too.
After that go to '/usr/ports/sysutils/portupgrade', do a 'make install'.
Now you can just do a
portupgrade mimedefang, and everything needed should be updated now.
Martin
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Installing on FreeBSD

2005-05-03 Thread Lisa Casey
Hi,
I'm getting a lot closer now than I was! I reinstalled perl using what I 
found in ports, then I went to /usr/ports/mail/mimedefang and did a make 
(that worked) it installed all of the perl modules needed by mimedefang. A 
make install in /usr/ports/mail/mimedefang fails though like this:

===>   Generating temporary packing list
[: based: unexpected operator
-e: not found
*** Error code 127
Stop in /usr/ports/mail/mimedefang.
*** Error code 1
Stop in /usr/ports/mail/mimedefang.
I  can see the perl modules (including spamassassin) when I do a pkg_info -a 
now. But mimedefang isn't in there (probably because the make install 
failed). I do have /var/spool/MIMEDefang and /var/spool/MD-Quarantine and 
/usr/local/etc/mimedefang/mimedefang-filter so mimedefang is at least 
partially installed. I doubt it's installed enough to be actually working 
though since the make install failed and it does not show up in pkg_info -a.

Any ideas on how to fix the make install for mimedefang?
Thanks,
Lisa
- Original Message - 
From: "Martin Blapp" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 03, 2005 4:48 PM
Subject: Re: [Mimedefang] Installing on FreeBSD


Hi Lisa,
"Makefile", line 53: Malformed conditional (${PERL_LEVEL} < 500601)
the port system expects that perl is installed also
from the ports system
either do:
cd /usr/ports/lang/perl5.8
make install
make clean
or edit /etc/make.conf and add (adjust the perl version)
PERL_VER=5.8.1
PERL_VERSION=5.8.1
PERL_ARCH=mach
and after that do:
cd /usr/ports/mail/mimedefang/
make install
make clean
Hope that helps.
Martin

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.2 - Release Date: 5/2/2005
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Installing on FreeBSD

2005-05-03 Thread Martin Blapp
Hi Lisa,
"Makefile", line 53: Malformed conditional (${PERL_LEVEL} < 500601)
the port system expects that perl is installed also
from the ports system
either do:
cd /usr/ports/lang/perl5.8
make install
make clean
or edit /etc/make.conf and add (adjust the perl version)
PERL_VER=5.8.1
PERL_VERSION=5.8.1
PERL_ARCH=mach
and after that do:
cd /usr/ports/mail/mimedefang/
make install
make clean
Hope that helps.
Martin
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Installing on FreeBSD

2005-05-03 Thread Lisa Casey
Hi,
You're not installing from ports. To install from ports da as I said 
before:
cd into /usr/ports/mail/ and then run "make; make install clean"

radius# cd /usr/ports/mail/mimedefang
radius# ls -l
total 18
-rw-r--r--  1 nobody  wheel  2464 Feb 11 00:52 Makefile
-rw-r--r--  1 nobody  wheel   103 Feb 11 00:52 distinfo
drwxr-xr-x  3 rootwheel   512 May  3 13:35 files
-rw-r--r--  1 rootwheel56 May 23  2002 pkg-comment
-rw-r--r--  1 nobody  wheel   842 Apr 28  2003 pkg-descr
-rw-r--r--  1 nobody  wheel   678 Dec 23 14:26 pkg-install
-rw-r--r--  1 nobody  wheel   628 Oct 25  2002 pkg-message
-rw-r--r--  1 nobody  wheel  1107 Oct 16  2004 pkg-plist
radius# make
"Makefile", line 53: Malformed conditional (${PERL_LEVEL} < 500601)
"Makefile", line 53: Need an operator
"Makefile", line 55: if-less endif
"Makefile", line 55: Need an operator
make: fatal errors encountered -- cannot continue

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.2 - Release Date: 5/2/2005
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Installing on FreeBSD

2005-05-03 Thread Fernando Gleiser
On Tue, 3 May 2005, James Ebright wrote:
Let me preface this with this disclaimer: I am not a freeBSD admin.
But, if memory serves you just need to untar/zip that tarball in the correct
location then run the port commands described in earlier responses...
You don't even need to do that. just run "make" and it will download the
tarball to the right dir, check the MD5/SHA-1, open it, apply the patches, 
run configure and compile it. It's a kind of "abusing make"

Something like:
tar zxvf mimedefang.tar.gz -C /usr/local/somepath/wherever/ports
Also, is it me or are the port commands just the regular ./configure && make
&& make install ?? (hehe, you know the saying about the cat)
The ports are a bit more powerful than that. Besides automatic downloading
and such, the ports system also checks and installs dependencies, prevent 
you from installing a port if there are some security issues and keep
version/software tracking. You can upgrade the installed ports just
runing "portupgrade".

It takes some time to get used to it, but once you get used to it, it's 
great.


Fer
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Installing on FreeBSD

2005-05-03 Thread James Ebright
On Tue, 3 May 2005 12:44:21 -0400, Lisa Casey wrote
>  When I try  to do a pkg_add to install the mimedefang  port that 
> I've downloaded from freebsd.org, I get this:

Let me preface this with this disclaimer: I am not a freeBSD admin.

But, if memory serves you just need to untar/zip that tarball in the correct
location then run the port commands described in earlier responses...

Something like: 
tar zxvf mimedefang.tar.gz -C /usr/local/somepath/wherever/ports

Also, is it me or are the port commands just the regular ./configure && make
&& make install ?? (hehe, you know the saying about the cat)

Jim
--
EsisNet.com Webmail Client

___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Installing on FreeBSD

2005-05-03 Thread Fernando Gleiser
On Tue, 3 May 2005, Lisa Casey wrote:
Hi,
Ok but this basically sucks. I'm sure I should be installing from ports. But
I don't seem to be able to do that, and I do know how to install source
files.
You're not installing from ports. To install from ports da as I said before:
cd into /usr/ports/mail/ and then run "make; make install clean"

radius# pkg_add -r mimedefang.tar.gz
Error: FTP Unable to get
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4
-stable/Latest/mimedefang.tar.gz.tgz: File unavailable (e.g., file not
found, no
access)
pkg_add: unable to fetch
`ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-
4-stable/Latest/mimedefang.tar.gz.tgz' by URL
pkg_add works with binary packages (like RPMs). Packages have a ".tgz" 
extension.

So I moved the tarball over to /usr/ports/distfiles, extracted it and ran
make. That resulted in:
radius# more distinfo
MD5 (mimedefang-2.51.tar.gz) = 9c4df4ec349e414f893c940ff563bea5
SIZE (mimedefang-2.51.tar.gz) = 302006
radius# make
"Makefile", line 53: Malformed conditional (${PERL_LEVEL} < 500601)
"Makefile", line 53: Need an operator
"Makefile", line 55: if-less endif
"Makefile", line 55: Need an operator
make: fatal errors encountered -- cannot continue
You're doing 2 things wrong: 1) you're runing a BSD make against a GNU 
Makefile. 2) you're not using the ports. Do as I said above and you'll have
mimedefang installed in no time.


Fer
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Installing on FreeBSD

2005-05-03 Thread Lisa Casey
Hi,
Ok but this basically sucks. I'm sure I should be installing from ports. 
But
I don't seem to be able to do that, and I do know how to install source
files.

When I try  to do a pkg_add to install the mimedefang  port that I've
downloaded from freebsd.org, I get this:
radius# pkg_add -r mimedefang.tar.gz
Error: FTP Unable to get
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4
-stable/Latest/mimedefang.tar.gz.tgz: File unavailable (e.g., file not
found, no
access)
pkg_add: unable to fetch
`ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-
4-stable/Latest/mimedefang.tar.gz.tgz' by URL
So I moved the tarball over to /usr/ports/distfiles, extracted it and ran
make. That resulted in:
radius# more distinfo
MD5 (mimedefang-2.51.tar.gz) = 9c4df4ec349e414f893c940ff563bea5
SIZE (mimedefang-2.51.tar.gz) = 302006
radius# make
"Makefile", line 53: Malformed conditional (${PERL_LEVEL} < 500601)
"Makefile", line 53: Need an operator
"Makefile", line 55: if-less endif
"Makefile", line 55: Need an operator
make: fatal errors encountered -- cannot continue
At this rate it'll be forever before I get mimedefang installed and in the
meantime I have customers upset because they are receiving unacceptable
levels of spam. Surely someone can help me out with installing mimedefang
from source and getting this sendmail stuff I have questions about working.
Of course, if someone  wants to tell me what I'm doing wrong in trying to
install this as a package and howe to do it right, that would be OK too :-)
I'm going to CC  this to the FreeBSD list in case someone on that list 
might
be able to help.

Thanks,
Lisa Casey

Lisa Casey wrote:
> Hi,
>
> I need to install Mimedefang on a FreeBSD 4.6 system as the Redhat
> system I was running my mail server on crashed. I've  upgraded perl to
> 5.8.6 (it was 5.001 or something like that) and installed the
> necessary perl modules for mimedefang. I have a couple of questions
> though about installing on FreeBSD (this is different from the way my
> Red Hat system was).
>
> I have Sendmail 8.13 on here. According to the Mimedefang instructions
> I need to make sure I have a queue runner. Does anyone know if
> Sendmail 8.13 will do this automatically? In the mimedefang
> instructions I was reading it said to do this by adding sendmail -Ac
> -qp5m to the init script for Sendmail. On my Red Hat system this was
> in /etc/init.d. I can't find where I should specify this on FreeBSD.
>
> When I installed my radius server on this FreeBSD system, I put the
> init script for it in /usr/local/etc/rc.d (there's  no sendmail script
> therre). Is this where I should put my mimedefang init script? How
> will I know if this stops & starts mimedefang at the right times? I
> believe mimedefang should start up after Sendmail does and should be
> stopped before Sendmail is.
>
> Thanks,
>
> Lisa Casey

Hi lisa,
  You should use the port system to install it on freeBSD, think of it
like the rpm for redhat... :)
regards,
Ghislain.

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.2 - Release Date: 5/2/2005
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Installing on FreeBSD

2005-05-03 Thread Toomas Aas
Lisa Casey wrote:
Ok but this basically sucks. I'm sure I should be installing from ports. 
Me too.
But I don't seem to be able to do that, and I do know how to install 
source files.

When I try  to do a pkg_add to install the mimedefang  port that I've 
downloaded from freebsd.org, I get this:
pkg_add installs package (a pre-compiled binary), not port.
radius# pkg_add -r mimedefang.tar.gz
Error: FTP Unable to get 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4
-stable/Latest/mimedefang.tar.gz.tgz: File unavailable (e.g., file not 
found, no
access)
pkg_add: unable to fetch 
`ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-
4-stable/Latest/mimedefang.tar.gz.tgz' by URL
I have rarely, if ever at all, used pkg_add (I prefer ports), but I 
don't think that using argument 'mimedefang.tar.gz' is correct.

So I moved the tarball over to /usr/ports/distfiles, extracted it and 
ran make. 
If you have decided to install from source tarball, you should perform 
the installation outside the ports tree.

That resulted in:
radius# more distinfo
MD5 (mimedefang-2.51.tar.gz) = 9c4df4ec349e414f893c940ff563bea5
SIZE (mimedefang-2.51.tar.gz) = 302006
radius# make
"Makefile", line 53: Malformed conditional (${PERL_LEVEL} < 500601)
"Makefile", line 53: Need an operator
"Makefile", line 55: if-less endif
"Makefile", line 55: Need an operator
make: fatal errors encountered -- cannot continue
You are probably trying to run BSD make against a GNU makefile. If you 
really want to install from source tarball, use gmake.

At this rate it'll be forever before I get mimedefang installed and in 
the meantime I have customers upset because they are receiving 
unacceptable levels of spam. Surely someone can help me out with 
installing mimedefang from source 
At this stage I'd still recommend using ports. Just read 'man ports', as 
well as Section 4.5 of the Handbook, to get your confusion cleared up :-)

--
Toomas Aas 
|arvutivõrgu peaspetsialist | head specialist on computer networks|
|Tartu Linnakantselei   | Tartu City Office   |
- +372 736 1274
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Installing on FreeBSD

2005-05-03 Thread Ingeborg Hellemo

[EMAIL PROTECTED] said:
> I have Sendmail 8.13 on here. According to the Mimedefang instructions I
> need to make sure I have a queue runner. Does anyone know if Sendmail 8.13
> will do this automatically? In the mimedefang instructions I was reading it
> said to do this by adding sendmail -Ac -qp5m to the init script for
> Sendmail. On my Red Hat system this was in /etc/init.d. I can't find where I
> should specify this on FreeBSD. 

sendmail in the base system will start the queue runner, but if you want to 
change the run interval you will have to do this by setting options in 
/etc/rc.conf:

sendmail_msp_queue_flags="-L sm-msp-queue -Ac -q5m"# Flags for 
sendmail_msp_queue daemon.

Take a look in /etc/defaults/rc.conf for all available flags.


(I would recommend a somewhat more recent FreeBSD, i.e. 4.11)

--Ingeborg
-- 
Ingeborg Østrem Hellemo  --  [EMAIL PROTECTED]  (Univ. of Tromsø, Norway)


___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Installing on FreeBSD

2005-05-02 Thread Fernando Gleiser
On Mon, 2 May 2005, Lisa Casey wrote:
Hi,
I need to install Mimedefang on a FreeBSD 4.6 system as the Redhat system I 
was running my mail server on crashed. I've  upgraded perl to 5.8.6 (it was 
5.001 or something like that) and installed the necessary perl modules for 
mimedefang. I have a couple of questions though about installing on FreeBSD 
(this is different from the way my Red Hat system was).

I have Sendmail 8.13 on here. According to the Mimedefang instructions I 
need to make sure I have a queue runner. Does anyone know if Sendmail 8.13 
will do this automatically? In the mimedefang instructions I was reading it 
said to do this by adding sendmail -Ac -qp5m to the init script for 
Sendmail. On my Red Hat system this was in /etc/init.d. I can't find where I 
should specify this on FreeBSD.
The queue runner is started by default on FreeBSD.
When I installed my radius server on this FreeBSD system, I put the init 
script for it in /usr/local/etc/rc.d (there's  no sendmail script therre). 
Is this where I should put my mimedefang init script? How will I know if 
this stops & starts mimedefang at the right times? I believe mimedefang 
should start up after Sendmail does and should be stopped before Sendmail 
is.
Have you read the FreeBSD Handbook? 
(http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html). There 
is a lot of good info there.
In FreeBSD, you need to use either the ports system (think of the source RPMs)
or the packages (binary RPMS). To install mimedefang you just need to do:
# cd /usr/ports/lang/perl5 && make && make test && make install clean
# cd /usr/ports/mail/mimedefang && make && make install clean
It's as easy as that. The ports system takes care automatically of all the 
dependencies and installs them.

Hope this helps.
Fer
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Installing on FreeBSD

2005-05-02 Thread ADNET Ghislain
Lisa Casey wrote:

> Hi,
>
> I need to install Mimedefang on a FreeBSD 4.6 system as the Redhat
> system I was running my mail server on crashed. I've  upgraded perl to
> 5.8.6 (it was 5.001 or something like that) and installed the
> necessary perl modules for mimedefang. I have a couple of questions
> though about installing on FreeBSD (this is different from the way my
> Red Hat system was).
>
> I have Sendmail 8.13 on here. According to the Mimedefang instructions
> I need to make sure I have a queue runner. Does anyone know if
> Sendmail 8.13 will do this automatically? In the mimedefang
> instructions I was reading it said to do this by adding sendmail -Ac
> -qp5m to the init script for Sendmail. On my Red Hat system this was
> in /etc/init.d. I can't find where I should specify this on FreeBSD.
>
> When I installed my radius server on this FreeBSD system, I put the
> init script for it in /usr/local/etc/rc.d (there's  no sendmail script
> therre). Is this where I should put my mimedefang init script? How
> will I know if this stops & starts mimedefang at the right times? I
> believe mimedefang should start up after Sendmail does and should be
> stopped before Sendmail is.
>
> Thanks,
>
> Lisa Casey
>
>
>
>
Hi lisa,

  You should use the port system to install it on freeBSD, think of it
like the rpm for redhat... :)

regards,
Ghislain.

-- 
 
AQUEOS - Service Informatique
1, Rue Albert Einstein
77420 Champs sur marne

Service technique :  [EMAIL PROTECTED]
Service commercial :  [EMAIL PROTECTED]
Tel : 06.63.79.27.38 /  01.64.02.99.37
 

___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] Installing on FreeBSD

2005-05-02 Thread Lisa Casey
Hi,
I need to install Mimedefang on a FreeBSD 4.6 system as the Redhat system I 
was running my mail server on crashed. I've  upgraded perl to 5.8.6 (it was 
5.001 or something like that) and installed the necessary perl modules for 
mimedefang. I have a couple of questions though about installing on FreeBSD 
(this is different from the way my Red Hat system was).

I have Sendmail 8.13 on here. According to the Mimedefang instructions I 
need to make sure I have a queue runner. Does anyone know if Sendmail 8.13 
will do this automatically? In the mimedefang instructions I was reading it 
said to do this by adding sendmail -Ac -qp5m to the init script for 
Sendmail. On my Red Hat system this was in /etc/init.d. I can't find where I 
should specify this on FreeBSD.

When I installed my radius server on this FreeBSD system, I put the init 
script for it in /usr/local/etc/rc.d (there's  no sendmail script therre). 
Is this where I should put my mimedefang init script? How will I know if 
this stops & starts mimedefang at the right times? I believe mimedefang 
should start up after Sendmail does and should be stopped before Sendmail 
is.

Thanks,
Lisa Casey

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.1 - Release Date: 5/2/2005
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang