Accepting request 146356 from home:posophe:branches:Base:System

Update to 2.1.1 and some changes

OBS-URL: https://build.opensuse.org/request/show/146356
OBS-URL: https://build.opensuse.org/package/show/Base:System/tuned?expand=0&rev=11
This commit is contained in:
Denisart Benjamin 2012-12-24 20:42:04 +00:00 committed by Git OBS Bridge
parent 5464f138be
commit c914a2717f
6 changed files with 70 additions and 32 deletions

View File

@ -1,25 +1,10 @@
--- a/dbus.conf 2012-08-16 17:42:23.000000000 +0200 --- a/dbus.conf 2012-08-16 17:42:23.000000000 +0200
+++ b/dbus.conf 2012-10-04 17:26:18.164945059 +0200 +++ b/dbus.conf 2012-10-04 17:26:18.164945059 +0200
@@ -7,22 +7,15 @@ @@ -9,7 +9,6 @@
-->
<busconfig> <busconfig>
-
<policy user="root">
<allow own="com.redhat.tuned"/>
<allow send_destination="com.redhat.tuned" />
- <allow receive_sender="com.redhat.tuned" />
</policy>
<policy context="default"> <policy context="default">
<deny send_destination="com.redhat.tuned"/> <deny send_destination="com.redhat.tuned" />
- - <allow receive_sender="com.redhat.tuned" />
<allow send_destination="com.redhat.tuned" send_interface="org.freedesktop.DBus.Introspectable" /> <allow send_destination="com.redhat.tuned" send_interface="org.freedesktop.DBus.Introspectable" />
-
<allow send_destination="com.redhat.tuned" send_interface="com.redhat.tuned.control" send_member="active_profile" />
<allow send_destination="com.redhat.tuned" send_interface="com.redhat.tuned.control" send_member="status" />
-
- <allow receive_sender="com.redhat.com" />
</policy>
-
</busconfig>

View File

@ -1,9 +1,9 @@
--- a/Makefile 2012-10-10 23:25:44.000000000 +0200 --- a/Makefile 2012-10-10 23:25:44.000000000 +0200
+++ b/Makefile 2012-10-30 12:52:03.786235413 +0100 +++ b/Makefile 2012-10-30 12:52:03.786235413 +0100
@@ -62,8 +62,8 @@ @@ -65,8 +65,8 @@
# runtime directory # runtime directory
mkdir -p $(DESTDIR)/var/run/tuned mkdir -p $(DESTDIR)/run/tuned
- mkdir -p $(DESTDIR)/etc/tmpfiles.d - mkdir -p $(DESTDIR)/etc/tmpfiles.d
- install -m 0644 tuned.tmpfiles $(DESTDIR)/etc/tmpfiles.d/tuned.conf - install -m 0644 tuned.tmpfiles $(DESTDIR)/etc/tmpfiles.d/tuned.conf
+ mkdir -p $(DESTDIR)/usr/lib/tmpfiles.d + mkdir -p $(DESTDIR)/usr/lib/tmpfiles.d
@ -11,3 +11,4 @@
# systemd units # systemd units
mkdir -p $(DESTDIR)$(UNITDIR) mkdir -p $(DESTDIR)$(UNITDIR)

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2de39523ec91ba023ab32df029c5fb7a7b0c5bf224e680b8dc064ce22ab70f81
size 60782

3
tuned-2.1.1.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a560fb54add4aa1215e0db48db247f26a1430d31ebb93ccf579f51991d952feb
size 54090

View File

@ -1,3 +1,33 @@
-------------------------------------------------------------------
Mon Dec 24 19:59:52 UTC 2012 - p.drouand@gmail.com
- Update to 2.1.1 version:
* fix: powertop2tuned execution
* fix: ownership of /etc/tuned
* daemon: allow running without selected profile
* daemon: fix profile merging, allow only safe characters in profile names
* daemon: implement missing methods in DBus interface
* daemon: implement profile recommendation
* daemon: improve daemonization, PID file handling
* daemon: improved device matching in profiles, negation possible
* daemon: various internal improvements
* executables: check for EUID instead of UID
* executables: run python with -Es to increase security
* plugins: cpu - fix cpupower execution
* plugins: disk - fix option setting
* plugins: mounts - new, currently supports only barriers control
* plugins: sysctl - fix a bug preventing settings application
* powertop2tuned: speedup, fix crashes with non-C locales
* powertop2tuned: support for powertop 2.2 output
* profiles: progress on replacing scripts with plugins
* tuned-adm: bash completion - suggest profiles from all supported locations
* tuned-adm: complete switch to D-bus
* tuned-adm: full control to users with physical access
- Add a %post script to try to autodetect the best profile
- Update the patches
- Change subpackages to be more coherent and for don't oblige to install
useless packages by user
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 30 18:46:27 UTC 2012 - p.drouand@gmail.com Tue Oct 30 18:46:27 UTC 2012 - p.drouand@gmail.com

View File

@ -17,7 +17,7 @@
Name: tuned Name: tuned
Version: 2.0.2 Version: 2.1.1
Release: 0 Release: 0
Summary: A dynamic adaptive system tuning daemon Summary: A dynamic adaptive system tuning daemon
License: GPL-2.0 License: GPL-2.0
@ -41,6 +41,7 @@ BuildRequires: systemd
Requires: dbus-python Requires: dbus-python
Requires: pygobject2 Requires: pygobject2
Requires: python-decorator Requires: python-decorator
Requires: /usr/bin/cpupower
%{?systemd_requires} %{?systemd_requires}
BuildArch: noarch BuildArch: noarch
@ -54,11 +55,19 @@ network and ATA harddisk devices are implemented.
%package utils %package utils
Summary: Disk and net statistic monitoring systemtap scripts Summary: Disk and net statistic monitoring systemtap scripts
Group: System/Base Group: System/Base
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}
Requires: systemtap
%description utils %description utils
The tuned-utils package contains several systemtap scripts to allow detailed This package contains utilities that can help you to fine tune your
system and manage tuned profiles.
%package utils-systemtap
Summary: Disk and net statistic monitoring systemtap scripts
Requires: %{name} = %{version}
Requires: systemtap
%description utils-systemtap
This package contains several systemtap scripts to allow detailed
manual monitoring of the system. Instead of the typical IO/sec it collects manual monitoring of the system. Instead of the typical IO/sec it collects
minimal, maximal and average time between operations to be able to minimal, maximal and average time between operations to be able to
identify applications that behave power inefficient (many small operations identify applications that behave power inefficient (many small operations
@ -82,6 +91,16 @@ rm -rf %{buildroot}/%{_datadir}/doc
%post %post
%service_add_post %{name}.service %service_add_post %{name}.service
# try to autodetect the best profile for the system in case there is none preset
if [ ! -f /etc/tuned/active_profile -o -z "`cat /etc/tuned/active_profile 2>/dev/null`" ]
then
PROFILE=`/usr/sbin/tuned-adm recommend 2>/dev/null`
[ "$PROFILE" ] || PROFILE=balanced
/usr/sbin/tuned-adm profile "$PROFILE" 2>/dev/null || echo -n "$PROFILE" > /etc/tuned/active_profile
fi
# convert active_profile from full path to name (if needed)
sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile
%preun %preun
%service_del_preun %{name}.service %service_del_preun %{name}.service
@ -109,19 +128,22 @@ rm -rf %{buildroot}/%{_datadir}/doc
%config %{_sysconfdir}/dbus-1/system.d/com.redhat.tuned.conf %config %{_sysconfdir}/dbus-1/system.d/com.redhat.tuned.conf
%{_unitdir}/tuned.service %{_unitdir}/tuned.service
%dir %{_localstatedir}/log/tuned %dir %{_localstatedir}/log/tuned
%ghost %{_localstatedir}/run/tuned
%dir /etc/tuned %dir /etc/tuned
%{_mandir}/man5/tuned* %{_mandir}/man5/tuned*
%{_mandir}/man8/tuned* %{_mandir}/man8/tuned*
%files utils %files utils
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc doc/TIPS.txt doc/README.scomes %doc COPYING
%{_bindir}/powertop2tuned
%files utils-systemtap
%defattr(-,root,root,-)
%doc doc/README.utils doc/README.scomes COPYING
%{_sbindir}/varnetload %{_sbindir}/varnetload
%{_sbindir}/netdevstat %{_sbindir}/netdevstat
%{_sbindir}/diskdevstat %{_sbindir}/diskdevstat
%{_sbindir}/scomes %{_sbindir}/scomes
%{_bindir}/powertop2tuned
%{_mandir}/man8/varnetload.* %{_mandir}/man8/varnetload.*
%{_mandir}/man8/netdevstat.* %{_mandir}/man8/netdevstat.*
%{_mandir}/man8/diskdevstat.* %{_mandir}/man8/diskdevstat.*