]> git.pld-linux.org Git - packages/nagios-plugin-check_ssl_cert.git/commitdiff
- move plugin conf as separate source in cvs
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 4 Apr 2011 08:34:09 +0000 (08:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    check_ssl_cert.cfg -> 1.1
    nagios-plugin-check_ssl_cert.spec -> 1.2

check_ssl_cert.cfg [new file with mode: 0644]
nagios-plugin-check_ssl_cert.spec

diff --git a/check_ssl_cert.cfg b/check_ssl_cert.cfg
new file mode 100644 (file)
index 0000000..0d7ad51
--- /dev/null
@@ -0,0 +1,20 @@
+# Usage:
+# check_ssl_cert
+define command {
+       command_name    check_ssl_cert
+       command_line    /usr/lib/nagios/plugins/check_ssl_cert -H $HOSTADDRESS$ $ARG1$
+}
+
+define service {
+       use                     generic-service
+       name                    template
+       service_description     template
+       register                0
+
+       normal_check_interval   5
+       retry_check_interval    1
+
+       notification_interval   10
+
+       check_command           check_ssl_cert
+}
index 70e5a5521d49bee469905dbfd7ac26ea8ca3bee6..063a49a036cb0c943507350dff506019613ac87d 100644 (file)
@@ -3,11 +3,12 @@ Summary:      Nagios plugin to check the CA and validity of an X.509 certificate
 Summary(pl.UTF_8):     Wtyczka Nagiosa sprawdzająca CA i ważność certyfikatu X.509
 Name:          nagios-plugin-%{plugin}
 Version:       1.9.1
-Release:       0.1
+Release:       1
 License:       GPL v3
 Group:         Networking
 Source0:       https://trac.id.ethz.ch/projects/nagios_plugins/downloads/%{plugin}-%{version}.tar.gz
 # Source0-md5: 26b768e65e244f1057b443d7b4c8d49d
+Source1:       check_ssl_cert.cfg
 URL:           https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_ssl_cert
 Requires:      expect
 Requires:      nagios-common
@@ -32,35 +33,12 @@ jego poprawność.
 %prep
 %setup -q -n %{plugin}-%{version}
 
-cat > %{plugin}.cfg <<'EOF'
-# Usage:
-# %{plugin}
-define command {
-       command_name    %{plugin}
-       command_line    %{plugindir}/%{plugin} -H $HOSTADDRESS$ $ARG1$
-}
-
-define service {
-       use                     generic-service
-       name                    template
-       service_description     template
-       register                0
-
-       normal_check_interval   5
-       retry_check_interval    1
-
-       notification_interval   10
-
-       check_command           %{plugin}
-}
-EOF
-
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir},%{_mandir}/man1}
 install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
-cp -a %{plugin}.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
-install -p check_ssl_cert.1 $RPM_BUILD_ROOT%{_mandir}/man1
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
+cp -p check_ssl_cert.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.108739 seconds and 4 git commands to generate.