-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dnia 2009-11-24, o godz. 20:08:27
amit IKF <[email protected]> napisał(a):

> Thanks Aleksander.
> 
> Now second step is I download source rpm i.e.
> wget http://dl.atrpms.net/all/dovecot-1.2.8-0_103.src.rpm
> 
> Now how do compile it with --with-vpopmail.
> 
> Regards,
> 
> Amit

You have to compile dovecot as root, ordinary user have no permission
to access vpopmail libraries.
The simplest way is
install source:
rpm -i dovecot-1.2.8-0_103.src.rpm

go to spec file end edit it by vi:
cd /usr/src/redhat/SPECS
vi dovecot.spec

find line --disable-static (line 97) and after it add line:
    --with-vpopmail  \

save it and compile for 64 bits:
rpmbuild -ba --target=i88_64 dovecot.spec
or for 32 bits:
rpmbuild -ba --target=i686 dovecot.spec

Now you cen remove spec file and sources from /usr/src/redhat/SOURCES
You successfully compiled dovecot. :)

In /usr/src/redhat/SRPMS there is modified src.rpm
In /usr/src/redhat/RPMS/x86_64 or /usr/src/redhat/RPMS/i686 there are 3
rpm packages, you need only the one without devel or debuginfo in name.

- -- 
Pozdrawiam / Regards,
Aleksander Podsiadły
mail: [email protected]
jid: [email protected]
ICQ: 201121279
gg: 9150578
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (GNU/Linux)

iEYEARECAAYFAksL+5EACgkQfgLJLO5aIX1aGwCgzPhAeAkXaQi95Zs+NMoWvHkU
UdMAnifGEWWCwedxoZkLfup0nptOLYbz
=QXY8
-----END PGP SIGNATURE-----

Reply via email to