SPECS: smokeping.spec - programs moved to sbin - img is directory, ...

glen glen at pld-linux.org
Wed Dec 28 17:23:26 CET 2005


Author: glen                         Date: Wed Dec 28 16:23:26 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- programs moved to sbin
- img is directory, mark so in filelist
- use rpm-perlprov to generate perl deps

---- Files affected:
SPECS:
   smokeping.spec (1.32 -> 1.33) 

---- Diffs:

================================================================
Index: SPECS/smokeping.spec
diff -u SPECS/smokeping.spec:1.32 SPECS/smokeping.spec:1.33
--- SPECS/smokeping.spec:1.32	Wed Dec 28 16:07:19 2005
+++ SPECS/smokeping.spec	Wed Dec 28 17:23:20 2005
@@ -1,9 +1,16 @@
 # $Revision$, $Date$
+# TODO
+# - resolve permission problem for webserver access to /usr/sbin/fping
+# - generated config does not always match the used webserver vhost (don't autogenerate it at all?)
+# - finish -cgi and main files, afaik templates/ needed only by -cgi
+# - use .patch not decruft()
+# - use other user than root for daemon (uid=stats perhaps)
+%include	/usr/lib/rpm/macros.perl
 Summary:	Smokeping - a latency grapher that uses rrdtool
 Summary(pl):	Smokeping - narzędzie do tworzenia wykresów opóźnień sieci
 Name:		smokeping
 Version:	2.0.5
-Release:	2
+Release:	2.5
 License:	GPL v2
 Group:		Networking/Utilities
 Source0:	http://people.ee.ethz.ch/~oetiker/webtools/smokeping/pub/%{name}-%{version}.tar.gz
@@ -13,14 +20,13 @@
 Source3:	%{name}-config
 URL:		http://people.ee.ethz.ch/~oetiker/webtools/smokeping/
 BuildRequires:	perl-tools-pod
+BuildRequires:	rpm-perlprov >= 4.1-13
 BuildRequires:	rpmbuild(macros) >= 1.264
 BuildRequires:	rrdtool
 BuildRequires:	sed >= 4.0
 Requires(post):	sed >= 4.0
 Requires(post,preun):	/sbin/chkconfig
 Requires:	fping
-Requires:	perl-base
-Requires:	perl-rrdtool
 Requires:	rc-scripts
 Requires:	rrdtool >= 1.2
 BuildArch:	noarch
@@ -83,7 +89,7 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir},%{_wwwconfdir},%{_bindir}} \
+install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir},%{_wwwconfdir},%{_sbindir}} \
 	$RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sharedstatedir}/%{name}/{img,rrd},%{_cgi_bindir}} \
 	$RPM_BUILD_ROOT%{_mandir}/man1
 
@@ -91,8 +97,8 @@
 install etc/config.dist $RPM_BUILD_ROOT%{_sysconfdir}
 #install etc/config-echoping.dist $RPM_BUILD_ROOT%{_sysconfdir}/config-echoping
 install etc/smokemail.dist $RPM_BUILD_ROOT%{_sysconfdir}/smokemail
-install bin/smokeping.dist $RPM_BUILD_ROOT%{_bindir}/smokeping
-install bin/tSmoke.dist $RPM_BUILD_ROOT%{_bindir}/tSmoke
+install bin/smokeping.dist $RPM_BUILD_ROOT%{_sbindir}/smokeping
+install bin/tSmoke.dist $RPM_BUILD_ROOT%{_sbindir}/tSmoke
 install htdocs/smokeping.cgi.dist $RPM_BUILD_ROOT%{_cgi_bindir}/smokeping.cgi
 cp -r lib/* $RPM_BUILD_ROOT%{_datadir}/%{name}
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
@@ -132,7 +138,6 @@
 fi
 
 /sbin/chkconfig --add %{name}
-
 if [ -f /var/lock/subsys/%{name} ]; then
 	/etc/rc.d/init.d/%{name} restart 1>&2
 else
@@ -163,7 +168,6 @@
 %triggerpostun -- %{name} < 2.0.5-0.3
 # we put trigger on main package, because we can't trigger in new package
 # this will create .rpmnew files when one installs -cgi package. but that's more than okay
-
 if [ -f /etc/httpd/httpd.conf/99_%{name}.conf.rpmsave ]; then
 	install -d %{_wwwconfdir}
 	mv -f /etc/httpd/httpd.conf/99_%{name}.conf.rpmsave %{_wwwconfdir}/httpd.conf
@@ -180,7 +184,7 @@
 %files
 %defattr(644,root,root,755)
 %doc CHANGES CONTRIBUTORS COPYRIGHT README TODO doc/*.txt doc/*.html
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_sbindir}/*
 %{_datadir}/smokeping
 %exclude %{_datadir}/smokeping/*.cgi
 %{_mandir}/man1/*.1*
@@ -189,7 +193,7 @@
 %attr(754,root,root) /etc/rc.d/init.d/*
 %dir %{_sharedstatedir}/%{name}
 %{_sharedstatedir}/%{name}/rrd
-%attr(775,root,http) %{_sharedstatedir}/%{name}/img
+%dir %attr(775,root,http) %{_sharedstatedir}/%{name}/img
 
 %files cgi
 %defattr(644,root,root,755)
@@ -204,6 +208,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.33  2005/12/28 16:23:20  glen
+- programs moved to sbin
+- img is directory, mark so in filelist
+- use rpm-perlprov to generate perl deps
+
 Revision 1.32  2005/12/28 15:07:19  blues
 - rel. 2 with fixed default config (keep old way of working). STBR
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/smokeping.spec?r1=1.32&r2=1.33&f=u



More information about the pld-cvs-commit mailing list