Jump to content

Postfix Building RPMs

From MattWiki

Note: This Page was written with Fedora 8 & 9 in mind, and may not work correctly with other versions or distributions.

The main reson that I build my own Postfix RPMs is so i can enable the MySQL module.

Installing Prerequisites for Postfix RPM Build[edit | edit source]

First we need to make sure we have all the needed packets.

yum -y install rpm-build zlib-devel openldap-devel cyrus-sasl-devel pcre-devel mysql-devel openssl-devel db4-devel sqlite-devel gcc gpg git

Download the Required Build Files[edit | edit source]

Now we need to download the required file to build the packets with. We are going to use subversion for this.

cd /usr/src/redhat/SOURCES
git clone [email protected]:mattrude/rpmbuild-postfix.git .

Or

git clone git://github.com/mattrude/rpmbuild-postfix.git .

Next we need to download the current stable postfix release from one of the postfix download site (http://postfix.energybeam.com/source/index.html)

The Build Commands[edit | edit source]

rm -rf /usr/src/redhat/RPMS/*/*
rm -rf /usr/src/redhat/SRPMS/*
rpmbuild -ba postfix.spec
scp /usr/src/redhat/RPMS/i386/* mythtv@mythtv:/var/www/html/repo/fedora/9/i386/
scp /usr/src/redhat/SRPMS/* mythtv@mythtv:/var/www/html/repo/fedora/9/SRPMS/
ssh mythtv@mythtv /home/mythtv/bin/buildmdrrepo