[Mimedefang] Installing on FreeBSD
Toomas Aas
toomas.aas at raad.tartu.ee
Tue May 3 09:31:20 PDT 2005
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
More information about the freebsd-questions
mailing list