add powermanagement and disk utils

This commit is contained in:
Ertuğrul Erata
2015-07-31 10:59:10 +03:00
parent ada4e1ce08
commit 5ddcdd77d9
70 changed files with 3472 additions and 61 deletions
@@ -0,0 +1,27 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
pisitools.dosed("configure", "DISABLE_DEPRECATED", deleteLine=True)
autotools.configure("--disable-static \
--disable-gtk-doc \
--enable-deprecated \
--enable-introspection")
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("ChangeLog", "COPYING", "README")
@@ -0,0 +1,8 @@
--- upower-0.9.4.orig/po/LINGUAS
+++ upower-0.9.4/po/LINGUAS
@@ -3,4 +3,4 @@
it
sv
pl
-
+tr
@@ -0,0 +1,34 @@
From b9cff29978113aefe3ad18521f383f12ab099a34 Mon Sep 17 00:00:00 2001
From: Cosimo Cecchi <cosimo@endlessm.com>
Date: Tue, 25 Feb 2014 09:43:04 +0000
Subject: Create the history directory at runtime
In addition to build time - this increases compatibilty with OSTree,
which starts out with an empty /var.
Signed-off-by: Richard Hughes <richard@hughsie.com>
---
diff --git a/src/up-history.c b/src/up-history.c
index f9d0fdf..795b093 100644
--- a/src/up-history.c
+++ b/src/up-history.c
@@ -414,6 +414,7 @@ up_history_set_directory (UpHistory *history, const gchar *dir)
{
g_free (history->priv->dir);
history->priv->dir = g_strdup (dir);
+ g_mkdir_with_parents (dir, 0755);
}
/**
@@ -887,7 +888,8 @@ up_history_init (UpHistory *history)
history->priv->data_time_full = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref);
history->priv->data_time_empty = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref);
history->priv->max_data_age = UP_HISTORY_DEFAULT_MAX_DATA_AGE;
- history->priv->dir = g_build_filename (HISTORY_DIR, NULL);
+
+ up_history_set_directory (history, HISTORY_DIR);
}
/**
--
cgit v0.9.0.2-2-gbebe
@@ -0,0 +1,24 @@
From 0d64bbddaa0078ef148d609a3cfad854cf00d7de Mon Sep 17 00:00:00 2001
From: Martin Pitt <martinpitt@gnome.org>
Date: Fri, 08 Nov 2013 13:59:50 +0000
Subject: lib: Fix segfault on getting property when daemon is not running
This fixes "upower --version" when the daemon is not running, and thus the
client proxy is NULL.
---
diff --git a/libupower-glib/up-client.c b/libupower-glib/up-client.c
index 35d7b5d..17fb02d 100644
--- a/libupower-glib/up-client.c
+++ b/libupower-glib/up-client.c
@@ -322,6 +322,9 @@ up_client_get_property (GObject *object,
UpClient *client;
client = UP_CLIENT (object);
+ if (client->priv->proxy == NULL)
+ return;
+
switch (prop_id) {
case PROP_DAEMON_VERSION:
g_value_set_string (value, up_client_glue_get_daemon_version (client->priv->proxy));
--
cgit v0.9.0.2-2-gbebe
@@ -0,0 +1,93 @@
# Turkish translation for devicekit-power.
# This file is distributed under the same license as the devicekit-power package.
# Ozan Çağlayan <ozan@pardus.org.tr>
#
msgid ""
msgstr ""
"Project-Id-Version: upower\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-09-06 09:41+0200\n"
"PO-Revision-Date: 2010-06-08 10:13+0100\n"
"Last-Translator: Ozan Çağlayan <ozan@pardus.org.tr>\n"
"Language-Team: Turkish <tr@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../policy/org.freedesktop.devicekit.power.policy.in.h:1
msgid "Authentication is required to hibernate the system"
msgstr "Sistemi disk kullanarak askıya almak için yetki gerekiyor"
#: ../policy/org.freedesktop.devicekit.power.policy.in.h:2
msgid "Authentication is required to suspend the system"
msgstr "Sistemi bellek kullanarak askıya almak için yetki gerekiyor"
#: ../policy/org.freedesktop.devicekit.power.policy.in.h:3
msgid "Hibernate the system"
msgstr "Disk kullanarak askıya al"
#: ../policy/org.freedesktop.devicekit.power.policy.in.h:4
msgid "Suspend the system"
msgstr "Bellek kullanarak askıya al"
#: ../policy/org.freedesktop.devicekit.power.qos.policy.in.h:1
msgid "Authentication is required to cancel a latency request"
msgstr "Gecikme isteğinin iptali için yetki gerekiyor"
#: ../policy/org.freedesktop.devicekit.power.qos.policy.in.h:2
msgid "Authentication is required to set a persistent latency setting"
msgstr "Gecikmenin kalıcı olarak ayarlanması için yetki gerekiyor"
#: ../policy/org.freedesktop.devicekit.power.qos.policy.in.h:3
msgid "Authentication is required to set administrator settings for latency control"
msgstr "Gecikme denetimi için yönetimsel ayarların yapılması yetki gerektiriyor"
#: ../policy/org.freedesktop.devicekit.power.qos.policy.in.h:4
msgid "Authentication is required to set the required latency of an application"
msgstr "Uygulamanın gecikmesinin ayarlanması yetki gerektiriyor"
#: ../policy/org.freedesktop.devicekit.power.qos.policy.in.h:5
msgid "Cancel a latency request"
msgstr "Gecikme isteğini iptal et"
#: ../policy/org.freedesktop.devicekit.power.qos.policy.in.h:6
msgid "Set a persistent latency setting"
msgstr "Gecikmeyi kalıcı olarak ayarla"
#: ../policy/org.freedesktop.devicekit.power.qos.policy.in.h:7
msgid "Set administrator settings for latency control"
msgstr "Gecikme denetimi için yönetimsel ayarları yap"
#: ../policy/org.freedesktop.devicekit.power.qos.policy.in.h:8
msgid "Set the required latency of an application"
msgstr "Bir uygulamanın gecikmesini ayarla"
#: ../src/dkp-main.c:134
#: ../tools/dkp-tool.c:213
msgid "Show extra debugging information"
msgstr "Ek hata ayıklama bilgileri göster"
#: ../tools/dkp-tool.c:214
msgid "Enumerate objects paths for devices"
msgstr "Aygıtlar için nesne yollarını sırala"
#: ../tools/dkp-tool.c:215
msgid "Dump all parameters for all objects"
msgstr "Tüm nesneler için parametreleri göster"
#: ../tools/dkp-tool.c:216
msgid "Get the wakeup data"
msgstr "Uyanma verisini al"
#: ../tools/dkp-tool.c:217
msgid "Monitor activity from the power daemon"
msgstr "Güç hizmeti etkinliklerini izle"
#: ../tools/dkp-tool.c:218
msgid "Monitor with detail"
msgstr "Detaylı izleme"
#: ../tools/dkp-tool.c:219
msgid "Show information about object path"
msgstr "Nesne yoluyla ilgili bilgi göster"
+170
View File
@@ -0,0 +1,170 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>upower</Name>
<Homepage>http://upower.freedesktop.org</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2+</License>
<IsA>library</IsA>
<IsA>app:console</IsA>
<Summary>Power Management Service</Summary>
<Description>upower provides a daemon, API and command line tools for managing power devices attached to the system.</Description>
<Archive sha1sum="8fc30c2d53b15c0a4e7c1bc077a912bc1aeb6138" type="tarxz">http://upower.freedesktop.org/releases/upower-0.9.23.tar.xz</Archive>
<AdditionalFiles>
<AdditionalFile target="po/tr.po">tr.po</AdditionalFile>
</AdditionalFiles>
<BuildDependencies>
<Dependency>dbus-devel</Dependency>
<Dependency>glib2-devel</Dependency>
<Dependency>polkit-devel</Dependency>
<Dependency>dbus-glib-devel</Dependency>
<Dependency>eudev-devel</Dependency>
<Dependency>libusb-devel</Dependency>
<Dependency>libplist-devel</Dependency>
<Dependency>libimobiledevice-devel</Dependency>
<Dependency>gobject-introspection-devel</Dependency>
<Dependency>docbook-xsl</Dependency>
<Dependency>intltool</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">add-tr.patch</Patch>
<!--<Patch level="1">fix-segfault.patch</Patch>-->
<!--<Patch level="1">create-dir-runtime.patch</Patch>-->
</Patches>
</Source>
<Package>
<Name>upower</Name>
<RuntimeDependencies>
<Dependency>dbus</Dependency>
<Dependency>glib2</Dependency>
<Dependency>polkit</Dependency>
<Dependency>dbus-glib</Dependency>
<Dependency>eudev</Dependency>
<Dependency>libplist</Dependency>
<Dependency>libimobiledevice</Dependency>
<Dependency releaseFrom="5">pm-utils</Dependency>
<Dependency>libusb</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="data">/lib</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/etc/dbus-1</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="config">/etc/UPower</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="data">/var/lib/upower</Path>
<Path fileType="data">/usr/share/dbus-1</Path>
<Path fileType="executable">/usr/libexec</Path>
<Path fileType="data">/usr/share/polkit-1</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="data">/usr/share/dbus-1/interfaces/*.xml</Path>
<Path fileType="data">/usr/lib/girepository-1.0/*.typelib</Path>
</Files>
</Package>
<Package>
<Name>upower-devel</Name>
<Summary>Development files for upower</Summary>
<RuntimeDependencies>
<Dependency release="current">upower</Dependency>
<Dependency>dbus-devel</Dependency>
<Dependency>glib2-devel</Dependency>
<Dependency>polkit-devel</Dependency>
<Dependency>dbus-glib-devel</Dependency>
<Dependency>eudev-devel</Dependency>
<Dependency>libplist-devel</Dependency>
<Dependency>libimobiledevice-devel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
<Path fileType="data">/usr/share/gir-1.0</Path>
</Files>
</Package>
<History>
<Update release="11">
<Date>2015-01-28</Date>
<Version>0.9.23</Version>
<Comment>Rebuild.</Comment>
<Name>Hakan Yıldız</Name>
<Email>hknyldz93@gmail.com</Email>
</Update>
<Update release="10">
<Date>2014-05-24</Date>
<Version>0.9.23</Version>
<Comment>Rebuild for gcc.</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="9">
<Date>2014-04-15</Date>
<Version>0.9.23</Version>
<Comment>Rebuild for libplist and libimobiledevice.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="8">
<Date>2014-04-05</Date>
<Version>0.9.23</Version>
<Comment>Rebuild and builddep docbook-xsl added.</Comment>
<Name>Ertuğrul Erata</Name>
<Email>ertugrulerata@gmail.com</Email>
</Update>
<Update release="7">
<Date>2014-03-02</Date>
<Version>0.9.23</Version>
<Comment>Add patch.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="6">
<Date>2014-01-08</Date>
<Version>0.9.23</Version>
<Comment>Moved some files to core pack</Comment>
<Name>Burak Fazıl Ertürk</Name>
<Email>burakerturk@pisilinux.org</Email>
</Update>
<Update release="5">
<Date>2013-12-19</Date>
<Version>0.9.23</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2013-08-20</Date>
<Version>0.9.21</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-07-03</Date>
<Version>0.9.20</Version>
<Comment>Fix suspend/hibernation issue</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-03-20</Date>
<Version>0.9.20</Version>
<Comment>Version bump</Comment>
<Name>Ertan Güven</Name>
<Email>ertan@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-10-20</Date>
<Version>0.9.18</Version>
<Comment>First release</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,13 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>upower</Name>
<Summary xml:lang="tr">Güç Yönetim Hizmeti</Summary>
<Description xml:lang="tr">upower, sisteme bağlı güç cihazlarını yönetmek için gerekli kitaplıkları ve sistem hizmetini sunar.</Description>
</Source>
<Package>
<Name>upower-devel</Name>
<Summary xml:lang="tr">upower için geliştirme dosyaları</Summary>
</Package>
</PISI>