From owner-freebsd-ports@FreeBSD.ORG Thu Dec 6 01:34:48 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 032FF16A418 for ; Thu, 6 Dec 2007 01:34:48 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id B094713C43E for ; Thu, 6 Dec 2007 01:34:47 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 305A5EC38A2; Thu, 6 Dec 2007 09:35:23 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id W0sSY1TBn2kE; Thu, 6 Dec 2007 09:35:18 +0800 (CST) Received: from charlie.delphij.net (71.5.7.139.ptr.us.xo.net [71.5.7.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id DE495EC346E; Thu, 6 Dec 2007 09:35:17 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:content-type:content-transfer-encoding; b=j9AqBz/1gaVtmPtACoyKwOrKXTJxM1oFkoLFS7pooUMpLwHo9w/ITTKKy6Zv603/0 tV6p7KETLTnOfcPJgD7fA== Message-ID: <475751AF.4020103@delphij.net> Date: Wed, 05 Dec 2007 17:34:39 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071125) MIME-Version: 1.0 To: jekillen References: <2cbc5d8d7f9f7b5f0c8ee35cff89a189@prodigy.net> In-Reply-To: <2cbc5d8d7f9f7b5f0c8ee35cff89a189@prodigy.net> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports Subject: Re: rebuilding Postfix to ad MySQL support X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2007 01:34:48 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 jekillen wrote: > Hello; > Can I get some advice: > I have Postfix installed from package at system install. > I am trying to set up Cyrus Imap and Cyradm. These > have specified use of mysql for database types. After > carefully crafting the configuration files for Postfix, I > am informed tha Postfix does not support MySQL tables > as it stands. I have received instruction from Postfix list > about how to add the support: > > $ make -f Makefile.init makefiles \ > 'CCARGS=-DHAS_MYSQL -I/usr/local/include/mysql' \ > 'AUXLIBS=-L/usr/local/lib/mysql -lmysqlclient -lz -lm' > > Wietsed > > I assume this is done in the Postfix port dir (and, impatiently, > I am wondering if this is the correct syntax for csh). > My question is: > should I de-install the existing Postfix package first? > I have laboriously crafted main.cf and the various > database files. I could copy them somewhere else > and re instate them. But why if the existing configuration > files won't be bothered. > Please forgive my novice* user level. I am learning as I go > along. I am a hobbyist at this stage. Perhaps tomorrow, > who knows? > * I am a little beyond 'newby' but not by much. > Thank you in advance > Jeff K Ah, he assumes that you do all build manually, but with ports system that would be much easier. First, synchronize your ports tree (portsnap fetch update or portsnap fetch extract); Second, go to /usr/ports/mail/postfix, do: make config Then a dialog box would appear, choose what you want (MySQL). Then, do 'make clean all deinstall install' as root; then do 'make clean'. Note that if you have portupgrade installed the last step can be automatized with 'portupgrade -Nf mail/postfix'. Hope this helps. Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHV1GvhcUczkLqiksRAqx1AKC6pqPDDqE/7GvMSKtemI7Wlqs+CgCfZrP/ ggfaSkHVtnx6xzgQJCzDsJg= =tN5t -----END PGP SIGNATURE-----