Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
>
nagios-plugins
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 19
[-]
[+]
Changed
nagios-plugins.spec
@@ -13,6 +13,7 @@ Packager: Karl DeBisschop <kdebisschop@users.sourceforge.net> Vendor: Nagios Plugin Development Group Provides: nagios-plugins +PreReq: sed %{!?custom:%global custom 0} Obsoletes: nagios-plugins-custom nagios-plugins-extras @@ -69,7 +70,11 @@ %__install -d ${RPM_BUILD_ROOT}/etc/nagios %__install -m 664 command.cfg ${RPM_BUILD_ROOT}/etc/nagios %find_lang %{name} - +# fix lib path in perl plugins +cd ${RPM_BUILD_ROOT}%{_prefix}/lib/nagios/plugins +for PLUGIN in check_breeze check_disk_smb check_file_age check_flexlm check_ifoperstatus check_ifstatus check_ircd check_mailq check_rpc check_wave ; do + sed -i s@"nagios/plugins"@"%{_prefix}/lib/nagios/plugins"@g ${PLUGIN} +done %clean rm -rf $RPM_BUILD_ROOT