commit c97836d2e3bccf7d77e278a624bc4dd433f544f9
Author: Elan Ruusamäe <[email protected]>
Date:   Tue Mar 22 13:30:59 2016 +0200

    build from git

 monitoring-plugin-check_mysql-heartbeat.spec | 38 +++-------------------------
 1 file changed, 4 insertions(+), 34 deletions(-)
---
diff --git a/monitoring-plugin-check_mysql-heartbeat.spec 
b/monitoring-plugin-check_mysql-heartbeat.spec
index c139f0f..4a886e7 100644
--- a/monitoring-plugin-check_mysql-heartbeat.spec
+++ b/monitoring-plugin-check_mysql-heartbeat.spec
@@ -7,6 +7,8 @@ Version:        1.0
 Release:       2
 License:       GPL v2
 Group:         Networking
+Source0:       check_mysql-heartbeat.sh
+Source1:       check_mysql-heartbeat.cfg
 BuildRequires: rpm-php-pearprov >= 4.4.2-11
 Requires:      nagios-common
 Requires:      nagios-plugins-libs
@@ -16,46 +18,14 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                _sysconfdir     /etc/nagios/plugins
 %define                plugindir       %{_prefix}/lib/nagios/plugins
 
-%define                _cvsroot        :ext:cvs.delfi.net:/usr/local/cvs
-%define                _cvsmodule      nagios/plugins
-
 %description
 Nagios plugin to check MySQL heartbeat with maatkit or
 percona-toolkit.
 
 %prep
-# check early if build is ok to be performed
-%if %{!?debug:1}%{?debug:0} && %{!?_cvstag:1}%{?_cvstag:0} && %([[ %{release} 
= *.* ]] && echo 0 || echo 1)
-# break if spec is not commited
-cd %{_specdir}
-if [ "$(cvs status %{name}.spec | awk '/Status:/{print $NF}')" != "Up-to-date" 
]; then
-       : "Integer build not allowed: %{name}.spec is not up-to-date with CVS"
-       exit 1
-fi
-cd -
-%endif
 %setup -qTc
-cd ..
-cvs -d %{_cvsroot} co -d %{name}-%{version} %{_cvsmodule}/%{plugin}.sh
-cd -
-cvs up %{plugin}.cfg
-
-%build
-# skip tagging if we checkouted from tag or have debug enabled
-# also make make tag only if we have integer release
-%if %{!?debug:1}%{?debug:0} && %{!?_cvstag:1}%{?_cvstag:0} && %([[ %{release} 
= *.* ]] && echo 0 || echo 1)
-# do tagging by version
-tag=%{name}-%(echo %{version} | tr . _)-%(echo %{release} | tr . _)
-
-cd %{_specdir}
-if [ $(cvs status -v %{name}.spec | grep -Ec "$tag[[:space:]]") != 0 ]; then
-       : "Tag $tag already exists"
-       exit 1
-fi
-cvs tag $tag %{name}.spec
-cd -
-cvs tag $tag
-%endif
+cp -p %{SOURCE0} .
+cp -p %{SOURCE1} .
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/monitoring-plugin-check_mysql-heartbeat.git/commitdiff/c97836d2e3bccf7d77e278a624bc4dd433f544f9

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to