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
+21
View File
@@ -0,0 +1,21 @@
#!/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():
autotools.configure("--disable-static \
--disable-gtk-doc")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("AUTHORS", "COPYING", "NEWS", "README")
+248
View File
@@ -0,0 +1,248 @@
# Danish translations for udisks.
# This file is distributed under the same license as the udisks package.
#
# Ozan Çağlayan <ozan@pardus.org.tr>, 2011.
msgid ""
msgstr ""
"Project-Id-Version: udisks\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-12-01 14:36-0500\n"
"PO-Revision-Date: 2011-03-28 11:17+0300\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"
"Plural-Forms: nplurals=1;plural=0;\n"
"X-Generator: Lokalize 1.2\n"
#: ../policy/org.freedesktop.udisks.policy.in.h:1
msgid "Authentication is required to cancel a job initiated by another user"
msgstr ""
"Başka bir kullanıcı tarafından başlatılan bir görevi iptal etmek için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:2
msgid "Authentication is required to check the file system on the device"
msgstr "Aygıtın üzerindeki dosya sistemini denetlemek için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:3
msgid "Authentication is required to configure Linux Software RAID devices"
msgstr "Yazılımsal RAID aygıtlarını yapılandırmak için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:4
msgid "Authentication is required to configure drive spindown timeout"
msgstr ""
"Sürücünün dönüş hızının yavaşlama aralığını yapılandırmak için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:5
msgid "Authentication is required to detach the drive"
msgstr "Sürücüyü ayırmak için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:6
msgid "Authentication is required to eject media from the device"
msgstr "Ortamı aygıttan çıkartmak için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:7
msgid "Authentication is required to inhibit media detection"
msgstr "Ortam tanımayı engellemek için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:8
msgid "Authentication is required to list open files on a mounted file system"
msgstr ""
"Bağlı bir dosya sistemindeki açık dosyaların listelenmesi için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:9
msgid ""
"Authentication is required to lock an encrypted device unlocked by another "
"user"
msgstr ""
"Başka bir kullanıcı tarafından kilidi çözülmüş şifreli bir aygıtın "
"kilitlenmesi için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:10
msgid "Authentication is required to modify the device"
msgstr "Aygıtı değiştirmek için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:11
msgid "Authentication is required to mount the device"
msgstr "Aygıtı bağlamak için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:12
msgid "Authentication is required to refresh ATA SMART data"
msgstr "ATA SMART verilerinin tazelenmesi için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:13
msgid "Authentication is required to retrieve historical ATA SMART data"
msgstr "Eski ATA SMART verilerinin alınması için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:14
msgid "Authentication is required to run ATA SMART self tests"
msgstr "ATA SMART otomatik testlerinin çalıştırılması için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:15
msgid "Authentication is required to unlock an encrypted device"
msgstr "Şifrelenmiş bir aygıtın çözülmesi için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:16
msgid "Authentication is required to unmount devices mounted by another user"
msgstr ""
"Başka bir kullanıcı tarafından bağlanan aygıtların ayrılması için yetki gerekiyor"
#: ../policy/org.freedesktop.udisks.policy.in.h:17
msgid "Cancel a job initiated by another user"
msgstr "Başka bir kullanıcı tarafından başlatılan görevi iptal et"
#: ../policy/org.freedesktop.udisks.policy.in.h:18
msgid "Check file system of a system-internal device"
msgstr "Bir iç-sistem aygıtındaki dosya sistemini denetle"
#: ../policy/org.freedesktop.udisks.policy.in.h:19
msgid "Check file system on a device"
msgstr "Bir aygıttaki dosya sistemini denetle"
#: ../policy/org.freedesktop.udisks.policy.in.h:20
msgid "Configure Linux Software RAID"
msgstr "Yazılımsal RAID mekanizmasını yapılandır"
#: ../policy/org.freedesktop.udisks.policy.in.h:21
msgid "Detach a drive"
msgstr "Bir sürücüyü ayır"
#: ../policy/org.freedesktop.udisks.policy.in.h:22
msgid "Eject media from a device"
msgstr "Bir sürücüden ortam çıkart"
#: ../policy/org.freedesktop.udisks.policy.in.h:23
msgid "Inhibit media detection"
msgstr "Ortam algılamasını engelle"
#: ../policy/org.freedesktop.udisks.policy.in.h:24
msgid "List open files"
msgstr "Açık dosyaları listele"
#: ../policy/org.freedesktop.udisks.policy.in.h:25
msgid "List open files on a system-internal device"
msgstr "Bir iç-sistem aygıtındaki açık dosyaları listele"
#: ../policy/org.freedesktop.udisks.policy.in.h:26
msgid "Lock an encrypted device unlocked by another user"
msgstr ""
"Başka bir kullanıcı tarafından kilidi çözülmüş bir şifreli aygıtı kilitle"
#: ../policy/org.freedesktop.udisks.policy.in.h:27
msgid "Modify a device"
msgstr "Bir aygıtı değiştir"
#: ../policy/org.freedesktop.udisks.policy.in.h:28
msgid "Modify a system-internal device"
msgstr "Bir iç-sistem aygıtını değiştir"
#: ../policy/org.freedesktop.udisks.policy.in.h:29
msgid "Mount a device"
msgstr "Bir aygıtı bağla"
#: ../policy/org.freedesktop.udisks.policy.in.h:30
msgid "Mount a system-internal device"
msgstr "Bir iç-sistem aygıtını bağla"
#: ../policy/org.freedesktop.udisks.policy.in.h:31
msgid "Refresh ATA SMART data"
msgstr "ATA SMART verilerini tazele"
#: ../policy/org.freedesktop.udisks.policy.in.h:32
msgid "Retrieve historical ATA SMART data"
msgstr "Eski ATA SMART verilerini al"
#: ../policy/org.freedesktop.udisks.policy.in.h:33
msgid "Run ATA SMART Self Tests"
msgstr "ATA SMART Otomatik testlerini çalıştır"
#: ../policy/org.freedesktop.udisks.policy.in.h:34
msgid "Set drive spindown timeout"
msgstr "Sürücünün dönüş hızının yavaşlama aralığını belirle"
#: ../policy/org.freedesktop.udisks.policy.in.h:35
msgid "Unlock an encrypted device"
msgstr "Şifrelenmiş bir aygıtın kilidini çöz"
#: ../policy/org.freedesktop.udisks.policy.in.h:36
msgid "Unmount a device mounted by another user"
msgstr "Başka bir kullanıcı tarafından bağlanmış bir aygıtı ayır"
#: ../src/polkit-action-lookup.c:94
msgid "Authentication is required to delete a partition"
msgstr "Disk bölümünün silinmesi için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:95
msgid "Authentication is required to create a filesystem"
msgstr "Dosya sistemi oluşturmak için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:96
msgid "Authentication is required to create a partition"
msgstr "Disk bölümü oluşturmak için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:97
msgid "Authentication is required to modify a partition"
msgstr "Disk bölümünü düzenlemek için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:98
msgid "Authentication is required to create a partition table"
msgstr "Disk bölümü tablosu oluşturmak için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:99
msgid "Authentication is required to set the file system label"
msgstr "Dosya sistemi etiketini belirlemek için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:100
msgid "Authentication is required to stop a Software RAID device"
msgstr "Yazılımsal RAID aygıtını durdurmak için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:101
msgid "Authentication is required to check a Software RAID device"
msgstr "Yazılımsal RAID aygıtını denetlemek için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:102
msgid "Authentication is required to repair a Software RAID device"
msgstr "Yazılımsal RAID aygıtını onarmak için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:103
msgid ""
"Authentication is required to add a new component to a Software RAID device"
msgstr "Yazılımsal RAID aygıtını yeni bir bileşen eklemek için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:104
msgid ""
"Authentication is required to remove a component from a Software RAID device"
msgstr "Yazılımsal RAID aygıtından bir bileşen kaldırmak için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:105
msgid "Authentication is required to start a Software RAID device"
msgstr "Yazılımsal RAID aygıtını başlatmak için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:106
msgid "Authentication is required to create a Software RAID device"
msgstr "Yazılımsal RAID aygıtı oluşturmak için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:107
msgid "Authentication is required to inhibit polling on a drive"
msgstr ""
"Sürücünü periyodik sorgulanmasının (polling) engellenmesi için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:108
msgid "Authentication is required to poll for media"
msgstr "Periyodik ortam sorgulaması (polling) için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:109
msgid "Authentication is required to inhibit all drive polling"
msgstr ""
"Tüm sürücülerin periyodik sorgulanmasının (polling) engellenmesi için yetki gerekiyor"
#: ../src/polkit-action-lookup.c:187
msgid "Device"
msgstr "Aygıt"
#: ../src/polkit-action-lookup.c:212
msgid "Drive"
msgstr "Sürücü"
@@ -0,0 +1,57 @@
--- udisks-2.0.91.orig/src/udiskslinuxfilesystem.c
+++ udisks-2.0.91/src/udiskslinuxfilesystem.c
@@ -298,7 +298,7 @@ static const gchar *iso9660_allow_gid_se
/* ---------------------- udf -------------------- */
static const gchar *udf_defaults[] = { "uid=", "gid=", "iocharset=utf8", "umask=0077", NULL };
-static const gchar *udf_allow[] = { "iocharset=", "umask=", NULL };
+static const gchar *udf_allow[] = { "iocharset=", "umask=", "mode=", "dmode=", NULL };
static const gchar *udf_allow_uid_self[] = { "uid=", NULL };
static const gchar *udf_allow_gid_self[] = { "gid=", NULL };
@@ -512,7 +512,8 @@ is_mount_option_allowed (const FSMountOp
}
static gchar **
-prepend_default_mount_options (const FSMountOptions *fsmo,
+prepend_default_mount_options (UDisksBlock *block,
+ const FSMountOptions *fsmo,
uid_t caller_uid,
GVariant *given_options)
{
@@ -520,6 +521,8 @@ prepend_default_mount_options (const FSM
gint n;
gchar *s;
gid_t gid;
+ const gchar *probed_fs_type;
+ /* static default options from FSMountOptions */
const gchar *option_string;
options = g_ptr_array_new ();
@@ -552,6 +555,17 @@ prepend_default_mount_options (const FSM
}
}
+ /* dynamic default options */
+ /* some broken DVDs come with 0400 directory permissions, making them
+ * unreadable; overwrite readonly UDF media with a 0500 dmode. */
+ probed_fs_type = udisks_block_get_id_type(block);
+ if (g_strcmp0 (probed_fs_type, "udf") == 0 &&
+ udisks_block_get_read_only(block))
+ {
+ g_ptr_array_add (options, g_strdup("dmode=0500"));
+ }
+
+ /* user supplied options */
if (g_variant_lookup (given_options,
"options",
"&s", &option_string))
@@ -709,7 +723,7 @@ calculate_mount_options (UDisksDaemon
/* always prepend some reasonable default mount options; these are
* chosen here; the user can override them if he wants to
*/
- options_to_use = prepend_default_mount_options (fsmo, caller_uid, options);
+ options_to_use = prepend_default_mount_options (block, fsmo, caller_uid, options);
/* validate mount options */
str = g_string_new ("uhelper=udisks2,nodev,nosuid");
@@ -0,0 +1,16 @@
This patch was 'rejected' by upstream at least for now. Drop this from next
release of UDisks 2.x:
http://bugs.freedesktop.org/show_bug.cgi?id=36361#c5
Should be replaced by the udev rules file installed by ntfs-3g package.
--- src/udiskslinuxfilesystem.c.orig
+++ src/udiskslinuxfilesystem.c
@@ -164,6 +164,7 @@
"vfat",
"exfat",
"ntfs",
+ "ntfs-3g",
NULL,
};
+159
View File
@@ -0,0 +1,159 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>udisks2</Name>
<Homepage>http://udisks.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>Disk Management Service</Summary>
<Description>udisks provides a daemon, API and command line tools for managing disk devices attached to the system.</Description>
<Archive sha1sum="c6416ac581aec9c413b3b5e311d27543cff443fb" type="tarbz2">http://udisks.freedesktop.org/releases/udisks-2.1.4.tar.bz2</Archive>
<AdditionalFiles>
<AdditionalFile target="po/tr.po">tr.po</AdditionalFile>
</AdditionalFiles>
<BuildDependencies>
<Dependency>gtk-doc</Dependency>
<Dependency>acl-devel</Dependency>
<Dependency>glib2-devel</Dependency>
<Dependency>polkit-devel</Dependency>
<Dependency>eudev-devel</Dependency>
<Dependency>parted-devel</Dependency>
<Dependency>libatasmart-devel</Dependency>
<Dependency>device-mapper-devel</Dependency>
<Dependency>lvm2-devel</Dependency>
<Dependency>gobject-introspection-devel</Dependency>
<!--Dependency>sg3_utils-devel</Dependency-->
<Dependency>docbook-xsl</Dependency>
<Dependency>libxslt</Dependency>
<Dependency>intltool</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">udisks-2.0.91-udf-dvd-fix-dmask.patch</Patch>
<Patch level="0">udisks-2.x-ntfs-3g.patch</Patch>
</Patches>
</Source>
<Package>
<Name>udisks2</Name>
<RuntimeDependencies>
<Dependency>acl</Dependency>
<Dependency>glib2</Dependency>
<Dependency>polkit</Dependency>
<Dependency>eudev</Dependency>
<Dependency>lvm2</Dependency>
<Dependency>mdadm</Dependency>
<Dependency>parted</Dependency>
<Dependency>libatasmart</Dependency>
<Dependency>device-mapper</Dependency>
<Dependency>ntfsprogs</Dependency> <!-- For mkntfs -->
<Dependency>dosfstools</Dependency> <!-- For mkfs.vfat -->
<!--Dependency>mtools</Dependency--> <!-- For mlabel -->
<!--Dependency>xfsprogs</Dependency> < For mkfs.xfs, xfs_admin -->
<!--Dependency>sg3_utils</Dependency-->
<!--Dependency>smp_utils</Dependency> <For smp_rep_manufacturer -->
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc/udisks2</Path>
<Path fileType="config">/etc/dbus-1</Path>
<Path fileType="executable">/lib/udev/rules.d</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/usr/share/bash-completion/completions</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share/dbus-1</Path>
<Path fileType="data">/usr/share/gir-1.0</Path>
<Path fileType="doc">/usr/share/gtk-doc/</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="data">/usr/share/polkit-1/</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="data">/var/lib/</Path>
<Path fileType="data">/run/udisks</Path>
</Files>
</Package>
<Package>
<Name>udisks2-devel</Name>
<Summary>Development files for udisks2</Summary>
<RuntimeDependencies>
<Dependency release="current">udisks2</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/share/dbus-1/interfaces/*.xml</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="9">
<Date>2015-02-07</Date>
<Version>2.1.4</Version>
<Comment>Version bump.</Comment>
<Name>Hakan Yıldız</Name>
<Email>hknyldz93@gmail.com</Email>
</Update>
<Update release="8">
<Date>2014-05-25</Date>
<Version>2.1.3</Version>
<Comment>Rebuild.</Comment>
<Name>Kamil Atlı</Name>
<Email>suvarice@gmail.com</Email>
</Update>
<Update release="7">
<Date>2014-04-05</Date>
<Version>2.1.3</Version>
<Comment>add builddep docbook-xsl.</Comment>
<Name>Ertuğrul Erata</Name>
<Email>ertugrulerata@gmail.com</Email>
</Update>
<Update release="6">
<Date>2014-03-29</Date>
<Version>2.1.3</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="5">
<Date>2014-01-20</Date>
<Version>2.1.1</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2013-08-15</Date>
<Version>2.1.0</Version>
<Comment>V.bump</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-08-13</Date>
<Version>2.0.0</Version>
<Comment>fix path</Comment>
<Name>Erdinç Gültekin</Name>
<Email>erdincgultekin@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-07-26</Date>
<Version>2.0.0</Version>
<Comment>Release bump for rebuild.</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-10-22</Date>
<Version>2.0.0</Version>
<Comment>First release</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>udisks2</Name>
<Summary xml:lang="tr">Disk Yönetim Hizmeti</Summary>
<Description xml:lang="tr">udisks, sisteme bağlı disk aygıtlarını yönetmek için programlama kitaplığı ve komut satırı araçları sunar.</Description>
</Source>
<Package>
<Name>udisks2-devel</Name>
<Summary xml:lang="tr">udisks için geliştirme dosyaları</Summary>
</Package>
</PISI>