From owner-freebsd-questions@FreeBSD.ORG Tue May 3 16:31:20 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D298216A4CE for ; Tue, 3 May 2005 16:31:20 +0000 (GMT) Received: from lv.raad.tartu.ee (lv.raad.tartu.ee [194.126.106.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7579C43D45 for ; Tue, 3 May 2005 16:31:19 +0000 (GMT) (envelope-from toomas.aas@raad.tartu.ee) Received: Message by Barricade lv.raad.tartu.ee with ESMTP id j43GVBe4011619; Tue, 3 May 2005 19:31:12 +0300 Received: from INFO/SpoolDir by raad.tartu.ee (Mercury 1.48); 3 May 05 19:31:13 +0300 Received: from SpoolDir by INFO (Mercury 1.48); 3 May 05 19:31:07 +0300 Received: from [192.168.1.2] (192.168.1.2) by raad.tartu.ee (Mercury 1.48) with ESMTP; 3 May 05 19:31:00 +0300 Message-ID: <4277A747.3060805@raad.tartu.ee> Date: Tue, 03 May 2005 19:31:03 +0300 From: Toomas Aas User-Agent: Mozilla Thunderbird 1.0RC1 (Windows/20041201) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lisa Casey References: <001101c54f74$3eef54c0$14d71840@lisakc> <007301c54ffa$9bfb1970$d580a23f@lisac> In-Reply-To: <007301c54ffa$9bfb1970$d580a23f@lisac> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable cc: mimedefang@lists.roaringpenguin.com cc: freebsd-questions@freebsd.org Subject: Re: [Mimedefang] Installing on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2005 16:31:20 -0000 Lisa Casey wrote: > Ok but this basically sucks. I'm sure I should be installing from ports= =2E=20 Me too. > But I don't seem to be able to do that, and I do know how to install=20 > source files. >=20 > When I try to do a pkg_add to install the mimedefang port that I've=20 > 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=20 > 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=20 > `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=20 don't think that using argument 'mimedefang.tar.gz' is correct. > So I moved the tarball over to /usr/ports/distfiles, extracted it and=20 > ran make.=20 If you have decided to install from source tarball, you should perform=20 the installation outside the ports tree. That resulted in: >=20 > radius# more distinfo > MD5 (mimedefang-2.51.tar.gz) =3D 9c4df4ec349e414f893c940ff563bea5 > SIZE (mimedefang-2.51.tar.gz) =3D 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=20 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=20 > unacceptable levels of spam. Surely someone can help me out with=20 > installing mimedefang from source=20 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 :-)= --=20 Toomas Aas -------------------------------------------------------- |arvutiv=F5rgu peaspetsialist | head specialist on computer networks| |Tartu Linnakantselei | Tartu City Office | ----------------------------------------------------- +372 736 1274