]> git.pld-linux.org Git - packages/nagios-plugin-check_poldek.git/commitdiff
- up to 0.6; by default enable distro own main repos auto/ac/nagios-plugin-check_poldek-0_6-1 auto/th/nagios-plugin-check_poldek-0_6-1
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 11 Jan 2012 19:23:28 +0000 (19:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    defaults.patch -> 1.1
    nagios-plugin-check_poldek.spec -> 1.18

defaults.patch [new file with mode: 0644]
nagios-plugin-check_poldek.spec

diff --git a/defaults.patch b/defaults.patch
new file mode 100644 (file)
index 0000000..1c82b7c
--- /dev/null
@@ -0,0 +1,13 @@
+--- nagios-plugin-check_poldek-0.6/check_poldek.py     2012-01-11 21:02:58.516032428 +0200
++++ nagios-plugin-check_poldek-0.6/check_poldek.py     2012-01-11 21:05:21.988515855 +0200
+@@ -34,8 +34,8 @@
+               "errorLevel":   10,
+               "warningLevel": 5,
+               "verbose":              False,
+-              "sources":              [],
+-              "cache":                "/tmp/check_poldek",
++              "sources":              @repos@,
++              "cache":                "/var/cache/check_poldek",
+               "extraArgs":    [],
+ }
index c853953a28d024688a48e548bbf1cb16aa9819ed..9a49c029d7da926ec5e6d7406fcc8c6047b8ee81 100644 (file)
@@ -2,14 +2,17 @@
 Summary:       Nagios plugin to check updates of poldek based systems
 Summary(pl.UTF-8):     Wtyczka Nagiosa sprawdzająca aktualizacje systemów używających poldka
 Name:          nagios-plugin-%{plugin}
-Version:       0.5
+Version:       0.6
 Release:       1
 License:       MIT
 Group:         Networking
-Source0:       http://github.com/pawelz/nagios-check_poldek/tarball/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: f1b67d7640f1c1558e6e99838b66a331
+#Source0:      http://github.com/pawelz/nagios-check_poldek/tarball/v%{version}/%{name}-%{version}.tar.gz
+Source0:       https://github.com/glensc/nagios-check_poldek/tarball/master/%{plugin}-%{version}.tgz
+# Source0-md5: fba5849a184ec310e018dd2ead225647
 Source1:       %{plugin}.cfg
+Patch0:                defaults.patch
 URL:           http://github.com/pawelz/nagios-check_poldek
+BuildRequires: rpm >= 4.4.9-56
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.552
 Requires:      grep
@@ -33,8 +36,9 @@ Wtyczka Nagiosa sprawdzająca aktualizacje systemów używających poldka.
 %prep
 %setup -qc
 mv */* .
+%patch0 -p1
 
-%{__sed} -i -e 's,/tmp/check_poldek,%{cachedir},' %{plugin}.py
+%{__sed} -i -e "s,@repos@,['%{pld_release}']," %{plugin}.py
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.385521 seconds and 4 git commands to generate.