Nagios core rpmbuild spec file: my own UID, GID, location
Posted: Mon Dec 18, 2017 2:47 pm
I am new to using rpmbuild to build my own rpm.
I would like to build Nagios core using my own UID, GID, & install location.
Say I use nagios-4.3.2.tar.
After I untar'ed the file, there is a spec dir (nagios.spec). Could someone give me some tips on where I make the changes?
I could change all references to user nagios to "my own uid" and group nagios to "my own gid" in places like:
--with-nagios-user="nagios" \
--with-nagios-group="nagios" \
But what about the install dir which typically located at /usr/local/nagios?
Thanks!
I would like to build Nagios core using my own UID, GID, & install location.
Say I use nagios-4.3.2.tar.
After I untar'ed the file, there is a spec dir (nagios.spec). Could someone give me some tips on where I make the changes?
I could change all references to user nagios to "my own uid" and group nagios to "my own gid" in places like:
--with-nagios-user="nagios" \
--with-nagios-group="nagios" \
But what about the install dir which typically located at /usr/local/nagios?
Thanks!