Fixed RPM dependencies

The RPMs depended on Perl due to the Nagios scripts that are installed.
This dependency is not needed and should be managed by some other means.
This commit is contained in:
Markus Makela 2016-03-21 10:42:12 +02:00
parent 4ee1f304ca
commit 5f1b46d298
2 changed files with 10 additions and 3 deletions

View File

@ -65,4 +65,11 @@ then
cp -n @MAXSCALE_CONFDIR@/maxscale.cnf.template @MAXSCALE_CONFDIR@/maxscale.cnf
fi
# This will allow us to install the Perl scripts as executable files
# without adding the Perl dependencies
for i in $(find @MAXSCALE_SHAREDIR@/plugins/nagios -name '*.pl')
do
chmod ug+x $i
done
/sbin/ldconfig

View File

@ -1,5 +1,5 @@
install(PROGRAMS nagios/check_maxscale_monitors.pl DESTINATION ${MAXSCALE_SHAREDIR}/plugins/nagios)
install(PROGRAMS nagios/check_maxscale_resources.pl DESTINATION ${MAXSCALE_SHAREDIR}/plugins/nagios)
install(PROGRAMS nagios/check_maxscale_threads.pl DESTINATION ${MAXSCALE_SHAREDIR}/plugins/nagios)
install(FILES nagios/check_maxscale_monitors.pl DESTINATION ${MAXSCALE_SHAREDIR}/plugins/nagios)
install(FILES nagios/check_maxscale_resources.pl DESTINATION ${MAXSCALE_SHAREDIR}/plugins/nagios)
install(FILES nagios/check_maxscale_threads.pl DESTINATION ${MAXSCALE_SHAREDIR}/plugins/nagios)
install(FILES nagios/maxscale_commands.cfg DESTINATION ${MAXSCALE_SHAREDIR}/plugins/nagios)
install(FILES nagios/server1.cfg DESTINATION ${MAXSCALE_SHAREDIR}/plugins/nagios)