packages: nagios-plugin-check_rrd/nagios-plugin-check_rrd.spec - install ma...
glen
glen at pld-linux.org
Wed Oct 12 22:25:03 CEST 2011
Author: glen Date: Wed Oct 12 20:25:03 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- install manual page
---- Files affected:
packages/nagios-plugin-check_rrd:
nagios-plugin-check_rrd.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: packages/nagios-plugin-check_rrd/nagios-plugin-check_rrd.spec
diff -u packages/nagios-plugin-check_rrd/nagios-plugin-check_rrd.spec:1.1 packages/nagios-plugin-check_rrd/nagios-plugin-check_rrd.spec:1.2
--- packages/nagios-plugin-check_rrd/nagios-plugin-check_rrd.spec:1.1 Wed Oct 12 22:23:04 2011
+++ packages/nagios-plugin-check_rrd/nagios-plugin-check_rrd.spec Wed Oct 12 22:24:58 2011
@@ -13,6 +13,7 @@
URL: http://exchange.nagios.org/directory/Plugins/Databases/RRD/check_rrd-2Epl/details
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: perl-tools-pod
Requires: nagios-common
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -28,11 +29,15 @@
%setup -qcT
cp -p %{SOURCE0} %{plugin}
+%build
+pod2man %{plugin} > %{plugin}.1
+
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir},%{_mandir}/man1}
install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
+cp -p %{plugin}.1 $RPM_BUILD_ROOT%{_mandir}/man1
%clean
rm -rf $RPM_BUILD_ROOT
@@ -41,6 +46,7 @@
%defattr(644,root,root,755)
%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
%attr(755,root,root) %{plugindir}/%{plugin}
+%{_mandir}/man1/check_rrd.1*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -48,5 +54,8 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2011/10/12 20:24:58 glen
+- install manual page
+
Revision 1.1 2011/10/12 20:23:04 glen
- new
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_rrd/nagios-plugin-check_rrd.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list