[Mimedefang] Installing on FreeBSD

Fernando Gleiser fgleiser at cactus.fi.uba.ar
Tue May 3 13:13:03 EDT 2005


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



More information about the MIMEDefang mailing list