]> TLD Linux GIT Repositories - packages/munin-plugins-hq.git/commitdiff
- new spec
authorMarcin Krol <hawk@tld-linux.org>
Sat, 17 Oct 2015 13:11:52 +0000 (13:11 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Sat, 17 Oct 2015 13:11:52 +0000 (13:11 +0000)
munin-plugins-hq.spec [new file with mode: 0644]

diff --git a/munin-plugins-hq.spec b/munin-plugins-hq.spec
new file mode 100644 (file)
index 0000000..11cc480
--- /dev/null
@@ -0,0 +1,68 @@
+%include       /usr/lib/rpm/macros.perl
+Summary:       HQ Munin Plugins
+Summary(pl.UTF-8):     Wtyczki HQ dla munina
+Name:          munin-plugins-hq
+Version:       20151017
+Release:       1
+License:       GPL
+Group:         Daemons
+Source0:       http://munin.furud.net/download/%{name}-%{version}.tar.xz
+# Source0-md5: 4f527c959db2ea011f6e2a789f0888e2
+URL:           http://munin.furud.net/
+BuildRequires: perl-devel
+BuildRequires: rpm-perlprov
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.268
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package contains HQ Munin Plugins available at
+http://munin.furud.net/.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera wtyczki HQ dla munina dostępne pod adresem
+http://munin.furud.net/.
+
+%define        hq_package()\
+%package %{1}\
+Summary:       HQ Munin Plugin - %{1}\
+Summary(pl.UTF-8):     Wtyczka HQ dla munina - %{1}\
+Group:         Daemons\
+Requires:      munin-node\
+\
+%description %{1}\
+This package contains HQ Munin Plugin available at \
+http://munin.furud.net/. \
+\
+%description %{1} -l pl.UTF-8\
+Ten pakiet zawiera wtyczkę HQ dla munina dostępną pod adresem \
+http://munin.furud.net/. \
+\
+%files %{1}\
+%defattr(755,root,root,755)\
+%{_datadir}/munin/plugins/hq_%{1}*
+
+%prep
+%setup -q
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/munin/plugins/
+
+for i in plugins/hq_*; do
+       install -p $i $RPM_BUILD_ROOT%{_datadir}/munin/plugins/
+done
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%hq_package cpu
+%hq_package iostat
+%hq_package loadavg
+%hq_package memory
+%hq_package netif
+%hq_package netstat
+%hq_package ps
+%hq_package storage
+%hq_package uptime