LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-07-2013, 06:34 AM   #1
hudde
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Rep: Reputation: Disabled
rpm package for sbd (CentOs)


Hi,
I'm looking for a rpm package for sbd. I'm running CentOs 6.2 64 bits and RH have removed or never had sbd included in cluster-glue.
I have the source files for it, but I'm not sure how to build it into a rpm package, so I'm looking if anyone already have done it and would like to share the package

Krgds
/Fred
 
Old 03-08-2013, 02:05 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
If you're happy to build an rpm then grab the current srpm, edit and rebuild - I believe sbd is still available in the source code just not built by the rpm.
Code:
yumdownloader --source cluster-glue
rpm -i cluster-glue*.rpm
# edit ~/rpmbuild/SPECS/cluster-glue.spec to enable sbd (probably %configure option, add to %files if required)
rpmbuild -ba ~/rpmbuild/SPECS/cluster-glue.spec
 
1 members found this post helpful.
Old 03-11-2013, 07:56 AM   #3
hudde
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for your answer kbp,

I managed to get the source package and had a look at the spec file for cluster-glue, but unfortunately my knowledge what to edit in there is almost null. I only tried to comment the section where they remove the different packages e.g sbd, stonith etc.. But that didn't help of course.
 
Old 03-12-2013, 07:28 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
I'll take a look and get back to you

Actually, if you take a look at the Fedora 17 source rpm, sbd is still included - you should be able to just grab that and do

Code:
rpmbuild --rebuild /path/to/downloaded/cluster-glue-<version>.src.rpm
Or if it's too hard to get the dependencies right, just compare the spec files and adjust the RHEL one accordingly.

Last edited by kbp; 03-12-2013 at 07:39 AM.
 
1 members found this post helpful.
Old 03-14-2013, 11:07 AM   #5
hudde
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
I think I managed to sort it out.. I rebuild the fedora package after I had to remove some packages that centos doesn't have and so on.. Managed to rebuild it and install it.. and I have my sbd available now..
time to start playing around with it now..

Many many thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create rpm package (.sh file to rpm package) kirthan Linux - Software 2 02-19-2013 04:35 AM
[SOLVED] centos rpm package description list? hadimotamedi Linux - Newbie 2 09-04-2011 04:05 AM
Can we rpm a Susu Linux package in Centos? redhatwannabe Linux - Newbie 1 05-04-2009 11:20 PM
Centos 5 Desktop Install - missing package "lrzsz-0.12.20-22.1.i386.rpm" roundcube Linux - Newbie 1 05-01-2008 09:25 PM
can reinstall the rpm package without delete the rpm package eye Red Hat 1 10-20-2003 07:53 AM


All times are GMT -5. The time now is 04:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration