eric

all this work is on my test server only which is CENTOS 6 - 64 BIT. I compile 
the rpms from source on my test server and then copy and install them on my 
production server which is a minimum install.

i went through 
https://github.com/QMailToaster/qmailtoaster-build/blob/master/qt-build-rpms 
but i am finding it difficult to understand.

i prefer the old way. I know i am doing it the hard way -- but i am doing it in 
a manner so that i understand each step.

what i want, is to download each source rpm packages manually, rebuild them and 
then install them without using the key / signing  etc.

Could you kindly let me know the rpm commands to be used for rebuilding the 
source rpm and installing the rpm for CENTOS 6, 64 BIT  in place of the 
following which we formerly used for the centos 5 install.

rpmbuild --rebuild --with cnt5064  xxxx.src.rpm
rpm -Uvh /root/rpmbuild/RPMS/x86_64/xxxx.rpm



thanks
rajesh




----- Original Message -----
From: Eric Shubert [mailto:[email protected]]
To: [email protected]
Sent: Sun, 07 Sep 2014 12:00:18 -0700
Subject: [qmailtoaster] Re: install qmailtoaster on centos 6.5 64 bit version

On 09/07/2014 10:52 AM, Rajesh M. wrote:
> eric
>
> i downloaded all the SRPMS from
> http://mirrors.qmailtoaster.com/current/SRPMS/
>   and installed the packages one by one manually in a sequence and it works 
> correctly.
>
> i had a few questions
>
> 1) spamd, pop3  folders are no longer in supervise folder. also pop3 toaster 
> is no longer used. dovecot is used in its place. Is my understanding correct ?

Yes. clamd is also no longer managed by supervise. Also, courier and
authlib are gone. dovecot handles imap and pop3 now.

> 2) qmailadmin-spambox -- what is the use of this ? is this for enabling 
> online spam-box via qmail admin ?

Yes. You should install/build either qmailadmin or qmailadmin-spambox.

> 3) what is the use of qmailtoaster-release ?

This package sets up the repo for yum.

> 4) i installed qmailtoaster-util-2.0-1.qt.src.rpm but qmail-spam stop/start 
> does not work because spamd folder is no longer in supervise folder.

qmail-spam and qmail-clam are obsolete now. I didn't bother to modify
them, and haven't gotten around to removing them yet. Simply use the
service command instead.

> i have documented all the steps below for CENTOS 6, 64 BIT
>
> these steps are for people who are familar with the previous qmailtoaster 
> packages
>
> please view these and let me know if i am missing something
>
>
> wget http://qmailtoaster.com/distro/centos/cnt5064/cnt5064-deps.sh
> wget http://qmailtoaster.com/distro/centos/cnt5064/cnt5064-perl.sh
> wget http://qmailtoaster.com/distro/centos/cnt5064/cnt5064-svcs.sh

I wouldn't run these scripts with the new setup. The deps and perl
scripts should be handled by dependencies in the package specs now. Yum
will pick them up automatically.

The svcs script might or might not be ok. It should be reviewed. On
brief view, I would use the qt-mysql-secure-vpopmail instead of the code
in the old svcs script.

> wget 
> http://mirrors.qmailtoaster.com/current/SRPMS/autorespond-2.0.5-0.qt.src.rpm
> wget http://mirrors.qmailtoaster.com/current/SRPMS/clamav-0.98.4-2.qt.src.rpm
> wget 
> http://mirrors.qmailtoaster.com/current/SRPMS/control-panel-0.5.1-0.qt.src.rpm
> wget 
> http://mirrors.qmailtoaster.com/current/SRPMS/daemontools-0.76-0.qt.src.rpm
> wget http://mirrors.qmailtoaster.com/current/SRPMS/dovecot-2.2.7-0.qt.src.rpm
> wget http://mirrors.qmailtoaster.com/current/SRPMS/ezmlm-0.53.324-0.qt.src.rpm
> wget http://mirrors.qmailtoaster.com/current/SRPMS/isoqlog-2.2.1-1.qt.src.rpm
> wget 
> http://mirrors.qmailtoaster.com/current/SRPMS/libdomainkeys-0.69-0.qt.src.rpm
> wget http://mirrors.qmailtoaster.com/current/SRPMS/libsrs2-1.0.18-0.qt.src.rpm
> wget 
> http://mirrors.qmailtoaster.com/current/SRPMS/libvpopmail-5.4.33-0.qt.src.rpm
> wget http://mirrors.qmailtoaster.com/current/SRPMS/maildrop-2.7.0-0.qt.src.rpm
> wget http://mirrors.qmailtoaster.com/current/SRPMS/qmail-1.03-0.qt.src.rpm
> wget 
> http://mirrors.qmailtoaster.com/current/SRPMS/qmailadmin-1.2.16-0.qt.src.rpm
> wget 
> http://mirrors.qmailtoaster.com/current/SRPMS/qmailadmin-spambox-1.2.16-0.qt.src.rpm
> wget http://mirrors.qmailtoaster.com/current/SRPMS/qmailmrtg-4.2-0.qt.src.rpm
> wget 
> http://mirrors.qmailtoaster.com/current/SRPMS/qmailtoaster-release-2.0-1.qt.src.rpm
> wget 
> http://mirrors.qmailtoaster.com/current/SRPMS/qmailtoaster-util-2.0-1.qt.src.rpm
> wget 
> http://mirrors.qmailtoaster.com/current/SRPMS/ripmime-1.4.0.10-0.qt.src.rpm
> wget 
> http://mirrors.qmailtoaster.com/current/SRPMS/send-emails-0.5.1-0.qt.el6.x86_64.rpm
> wget http://mirrors.qmailtoaster.com/current/SRPMS/simscan-1.4.0-0.qt.src.rpm
> wget 
> http://mirrors.qmailtoaster.com/current/SRPMS/spamassassin-3.3.2-2.qt.src.rpm
> wget http://mirrors.qmailtoaster.com/current/SRPMS/spamdyke-4.3.1-1.qt.src.rpm
> wget http://mirrors.qmailtoaster.com/current/SRPMS/ucspi-tcp-0.88-0.qt.src.rpm
> wget 
> http://mirrors.qmailtoaster.com/current/SRPMS/vpopmail-5.4.33-0.qt.src.rpm
> wget http://mirrors.qmailtoaster.com/current/SRPMS/vqadmin-2.3.7-0.qt.src.rpm
> http://mirror2.qmailtoaster.com/current/CentOS/6/x86_64/send-emails-0.5.1-0.qt.el6.x86_64.rpm
>
>
> INSTALLATION -- mysql server should be installed and running
>
> sh ./cnt5064-deps.sh
> sh ./cnt5064-perl.sh
>
> open cnt5064-svcs.sh
> comment the firewall related line at the bottom, put your password and run
> sh ./cnt5064-svcs.sh
>
>
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/daemontools-0.76-0.el6.x86_64.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/ucspi-tcp-0.88-0.el6.x86_64.rpm
>
> rpmbuild --rebuild --with cnt5064 vpopmail-5.4.33-0.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/libvpopmail-devel-5.4.33-0.el6.x86_64.rpm
>
>
> yum install libev-devel
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/vpopmail-5.4.33-0.el6.x86_64.rpm
> rpmbuild --rebuild --with cnt5064 libdomainkeys-0.69-0.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/libdomainkeys-devel-0.69-0.el6.x86_64.rpm
>
> rpmbuild --rebuild --with cnt5064  libsrs2-1.0.18-0.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/libsrs2-1.0.18-0.el6.x86_64.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/libsrs2-devel-1.0.18-0.el6.x86_64.rpm
>
>
> rpmbuild --rebuild --with cnt5064  spamdyke-4.3.1-1.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/spamdyke-4.3.1-1.el6.x86_64.rpm
>
> rpmbuild --rebuild --with cnt5064 qmail-1.03-0.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/qmail-1.03-0.el6.x86_64.rpm
>
> rpmbuild --rebuild --with cnt5064 autorespond-2.0.5-0.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/autorespond-2.0.5-0.el6.x86_64.rpm
>
> NO REBUILDING THIS. DIRECT INSTALL
> rpm -Uvh send-emails-0.5.1-0.qt.el6.x86_64.rpm
>
> rpmbuild --rebuild --with cnt5064 control-panel-0.5.1-0.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/control-panel-0.5.1-0.el6.x86_64.rpm
>
> rpmbuild --rebuild --with cnt5064 ezmlm-0.53.324-0.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/ezmlm-0.53.324-0.el6.x86_64.rpm
>
> rpmbuild --rebuild --with cnt5064 qmailadmin-1.2.16-0.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/qmailadmin-1.2.16-0.el6.x86_64.rpm
>
> NOT INSTALLED YET
> rpmbuild --rebuild --with cnt5064 qmailadmin-spambox-1.2.16-0.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/
>
>
> rpmbuild --rebuild --with cnt5064 qmailmrtg-4.2-0.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/qmailmrtg-4.2-0.el6.x86_64.rpm
>
>
> rpmbuild --rebuild --with cnt5064 maildrop-2.7.0-0.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/maildrop-2.7.0-0.el6.x86_64.rpm
>
>
> rpmbuild --rebuild --with cnt5064 isoqlog-2.2.1-1.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/isoqlog-2.2.1-1.el6.x86_64.rpm
>
>
> rpmbuild --rebuild --with cnt5064 vqadmin-2.3.7-0.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/vqadmin-2.3.7-0.el6.x86_64.rpm
>
> rpmbuild --rebuild --with cnt5064 spamassassin-3.3.2-2.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/spamassassin-3.3.2-2.el6.x86_64.rpm
>
> yum install check-devel
> yum install  libxml2-devel
> rpmbuild --rebuild --with cnt5064 clamav-0.98.4-2.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/clamav-0.98.4-2.el6.x86_64.rpm
>
> rpmbuild --rebuild --with cnt5064 ripmime-1.4.0.10-0.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/ripmime-1.4.0.10-0.el6.x86_64.rpm
>
> rpmbuild --rebuild --with cnt5064 simscan-1.4.0-0.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/simscan-1.4.0-0.el6.x86_64.rpm
>
>
> yum install sqlite-devel
> yum install postgresql-devel
> yum install quota-devel
> yum install libcap-devel
> yum install pam-devel
>
>
> rpmbuild --rebuild --with cnt5064 dovecot-2.2.7-0.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/dovecot-2.2.7-0.el6.x86_64.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/dovecot-pgsql-2.2.7-0.el6.x86_64.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/dovecot-devel-2.2.7-0.el6.x86_64.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/dovecot-pigeonhole-2.2.7-0.el6.x86_64.rpm
> rpm -Uvh /root/rpmbuild/RPMS/x86_64/dovecot-mysql-2.2.7-0.el6.x86_64.rpm
>
>
> rpmbuild --rebuild --with cnt5064 qmailtoaster-release-2.0-1.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/noarch/qmailtoaster-release-2.0-1.el6.noarch.rpm
>
> rpmbuild --rebuild --with cnt5064 qmailtoaster-util-2.0-1.qt.src.rpm
> rpm -Uvh /root/rpmbuild/RPMS/noarch/qmailtoaster-util-2.0-1.el6.noarch.rpm
>

A few observations.

.) The new packages don't use the --with option any more. See
https://github.com/QMailToaster/qmailtoaster-build/blob/master/qt-build-rpms
for how it's done now (d5554_build_signed_rpms function).

.) If you build on COS5 (which you should do if you'll be running on
COS5), you'll need to rebuild your own srpm first, due to an
incompatibility between md5sum on COS6 (which built the srpms) and COS5.

.) Building packages under root is a really bad practice

.) I think you're making things much harder than needed. Why don't you
simply install the packages using the new scripts, then
modify/build/install whichever packages you need to do customization on?
As far as I'm aware, qmail is the only package with such needs, and the
next release of qmail will probably take care of those issues for you.

.) For whatever packages you customize, you'll want to exclude yum from
updating them.

--
-Eric 'shubes'



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to