]> git.pld-linux.org Git - packages/percona-monitoring-plugins.git/commitdiff
enforce php shebang
authorElan Ruusamäe <glen@delfi.ee>
Sun, 23 Mar 2014 09:35:58 +0000 (11:35 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 23 Mar 2014 09:35:58 +0000 (11:35 +0200)
percona-monitoring-plugins.spec

index a8a91f7f8516bc46f4eb39a40b30b5feef92da9d..77a42b2bfc9fd33ba1e0e821bd74aa8ffec1972f 100644 (file)
@@ -22,6 +22,7 @@ Patch0:               config.patch
 Patch1:                paths.patch
 URL:           http://www.percona.com/software/percona-monitoring-plugins
 BuildRequires: rpmbuild(macros) >= 1.630
+BuildRequires: sed >= 4.0
 Requires:      cacti >= 0.8.7g-6
 Conflicts:     cacti-spine < 0.8.7e-3
 BuildArch:     noarch
@@ -98,6 +99,8 @@ for xml in templates/cacti_host_template_*.xml; do
        mv $xml $normalized
 done
 
+%{__sed} -i -e '1i#!/usr/bin/php' scripts/*.php
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{resourcedir},%{scriptsdir},%{cachedir}}
This page took 0.122502 seconds and 4 git commands to generate.