On 09/08/2014 07:57 AM, Rajesh M. wrote:
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 
throughhttps://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


I really fail to see any purpose in rebuilding all the packages. That's really alot of useless work, except maybe as an rudimentary exercise. I encourage everyone to spend their time on things that are more fruitful.

Also, once again, building rpms as root is not a good practice.

To modify the chkuser settings in qmail, you'll need to install the qmail srpm file, modify the sources, then (re)build the source rpm. Once you've done that, the following command should build the binary rpm:
# rpmbuild --rebuild --define "dist $repo$dist" $srpmfile
You should set $repo and $dist to something like this:
repo=.myrepo
dist=.el6
and provide the name of the source rpm file appropriately.
Using the dist variable gives the resulting rpm a name that's distinguishable from the .qt rpm.

Good luck.

--
-Eric 'shubes'


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

Reply via email to