[prev in list] [next in list] [prev in thread] [next in thread] 

List:       suse-imap-e
Subject:    Re: [suse-imap-e] How do i rebuild Postfix RPM to enable MySQL?
From:       Andreas Winkelmann <ml () awinkelmann ! de>
Date:       2004-06-12 6:09:46
Message-ID: 200406120809.46367.ml () awinkelmann ! de
[Download RAW message or body]

Am Samstag, 12. Juni 2004 03:01 schrieb Vincent Burrows:

>    Can anyone tell me how to rebuild SuSE's Postfix RPM to enable it for
> use with MySQL? I am setting up an email server with SuSE pro 9.1 on an AMD
> 64 system. I have tried commands like: "rpmbuild --rebuild --with mysql
> postfix....rpm".  I know I can install the Postfix source code directly
> from the Postfix site where there are fine instructions for enabling it to
> work with MySQL, but I would like to get the full SuSE RPM install to work
> with it instead.

Install the src.rpm

# rpm -i postfix....src.rpm

Edit the spec-file

# vi /usr/src/packages/SPECS/postfix.spec

Search the "CCARGS" and "AUXLIBS"-Vars and insert the mysql-stuff
CCARGS=".... -DHAS_MYSQL -I/usr/include/mysql"
AUXLIBS="..... -L/usr/lib/mysql -lmysqlclient -lz -lm"

And rebuild the rpm

# rpmbuild -ba /usr/src/packages/SPECS/postfix.spec

And install the rpm

# rpm -i /usr/src/packages/RPMS/..../postfix....rpm

-- 
	Andreas


-- 
To unsubscribe, e-mail: suse-imap-e-unsubscribe@suse.com
For additional commands, e-mail: suse-imap-e-help@suse.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic