"make rpm" automation ?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

"make rpm" automation ?

Post by nagmoto »

Current Makefile.in only support Solaris package making but not RPM.
I had to create my own makefile to automate rpm making process.
See below

Code: Select all

[nagios@fedora21 nagioscore]$ make -f Makefile.2nd rpm -n
rm -rf ~/rpmbuild && mkdir -p ~/rpmbuild/SOURCES ~/rpmbuild/RPMS ~/rpmbuild/BUILDROOT
cp -f  ./nagios-4.1.0rc1.tar.gz  ~/rpmbuild/SOURCES/nagios-4.1.0rc1.tar.gz
rpmbuild -v -ba --buildroot ~/rpmbuild/BUILDROOT ./nagios.spec
mv ~/rpmbuild/RPMS/x86_64/*.rpm .
[nagios@fedora21 nagioscore]$ 
Is there an interest to accept Makefile.ini pull request to support "make rpm" ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: "make rpm" automation ?

Post by scottwilkerson »

Feel free to submit a pull request at https://github.com/NagiosEnterprises/nagioscore

Thanks!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

Re: "make rpm" automation ?

Post by nagmoto »

abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: "make rpm" automation ?

Post by abrist »

Awesome! Thanks.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked