add powermanagement and disk utils
This commit is contained in:
@@ -15,84 +15,85 @@
|
||||
<Description>KDE5 Utility that provides information about a computer system. </Description>
|
||||
<Archive sha1sum="44128252c2230568b3204806b756464686d23c8d" type="tarxz">http://download.kde.org/stable/plasma/5.3.2/kinfocenter-5.3.2.tar.xz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>qt5-base-devel</Dependency>
|
||||
<Dependency>python3</Dependency>
|
||||
<Dependency>pciutils-devel</Dependency>
|
||||
<Dependency>libX11-devel</Dependency>
|
||||
<Dependency>libgcc</Dependency>
|
||||
<Dependency>kcmutils-devel</Dependency>
|
||||
<Dependency>kcompletion-devel</Dependency>
|
||||
<Dependency>kconfig-devel</Dependency>
|
||||
<Dependency>kdelibs4-support-devel</Dependency>
|
||||
<Dependency>kdoctools-devel</Dependency>
|
||||
<Dependency>ki18n-devel</Dependency>
|
||||
<Dependency>kio-devel</Dependency>
|
||||
<Dependency>kwindowsystem-devel</Dependency>
|
||||
<Dependency>kxmlgui-devel</Dependency>
|
||||
<Dependency>kservice-devel</Dependency>
|
||||
<Dependency>kcoreaddons-devel</Dependency>
|
||||
<Dependency>kdbusaddons-devel</Dependency>
|
||||
<Dependency>kiconthemes-devel</Dependency>
|
||||
<Dependency>kconfigwidgets-devel</Dependency>
|
||||
<Dependency>kwidgetsaddons-devel</Dependency>
|
||||
<Dependency>libraw1394-devel</Dependency>
|
||||
<Dependency>plasma-framework-devel</Dependency>
|
||||
<Dependency>solid-devel</Dependency>
|
||||
<Dependency>pciutils-devel</Dependency>
|
||||
<Dependency>mesa-glu-devel</Dependency>
|
||||
<Dependency>extra-cmake-modules</Dependency>
|
||||
<Dependency>kcmutils-devel</Dependency>
|
||||
<Dependency>kcompletion-devel</Dependency>
|
||||
<Dependency>kconfig-devel</Dependency>
|
||||
<Dependency>kconfigwidgets-devel</Dependency>
|
||||
<Dependency>kcoreaddons-devel</Dependency>
|
||||
<Dependency>kdbusaddons-devel</Dependency>
|
||||
<Dependency>kdelibs4-support-devel</Dependency>
|
||||
<Dependency>kdoctools-devel</Dependency>
|
||||
<Dependency>ki18n-devel</Dependency>
|
||||
<Dependency>kiconthemes-devel</Dependency>
|
||||
<Dependency>kio-devel</Dependency>
|
||||
<Dependency>kservice-devel</Dependency>
|
||||
<Dependency>kwidgetsaddons-devel</Dependency>
|
||||
<Dependency>kwindowsystem-devel</Dependency>
|
||||
<Dependency>kxmlgui-devel</Dependency>
|
||||
<Dependency>libraw1394-devel</Dependency>
|
||||
<Dependency>libX11-devel</Dependency>
|
||||
<Dependency>mesa-glu-devel</Dependency>
|
||||
<Dependency>pciutils-devel</Dependency>
|
||||
<Dependency>pciutils-devel</Dependency>
|
||||
<Dependency>plasma-framework-devel</Dependency>
|
||||
<Dependency>qt5-base-devel</Dependency>
|
||||
<Dependency>solid-devel</Dependency>
|
||||
<Dependency>kemoticons-devel</Dependency>
|
||||
<Dependency>kitemmodels-devel</Dependency>
|
||||
<Dependency>kinit-devel</Dependency>
|
||||
<Dependency>kunitconversion-devel</Dependency>
|
||||
<Dependency>kwayland-devel</Dependency>
|
||||
<Dependency>kdesignerplugin</Dependency>
|
||||
<Dependency>docbook-xsl</Dependency>
|
||||
<Dependency>extra-cmake-modules</Dependency>
|
||||
<Dependency>cmake</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!--<Patch level="1">pisilinux-kinfocenter.diff</Patch> -->
|
||||
<!--<Patch level="1">pisilinux-kinfocenter.diff</Patch> -->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>kinfocenter</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>kcmutils</Dependency>
|
||||
<Dependency>kcompletion</Dependency>
|
||||
<Dependency>kconfig</Dependency>
|
||||
<Dependency>kconfigwidgets</Dependency>
|
||||
<Dependency>kcoreaddons</Dependency>
|
||||
<Dependency>kdbusaddons</Dependency>
|
||||
<Dependency>kdeclarative</Dependency>
|
||||
<Dependency>kdelibs4-support</Dependency>
|
||||
<Dependency>ki18n</Dependency>
|
||||
<Dependency>kiconthemes</Dependency>
|
||||
<Dependency>kio</Dependency>
|
||||
<Dependency>kservice</Dependency>
|
||||
<Dependency>kwayland</Dependency>
|
||||
<Dependency>kwidgetsaddons</Dependency>
|
||||
<Dependency>kxmlgui</Dependency>
|
||||
<Dependency>libgcc</Dependency>
|
||||
<Dependency>libraw1394</Dependency>
|
||||
<Dependency>libX11</Dependency>
|
||||
<Dependency>mesa-glu</Dependency>
|
||||
<Dependency>mesa</Dependency>
|
||||
<Dependency>pciutils</Dependency>
|
||||
<Dependency>qt5-base</Dependency>
|
||||
<Dependency>qt5-declarative</Dependency>
|
||||
<Dependency>pciutils</Dependency>
|
||||
<Dependency>libX11</Dependency>
|
||||
<Dependency>libgcc</Dependency>
|
||||
<Dependency>kservice</Dependency>
|
||||
<Dependency>kcoreaddons</Dependency>
|
||||
<Dependency>kdbusaddons</Dependency>
|
||||
<Dependency>kiconthemes</Dependency>
|
||||
<Dependency>kconfigwidgets</Dependency>
|
||||
<Dependency>kwidgetsaddons</Dependency>
|
||||
<Dependency>kcompletion</Dependency>
|
||||
<Dependency>kconfig</Dependency>
|
||||
<Dependency>kdelibs4-support</Dependency>
|
||||
<Dependency>ki18n</Dependency>
|
||||
<Dependency>kio</Dependency>
|
||||
<Dependency>kxmlgui</Dependency>
|
||||
<Dependency>libraw1394</Dependency>
|
||||
<Dependency>kwayland</Dependency>
|
||||
<Dependency>kcmutils</Dependency>
|
||||
<Dependency>solid</Dependency>
|
||||
<Dependency>kdeclarative</Dependency>
|
||||
<Dependency>mesa-glu</Dependency>
|
||||
<Dependency>qt5-declarative</Dependency>
|
||||
<Dependency>solid</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="config">/etc</Path>
|
||||
<Path fileType="config">/etc</Path>
|
||||
<Path fileType="data">/usr/share</Path>
|
||||
<Path fileType="localedata">/usr/share/locale</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="localedata">/usr/share/locale</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib/cmake</Path>
|
||||
<Path fileType="library">/usr/lib/qt5</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="library">/usr/lib/qt5</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/kde4/config/kcm-about-distrorc">kcm-about-distrorc</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
<Replaces>
|
||||
<Package>kde-workspace</Package>
|
||||
</Replaces>
|
||||
<Conflicts>
|
||||
<Package>kde-workspace</Package>
|
||||
</Conflicts>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
#!/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 autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
pisitools.dosed("Makefile", "(?m)^(CC.*)gcc", r"\1%s" % get.CC())
|
||||
pisitools.dosed("Makefile", "(?m)^(LDFLAGS.*)-s", r"\1%s" % get.LDFLAGS())
|
||||
pisitools.dosed("Makefile", "(?m)^(CFLAGS.*)-O2", r"\1%s" % get.CFLAGS())
|
||||
|
||||
def build():
|
||||
autotools.make('STRIP=: CC="%s"' % get.CC())
|
||||
|
||||
def install():
|
||||
pisitools.dosbin("hdparm", "/sbin")
|
||||
pisitools.dosbin("contrib/idectl", "/sbin")
|
||||
|
||||
pisitools.doman("hdparm.8")
|
||||
pisitools.dodoc("hdparm.lsm", "Changelog", "README.acoustic")
|
||||
@@ -0,0 +1,21 @@
|
||||
# /etc/conf.d/hdparm: Config file for hdparm
|
||||
#
|
||||
# Hdparm is a useful system utility for setting (E)IDE hard drive parameters and it can be
|
||||
# used to tweak hard drive performance and to spin down hard drives for power conservation
|
||||
#
|
||||
# For example, for all pata drives you can use this parameter
|
||||
#
|
||||
# all="-d1 -c1"
|
||||
#
|
||||
# If you have a Seagate disk then you may need to use -Z parameter to disable the automatic
|
||||
# power-saving function of certain Seagate drives to prevent them from idling/spinning-down
|
||||
# at inconvenient times
|
||||
#
|
||||
# hda="-d1 -c1 -Z"
|
||||
#
|
||||
# You can use -X parameter to set the IDE transfer mode for newer (E)IDE/ATA drives but you
|
||||
# should select the correct mode. PIO 1-4 (Programmed IO), SDMA 0-2 (Single-word DMA),
|
||||
# MDMA 0-2 (Multi-word DMA) and UDMA 0-5 (Ultra-DMA)
|
||||
#
|
||||
# hda="-d1 -c1 -X udma5"
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>hdparm</Name>
|
||||
<Homepage>http://sourceforge.net/projects/hdparm/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>as-is</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Utility to change hard drive performance parameters</Summary>
|
||||
<Description>hdparm has some useful utilities that allows you to get/set hard disk parameters for Linux IDE drives in runtime.</Description>
|
||||
<Archive sha1sum="3ffbcf46237245868a569125a6d5c92a0e07e7ce" type="targz">http://downloads.sourceforge.net/hdparm/hdparm-9.43.tar.gz</Archive>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>hdparm</Name>
|
||||
<Files>
|
||||
<Path fileType="executable">/sbin</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="config">/etc/conf.d</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/conf.d/hdparm">hdparm.confd</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="2">
|
||||
<Date>2014-05-24</Date>
|
||||
<Version>9.43</Version>
|
||||
<Comment>Rebuild for gcc.</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2011-02-02</Date>
|
||||
<Version>9.42</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>hdparm</Name>
|
||||
<Summary xml:lang="tr">Sabit disk parametrelerini değiştirmekte kullanılan araç</Summary>
|
||||
<Description xml:lang="tr">hdparm paketi çalışma anında Linux IDE sürücülerinin parametrelerini almanıza/değiştirmenize olanak sağlayan bazı kullanışlı uygulamaları içerir.</Description>
|
||||
<Description xml:lang="fr">le paquet hdparm dispose d'outils utiles permettant d'obtenir/établir les paramètres de disques durs IDE sous Linux en cours d'éxécution.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
@@ -0,0 +1,25 @@
|
||||
#!/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 autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
autotools.configure("--disable-static")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("README", "LGPL", "blob-examples/SAMSUNG*",
|
||||
"blob-examples/ST*", "blob-examples/Maxtor*",
|
||||
"blob-examples/WDC*", "blob-examples/FUJITSU*",
|
||||
"blob-examples/INTEL*", "blob-examples/TOSHIBA*",
|
||||
"blob-examples/MCC*")
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
From 26f0cc57fcf346753f17e75fb1378f053dcba92c Mon Sep 17 00:00:00 2001
|
||||
From: David Zeuthen <davidz@redhat.com>
|
||||
Date: Wed, 9 Dec 2009 17:14:36 -0500
|
||||
Subject: [PATCH] fix return of uninitialized variable
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
atasmart.c: In function ‘init_smart’:
|
||||
atasmart.c:2556: warning: ‘ret’ may be used uninitialized in this function
|
||||
|
||||
We apparently don't initialize the ret variable in init_smart() -
|
||||
unfortunately
|
||||
|
||||
o this warning is never reported with using -O0 (thanks gcc -
|
||||
see http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings though)
|
||||
|
||||
o we never run into this bug with just skdump(1)
|
||||
|
||||
The bug does show up in the udisks (aka DeviceKit-disks) use of
|
||||
libatasmart and this patch fixes it.
|
||||
|
||||
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
||||
---
|
||||
atasmart.c | 4 ++++
|
||||
1 files changed, 4 insertions(+), 0 deletions(-)
|
||||
|
||||
diff --git a/atasmart.c b/atasmart.c
|
||||
index 3ff0334..cf93819 100644
|
||||
--- a/atasmart.c
|
||||
+++ b/atasmart.c
|
||||
@@ -2564,6 +2564,8 @@ static int init_smart(SkDisk *d) {
|
||||
if (!disk_smart_is_available(d))
|
||||
return 0;
|
||||
|
||||
+ ret = -1;
|
||||
+
|
||||
if (!disk_smart_is_enabled(d)) {
|
||||
if ((ret = disk_smart_enable(d, TRUE)) < 0)
|
||||
goto fail;
|
||||
@@ -2580,6 +2582,8 @@ static int init_smart(SkDisk *d) {
|
||||
|
||||
disk_smart_read_thresholds(d);
|
||||
|
||||
+ ret = 0;
|
||||
+
|
||||
fail:
|
||||
return ret;
|
||||
}
|
||||
--
|
||||
1.6.5.5
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libatasmart</Name>
|
||||
<Homepage>http://git.0pointer.de/?p=libatasmart.git</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>LGPLv2+</License>
|
||||
<IsA>library</IsA>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>ATA S.M.A.R.T. Disk Health Monitoring Library</Summary>
|
||||
<Description>A small and lightweight parser library for ATA S.M.A.R.T. hard disk health monitoring.</Description>
|
||||
<Archive sha1sum="0d0745b6bd2e5b9461d15966b5daac6c98302de8" type="tarxz">http://0pointer.de/public/libatasmart-0.19.tar.xz</Archive>
|
||||
<Patches>
|
||||
<Patch level="1">libatasmart-uninitialized-var.patch</Patch>
|
||||
</Patches>
|
||||
<BuildDependencies>
|
||||
<Dependency>eudev-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libatasmart</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>eudev</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/sbin/skdump</Path>
|
||||
<Path fileType="executable">/usr/sbin/sktest</Path>
|
||||
<Path fileType="library">/usr/lib/libatasmart.so*</Path>
|
||||
<Path fileType="data">/usr/share/doc/libatasmart/README</Path>
|
||||
<Path fileType="data">/usr/share/doc/libatasmart/LGPL</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libatasmart-devel</Name>
|
||||
<Summary>Development files for libatasmart</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">libatasmart</Dependency>
|
||||
<Dependency>eudev-devel</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/share/vala</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="3">
|
||||
<Date>2014-05-25</Date>
|
||||
<Version>0.19</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>suvarice@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2014-01-29</Date>
|
||||
<Version>0.19</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Stefan Gronewold(groni)</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-10-02</Date>
|
||||
<Version>0.19</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libatasmart</Name>
|
||||
<Summary xml:lang="tr">ATA S.M.A.R.T. disk sağlığı izleme kitaplığı</Summary>
|
||||
<Description xml:lang="tr">libatasmart, ATA S.M.A.R.T. üzerinden disk sağlığını izlemek için kullanılan ufak ve hafif bir kitaplıktır.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libatasmart-devel</Name>
|
||||
<Summary xml:lang="tr">libatasmart için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
@@ -0,0 +1,31 @@
|
||||
#!/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 autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import libtools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
pisitools.flags.add("-Wno-unused-but-set-variable")
|
||||
autotools.autoreconf()
|
||||
autotools.autoconf()
|
||||
|
||||
autotools.configure("--disable-static \
|
||||
--disable-gcc-warnings")
|
||||
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
|
||||
pisitools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH", "\\1DIE_RPATH_DIE")
|
||||
|
||||
|
||||
def build():
|
||||
autotools.make("V=1")
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
pisitools.dodoc("AUTHORS", "BUGS", "ChangeLog", "NEWS", "README", "THANKS", "TODO")
|
||||
pisitools.dodoc("doc/API", "doc/USER.jp", "doc/FAT")
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>parted</Name>
|
||||
<Homepage>http://www.gnu.org/software/parted</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv3+</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Create, destroy, resize, check, copy partitions and file systems</Summary>
|
||||
<Description>The GNU Parted program allows you to create, destroy, resize, move, and copy hard disk partitions. Parted can be used for creating space for new operating systems, reorganizing disk usage, and copying data to new hard disks.</Description>
|
||||
<Archive sha1sum="78db6ca8dd6082c5367c8446bf6f7ae044091959" type="tarxz">http://ftp.gnu.org.ua/gnu/parted/parted-3.2.tar.xz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>libutil-linux-devel</Dependency>
|
||||
<Dependency>device-mapper-devel</Dependency>
|
||||
<Dependency>readline-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!--<Patch level="1">parted-2.2-hi-major-sd-rh611691.patch</Patch>-->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>parted</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libutil-linux</Dependency>
|
||||
<Dependency>ncurses</Dependency>
|
||||
<Dependency>device-mapper</Dependency>
|
||||
<Dependency>readline</Dependency>
|
||||
<Dependency>util-linux</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="executable">/usr/sbin</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="info">/usr/share/info</Path>
|
||||
<Path fileType="data">/usr/share/locale</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>parted-devel</Name>
|
||||
<Summary>Development files for parted</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">parted</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="4">
|
||||
<Date>2014-08-09</Date>
|
||||
<Version>3.2</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2014-05-25</Date>
|
||||
<Version>3.1</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>suvarice@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2014-02-02</Date>
|
||||
<Version>3.1</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Alihan Öztürk</Name>
|
||||
<Email>alihan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-10-05</Date>
|
||||
<Version>3.1</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>parted</Name>
|
||||
<Summary xml:lang="tr">GNU Parted disk bölümlerini oluşturmaya, silmeye, boyutlandırmaya, taşımaya ve kopyalamaya yarayan bir yazılımdır.</Summary>
|
||||
<Summary xml:lang="fr">Crée, supprime, modifie les dimensions, vérifie et copie partitions et systèmes de fichiers.</Summary>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>parted-devel</Name>
|
||||
<Summary xml:lang="tr">parted için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
@@ -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")
|
||||
@@ -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,
|
||||
};
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,3 @@
|
||||
<PISI>
|
||||
<Name>hardware.graphics</Name>
|
||||
</PISI>
|
||||
@@ -0,0 +1,22 @@
|
||||
#!/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 autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
|
||||
def setup():
|
||||
autotools.autoreconf("-vfi")
|
||||
autotools.configure("--with-x86emu")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("COPYING")
|
||||
@@ -0,0 +1,12 @@
|
||||
diff -Nur vbetool-1.1-old/vbetool.c vbetool-1.1/vbetool.c
|
||||
--- vbetool-1.1-old/vbetool.c 2008-05-27 15:41:04.000000000 +0300
|
||||
+++ vbetool-1.1/vbetool.c 2008-05-27 15:41:15.000000000 +0300
|
||||
@@ -529,7 +529,7 @@
|
||||
r.edi = (unsigned long)(id-LRMI_base_addr()) & 0xf;
|
||||
|
||||
if(sizeof(struct panel_id) != 32)
|
||||
- return fprintf(stderr, "oops: panel_id, sizeof struct panel_id != 32, it's %ld...\n", sizeof(struct panel_id)), 7;
|
||||
+ return fprintf(stderr, "oops: panel_id, sizeof struct panel_id != 32, it's %u...\n", sizeof(struct panel_id)), 7;
|
||||
|
||||
if(real_mode_int(0x10, &r))
|
||||
return fprintf(stderr, "Can't get panel id (vm86 failure)\n"), 8;
|
||||
@@ -0,0 +1,18 @@
|
||||
Index: vbetool-1.0/Makefile.am
|
||||
===================================================================
|
||||
--- vbetool-1.0.orig/Makefile.am
|
||||
+++ vbetool-1.0/Makefile.am
|
||||
@@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = foreign
|
||||
|
||||
sbin_PROGRAMS = vbetool
|
||||
|
||||
-vbetool_LDADD = $(libdir)/libpci.a
|
||||
+vbetool_LDADD = -lpci -lz -lx86
|
||||
|
||||
man_MANS = vbetool.1
|
||||
vbetool_SOURCES = vbetool.c $(x86)
|
||||
@@ -14,4 +14,3 @@ maintainer-clean-local:
|
||||
$(RM) Makefile.in aclocal.m4 config.h.in stamp-h.in configure
|
||||
|
||||
AM_CFLAGS = -g -Wall -pedantic -std=gnu99
|
||||
-AM_LDFLAGS = -lz -lx86
|
||||
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>vbetool</Name>
|
||||
<Homepage>http://www.codon.org.uk/~mjg59/vbetool/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Alter video hardware state through video BIOS</Summary>
|
||||
<Description>vbetools is a real-mode video BIOS code to alter hardware state. Vbetool uses lrmi in order to run code from the video BIOS. It is able to alter DPMS states, save/restore video card state and attempt to initialize the video card from scratch.</Description>
|
||||
<Archive sha1sum="c7ba7c0635160c47fb1b94fd7c7cbe39cb717d22" type="targz">http://www.codon.org.uk/~mjg59/vbetool/download/vbetool-1.1.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>libx86-devel</Dependency>
|
||||
<Dependency>pciutils-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">vbetool-1.0-build-as-needed.patch</Patch>
|
||||
<Patch level="1">unsigned_int.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>vbetool</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libx86</Dependency>
|
||||
<Dependency>pciutils</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="executable">/usr/sbin</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="2">
|
||||
<Date>2014-05-24</Date>
|
||||
<Version>1.1</Version>
|
||||
<Comment>Rebuild for gcc.</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2010-10-13</Date>
|
||||
<Version>1.1</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Pisi Linux Admins</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>vbetool</Name>
|
||||
<Summary xml:lang="tr">Gerçek kipte ekran BIOS değiştirme aracı (örn. ekran kartını yeniden başlatmak için)</Summary>
|
||||
<Description xml:lang="tr">Donanım durumunu değiştiren gerçek kipli video BIOS kodudur. Video BIOS'undan gelen kodları çalıştırmak için lrmi kullanır. Video kartının DPMS ve kaydet/tekrar inşaa et durumunun değiştirilmesini sağlar ve video kartının hatalı durumdan başlatılmasına çalışır.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
@@ -0,0 +1,19 @@
|
||||
#!/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 autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def build():
|
||||
autotools.make('CFLAGS="%s -fPIC" BACKEND=x86emu' % get.CFLAGS())
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.remove("/usr/lib/libx86.a")
|
||||
|
||||
pisitools.dodoc("COPYRIGHT")
|
||||
@@ -0,0 +1,21 @@
|
||||
--- lrmi.c.orig 2008-09-06 12:24:36.070136428 +0200
|
||||
+++ lrmi.c 2008-09-06 12:28:10.584287458 +0200
|
||||
@@ -55,6 +55,18 @@ OTHER DEALINGS IN THE SOFTWARE.
|
||||
#include "x86-common.h"
|
||||
|
||||
#if defined(__linux__)
|
||||
+#ifndef TF_MASK
|
||||
+#define TF_MASK X86_EFLAGS_TF
|
||||
+#endif
|
||||
+#ifndef IF_MASK
|
||||
+#define IF_MASK X86_EFLAGS_IF
|
||||
+#endif
|
||||
+#ifndef IOPL_MASK
|
||||
+#define IOPL_MASK X86_EFLAGS_IOPL
|
||||
+#endif
|
||||
+#ifndef VIF_MASK
|
||||
+#define VIF_MASK X86_EFLAGS_VIF
|
||||
+#endif
|
||||
#define DEFAULT_VM86_FLAGS (IF_MASK | IOPL_MASK)
|
||||
#elif defined(__NetBSD__) || defined(__FreeBSD__)
|
||||
#define DEFAULT_VM86_FLAGS (PSL_I | PSL_IOPL)
|
||||
@@ -0,0 +1,64 @@
|
||||
From fc4f25c4d16aaff7dcb5dd42cc20b292f4eb2218 Mon Sep 17 00:00:00 2001
|
||||
From: Dave Airlie <airlied@redhat.com>
|
||||
Date: Tue, 4 Aug 2009 13:08:42 +1000
|
||||
Subject: [PATCH] git add x86.pc
|
||||
|
||||
---
|
||||
Makefile | 15 ++++++++++++---
|
||||
x86.pc.in | 10 ++++++++++
|
||||
2 files changed, 22 insertions(+), 3 deletions(-)
|
||||
create mode 100644 x86.pc.in
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 951b617..953a499 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,6 +1,7 @@
|
||||
OBJECTS = x86-common.o
|
||||
CFLAGS ?= -O2 -Wall -DDEBUG -g
|
||||
LIBDIR ?= /usr/lib
|
||||
+INCLUDEDIR ?= /usr/include
|
||||
|
||||
ifeq ($(BACKEND),x86emu)
|
||||
OBJECTS += thunk.o x86emu/decode.o x86emu/debug.o x86emu/fpu.o \
|
||||
@@ -29,10 +30,18 @@ objclean:
|
||||
rm -f *.o *~
|
||||
|
||||
clean: objclean
|
||||
- rm -f *.so.1 *.a
|
||||
+ rm -f *.so.1 *.a x86.pc
|
||||
|
||||
-install: libx86.so.1
|
||||
+x86.pc:
|
||||
+ sed -e's,@prefix@,/usr,' x86.pc.in > x86.pc
|
||||
+ sed -e's,@exec_prefix@,/usr,' -i x86.pc
|
||||
+ sed -e's,@libdir@,${LIBDIR},' -i x86.pc
|
||||
+ sed -e's,@includedir@,${INCLUDEDIR},' -i x86.pc
|
||||
+ sed -e's,@PACKAGE_VERSION@,1.1,' -i x86.pc
|
||||
+
|
||||
+install: libx86.so.1 x86.pc
|
||||
install -D libx86.so.1 $(DESTDIR)$(LIBDIR)/libx86.so.1
|
||||
install -D libx86.a $(DESTDIR)$(LIBDIR)/libx86.a
|
||||
+ install -D x86.pc $(DESTDIR)$(LIBDIR)/pkgconfig/x86.pc
|
||||
ln -sf libx86.so.1 $(DESTDIR)$(LIBDIR)/libx86.so
|
||||
- install -p -m 0644 -D lrmi.h $(DESTDIR)/usr/include/libx86.h
|
||||
+ install -p -m 0644 -D lrmi.h $(DESTDIR)$(INCLUDEDIR)/libx86.h
|
||||
diff --git a/x86.pc.in b/x86.pc.in
|
||||
new file mode 100644
|
||||
index 0000000..711d90d
|
||||
--- /dev/null
|
||||
+++ b/x86.pc.in
|
||||
@@ -0,0 +1,10 @@
|
||||
+prefix=@prefix@
|
||||
+exec_prefix=@exec_prefix@
|
||||
+libdir=@libdir@
|
||||
+includedir=@includedir@
|
||||
+
|
||||
+Name: x86
|
||||
+Description: Library providing x86 emulator access
|
||||
+Version: @PACKAGE_VERSION@
|
||||
+Cflags: -I${includedir}
|
||||
+Libs: -L${libdir} -lx86
|
||||
--
|
||||
1.5.4.1
|
||||
|
||||
@@ -0,0 +1,187 @@
|
||||
diff -ur libx86-1.1/lrmi.c libx86-1.1.hack/lrmi.c
|
||||
--- libx86-1.1/lrmi.c 2006-10-30 15:10:16.000000000 -0500
|
||||
+++ libx86-1.1.hack/lrmi.c 2009-10-26 15:55:42.000000000 -0400
|
||||
@@ -136,7 +136,7 @@
|
||||
if (context.ready)
|
||||
return 1;
|
||||
|
||||
- if (!LRMI_common_init())
|
||||
+ if (!LRMI_common_init(0))
|
||||
return 0;
|
||||
|
||||
/*
|
||||
diff -ur libx86-1.1/thunk.c libx86-1.1.hack/thunk.c
|
||||
--- libx86-1.1/thunk.c 2008-04-02 20:48:00.000000000 -0400
|
||||
+++ libx86-1.1.hack/thunk.c 2009-10-26 16:05:39.000000000 -0400
|
||||
@@ -139,11 +139,11 @@
|
||||
int i;
|
||||
X86EMU_intrFuncs intFuncs[256];
|
||||
|
||||
- if (!LRMI_common_init())
|
||||
+ mmap_addr = LRMI_common_init(1);
|
||||
+
|
||||
+ if (!mmap_addr)
|
||||
return 0;
|
||||
|
||||
- mmap_addr = 0;
|
||||
-
|
||||
X86EMU_pioFuncs pioFuncs = {
|
||||
(&x_inb),
|
||||
(&x_inw),
|
||||
@@ -169,10 +169,10 @@
|
||||
X86_ESP = 0xFFF9;
|
||||
memset (stack, 0, 64*1024);
|
||||
|
||||
- *((char *)0) = 0x4f; /* Make sure that we end up jumping back to a
|
||||
- halt instruction */
|
||||
+ *mmap_addr = 0x4f; /* Make sure that we end up jumping back to a
|
||||
+ halt instruction */
|
||||
|
||||
- M.mem_base = 0;
|
||||
+ M.mem_base = (unsigned long)mmap_addr;
|
||||
M.mem_size = 1024*1024;
|
||||
|
||||
return 1;
|
||||
diff -ur libx86-1.1/x86-common.c libx86-1.1.hack/x86-common.c
|
||||
--- libx86-1.1/x86-common.c 2008-05-16 12:56:23.000000000 -0400
|
||||
+++ libx86-1.1.hack/x86-common.c 2009-10-26 16:03:21.000000000 -0400
|
||||
@@ -45,14 +45,15 @@
|
||||
static struct {
|
||||
int ready;
|
||||
int count;
|
||||
+ void *offset;
|
||||
struct mem_block blocks[REAL_MEM_BLOCKS];
|
||||
} mem_info = { 0 };
|
||||
|
||||
static int
|
||||
-real_mem_init(void)
|
||||
+real_mem_init(int high_page)
|
||||
{
|
||||
void *m;
|
||||
- int fd_zero;
|
||||
+ int fd_zero, flags = MAP_SHARED;
|
||||
|
||||
if (mem_info.ready)
|
||||
return 1;
|
||||
@@ -63,9 +64,12 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
+ if (!high_page)
|
||||
+ flags |= MAP_FIXED;
|
||||
+
|
||||
m = mmap((void *)REAL_MEM_BASE, REAL_MEM_SIZE,
|
||||
- PROT_READ | PROT_WRITE | PROT_EXEC,
|
||||
- MAP_FIXED | MAP_SHARED, fd_zero, 0);
|
||||
+ PROT_READ | PROT_WRITE | PROT_EXEC,
|
||||
+ flags, fd_zero, 0);
|
||||
|
||||
if (m == (void *)-1) {
|
||||
perror("mmap /dev/zero");
|
||||
@@ -76,6 +80,7 @@
|
||||
close(fd_zero);
|
||||
|
||||
mem_info.ready = 1;
|
||||
+ mem_info.offset = m;
|
||||
mem_info.count = 1;
|
||||
mem_info.blocks[0].size = REAL_MEM_SIZE;
|
||||
mem_info.blocks[0].free = 1;
|
||||
@@ -87,7 +92,7 @@
|
||||
real_mem_deinit(void)
|
||||
{
|
||||
if (mem_info.ready) {
|
||||
- munmap((void *)REAL_MEM_BASE, REAL_MEM_SIZE);
|
||||
+ munmap(mem_info.offset, REAL_MEM_SIZE);
|
||||
mem_info.ready = 0;
|
||||
}
|
||||
}
|
||||
@@ -119,7 +124,7 @@
|
||||
LRMI_alloc_real(int size)
|
||||
{
|
||||
int i;
|
||||
- char *r = (char *)REAL_MEM_BASE;
|
||||
+ char *r = (char *)mem_info.offset;
|
||||
|
||||
if (!mem_info.ready)
|
||||
return NULL;
|
||||
@@ -151,7 +156,7 @@
|
||||
LRMI_free_real(void *m)
|
||||
{
|
||||
int i;
|
||||
- char *r = (char *)REAL_MEM_BASE;
|
||||
+ char *r = (char *)mem_info.offset;
|
||||
|
||||
if (!mem_info.ready)
|
||||
return;
|
||||
@@ -200,13 +205,15 @@
|
||||
return *(unsigned short *)(i * 4);
|
||||
}
|
||||
|
||||
-int LRMI_common_init(void)
|
||||
+void *LRMI_common_init(int high_page)
|
||||
{
|
||||
- void *m;
|
||||
+ void *m, *offset;
|
||||
int fd_mem;
|
||||
|
||||
- if (!real_mem_init())
|
||||
- return 0;
|
||||
+ if (!real_mem_init(high_page))
|
||||
+ return NULL;
|
||||
+
|
||||
+ offset = mem_info.offset - REAL_MEM_BASE;
|
||||
|
||||
/*
|
||||
Map the Interrupt Vectors (0x0 - 0x400) + BIOS data (0x400 - 0x502)
|
||||
@@ -217,33 +224,33 @@
|
||||
if (fd_mem == -1) {
|
||||
real_mem_deinit();
|
||||
perror("open /dev/mem");
|
||||
- return 0;
|
||||
+ return NULL;
|
||||
}
|
||||
|
||||
- m = mmap((void *)0, 0x502,
|
||||
- PROT_READ | PROT_WRITE | PROT_EXEC,
|
||||
- MAP_FIXED | MAP_SHARED, fd_mem, 0);
|
||||
+ m = mmap(offset, 0x502,
|
||||
+ PROT_READ | PROT_WRITE | PROT_EXEC,
|
||||
+ MAP_FIXED | MAP_SHARED, fd_mem, 0);
|
||||
|
||||
if (m == (void *)-1) {
|
||||
close(fd_mem);
|
||||
real_mem_deinit();
|
||||
perror("mmap /dev/mem");
|
||||
- return 0;
|
||||
+ return NULL;
|
||||
}
|
||||
|
||||
- m = mmap((void *)0xa0000, 0x100000 - 0xa0000,
|
||||
+ m = mmap(offset+0xa0000, 0x100000 - 0xa0000,
|
||||
PROT_READ | PROT_WRITE | PROT_EXEC,
|
||||
MAP_FIXED | MAP_SHARED, fd_mem, 0xa0000);
|
||||
|
||||
if (m == (void *)-1) {
|
||||
- munmap((void *)0, 0x502);
|
||||
+ munmap(offset, 0x502);
|
||||
close(fd_mem);
|
||||
real_mem_deinit();
|
||||
perror("mmap /dev/mem");
|
||||
- return 0;
|
||||
+ return NULL;
|
||||
}
|
||||
|
||||
close(fd_mem);
|
||||
|
||||
- return 1;
|
||||
+ return offset;
|
||||
}
|
||||
diff -ur libx86-1.1/x86-common.h libx86-1.1.hack/x86-common.h
|
||||
--- libx86-1.1/x86-common.h 2006-09-07 18:44:27.000000000 -0400
|
||||
+++ libx86-1.1.hack/x86-common.h 2009-10-26 16:01:19.000000000 -0400
|
||||
@@ -40,4 +40,4 @@
|
||||
|
||||
void *LRMI_alloc_real(int size);
|
||||
void LRMI_free_real(void *m);
|
||||
-int LRMI_common_init(void);
|
||||
+void *LRMI_common_init(int high_page);
|
||||
@@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libx86</Name>
|
||||
<Homepage>http://www.codon.org.uk/~mjg59/libx86/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>A hardware-independent library for executing real-mode x86 code</Summary>
|
||||
<Description>libx86 contains the library and header files necessary for the development of programs that will use libx86 to make real-mode x86 calls.</Description>
|
||||
<Archive sha1sum="c55d8a428ab7f2084010c255aa8c666602544af9" type="targz">http://www.codon.org.uk/~mjg59/libx86/downloads/libx86-1.1.tar.gz</Archive>
|
||||
<Patches>
|
||||
<!-- Fix building on newer kernels -->
|
||||
<Patch>libx86-0.99-ifmask.patch</Patch>
|
||||
<Patch level="1">libx86-add-pkgconfig.patch</Patch>
|
||||
<Patch level="1">libx86-mmap-offset.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libx86</Name>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libx86-devel</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">libx86</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="2">
|
||||
<Date>2014-05-24</Date>
|
||||
<Version>1.1</Version>
|
||||
<Comment>Rebuild for gcc.</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2010-10-13</Date>
|
||||
<Version>1.1</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Pisi Linux Admins</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libx86</Name>
|
||||
<Summary xml:lang="tr">Gerçek-mod x86 kodlarını çalıştırmak için donanım-bağımsız bir kütüphane</Summary>
|
||||
<Description xml:lang="tr">libx86, gerçek-mod x86 çağrıları yapabilen programların geliştirilmesi için gerekli başlık dosyaları ve kütüphaneleri içerir.</Description>
|
||||
<Description xml:lang="es">A menudo puede ser útil poder realizar llamadas de BIOS x86 en modo real desde el espacio de usuarios. lrmi facilita para ello una interfaz simple para equipos x86, sin embargo no funciona en otras plataformas. libx86 facilita la interfaz lrmi, pero además funcionará en plataformas como amd64 y alpha.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
@@ -0,0 +1,3 @@
|
||||
<PISI>
|
||||
<Name>hardware.mobile</Name>
|
||||
</PISI>
|
||||
@@ -0,0 +1,30 @@
|
||||
#!/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-openssl \
|
||||
--disable-silent-rules \
|
||||
--without-cython \
|
||||
")
|
||||
|
||||
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
|
||||
# Remove rpath
|
||||
pisitools.dosed("libtool", "^hardcode_libdir_flag_spec=.*", "hardcode_libdir_flag_spec=\"\"")
|
||||
pisitools.dosed("libtool", "^runpath_var=LD_RUN_PATH", "runpath_var=DIE_RPATH_DIE")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("AUTHORS", "COPYING*", "NEWS", "README")
|
||||
@@ -0,0 +1,112 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libimobiledevice</Name>
|
||||
<Homepage>http://www.libimobiledevice.org</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>LGPLv2+</License>
|
||||
<License>GPLv2</License>
|
||||
<IsA>library</IsA>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Library for connecting to mobile devices</Summary>
|
||||
<Description>libimobiledevice is a library for connecting to mobile devices including phones and music players</Description>
|
||||
<Archive sha1sum="ac47ba39e7f8d8cb9379756773ece30458b93c80" type="tarbz2">http://www.libimobiledevice.org/downloads/libimobiledevice-1.1.7.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>gnutls-devel</Dependency>
|
||||
<Dependency>usbmuxd-devel</Dependency>
|
||||
<Dependency>libplist-devel</Dependency>
|
||||
<Dependency>libtasn1-devel</Dependency>
|
||||
<Dependency>libgcrypt-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libimobiledevice</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>gnutls</Dependency>
|
||||
<Dependency>usbmuxd</Dependency>
|
||||
<Dependency>libplist</Dependency>
|
||||
<Dependency>libtasn1</Dependency>
|
||||
<Dependency>libgcrypt</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="man">/usr/share/man/man1</Path>
|
||||
<Path fileType="doc">/usr/share/doc/libimobiledevice</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libimobiledevice-devel</Name>
|
||||
<Summary>Development files for libimobiledevice</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>gnutls-devel</Dependency>
|
||||
<Dependency>usbmuxd-devel</Dependency>
|
||||
<Dependency>libplist-devel</Dependency>
|
||||
<Dependency>libtasn1-devel</Dependency>
|
||||
<Dependency>libgcrypt-devel</Dependency>
|
||||
<Dependency release="current">libimobiledevice</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="library">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="8">
|
||||
<Date>2015-01-25</Date>
|
||||
<Version>1.1.7</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Hakan Yıldız</Name>
|
||||
<Email>hknyldz93@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="6">
|
||||
<Date>2014-05-24</Date>
|
||||
<Version>1.1.6</Version>
|
||||
<Comment>Rebuild for gcc.</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2014-04-15</Date>
|
||||
<Version>1.1.6</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2014-04-04</Date>
|
||||
<Version>1.1.5</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-04-12</Date>
|
||||
<Version>1.1.4</Version>
|
||||
<Comment>Fixed</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-03-18</Date>
|
||||
<Version>1.1.4</Version>
|
||||
<Comment>fix cython disagreement</Comment>
|
||||
<Name>Erdinç Gültekin</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-10-20</Date>
|
||||
<Version>1.1.4</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>libimobildevice</Name>
|
||||
<Summary xml:lang="tr">Mobil cihazlara bağlanmak için gerekli kitaplıklar</Summary>
|
||||
<Description xml:lang="tr">libimobildevice, telefonlar ve müzik çalarlar gibi mobil cihazlarla iletişim için kullanılan kitaplıklardır.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libimobildevice-devel</Name>
|
||||
<Summary xml:lang="tr">libimobildevice için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
@@ -0,0 +1,28 @@
|
||||
#!/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 pisitools
|
||||
from pisi.actionsapi import autotools
|
||||
|
||||
def setup():
|
||||
# do not link with installed old library
|
||||
pisitools.dosed("cython/Makefile.*", "(plist_la_LDFLAGS\s=.*)(\s-L\$\(libdir\))(.*)", r"\1\3")
|
||||
|
||||
autotools.configure("\
|
||||
--disable-static \
|
||||
--disable-silent-rules \
|
||||
")
|
||||
|
||||
pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
|
||||
|
||||
def build():
|
||||
autotools.make("-j1")
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("AUTHORS", "COPYING", "COPYING.LESSER", "README")
|
||||
@@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libplist</Name>
|
||||
<Homepage>http://matt.colyer.name/projects/iphone-linux</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>LGPLv2+</License>
|
||||
<License>GPLv2</License>
|
||||
<IsA>library</IsA>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Library for manipulating Apple Binary and XML Property Lists</Summary>
|
||||
<Description>libplist is a library for manipulating Apple Binary and XML Property Lists.</Description>
|
||||
<Archive sha1sum="1a105757596131e3230382c21e06407090505427" type="tarbz2">http://www.libimobiledevice.org/downloads/libplist-1.11.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>libxml2-devel</Dependency>
|
||||
<Dependency>python-devel</Dependency>
|
||||
<Dependency>cython</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libplist</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libxml2</Dependency>
|
||||
<Dependency>python</Dependency>
|
||||
<Dependency>libgcc</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libplist-devel</Name>
|
||||
<Summary>Development files for libplist</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">libplist</Dependency>
|
||||
<Dependency>libxml2-devel</Dependency>
|
||||
<Dependency>python-devel</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="header">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="5">
|
||||
<Date>2015-07-31</Date>
|
||||
<Version>1.11</Version>
|
||||
<Comment>Rebuild for gcc.</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2014-04-15</Date>
|
||||
<Version>1.11</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-06-02</Date>
|
||||
<Version>1.10</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-06-01</Date>
|
||||
<Version>1.8</Version>
|
||||
<Comment>Cosmetics Fixed</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-10-20</Date>
|
||||
<Version>1.8</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>libplist</Name>
|
||||
<Summary xml:lang="tr">Apple ikili dosyaları ve XML özellik listeleri üzerindeki işlemler için kütüphane</Summary>
|
||||
<Description xml:lang="tr">libplist, Apple ikili dosyaları ve XML özellik listeleri üzerindeki işlemler için gerekli bir kütüphanedir.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libplist-devel</Name>
|
||||
<Summary xml:lang="tr">libplist için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
@@ -0,0 +1,23 @@
|
||||
#!/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 pisitools
|
||||
from pisi.actionsapi import autotools
|
||||
|
||||
def setup():
|
||||
autotools.configure("\
|
||||
--disable-static \
|
||||
--disable-silent-rules \
|
||||
")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("AUTHORS", "README")
|
||||
@@ -0,0 +1,72 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>usbmuxd</Name>
|
||||
<Homepage>http://marcansoft.com/blog/iphonelinux/usbmuxd</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<License>LGPLv2.1</License>
|
||||
<IsA>service</IsA>
|
||||
<IsA>library</IsA>
|
||||
<Summary>Daemon for communicating with Apple's iPod Touch and iPhone</Summary>
|
||||
<Description>usbmuxd is a daemon used for communicating with Apple's iPod Touch and iPhone devices. It allows multiple services on the device to be accessed simultaneously.</Description>
|
||||
<Archive sha1sum="7b05ee971ba277591b76040078df598e3710f6db" type="tarbz2">http://www.libimobiledevice.org/downloads/libusbmuxd-1.0.9.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>libplist-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>usbmuxd</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libplist</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="executable">/usr/sbin</Path>
|
||||
<Path fileType="data">/lib/udev/rules.d</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>usbmuxd-devel</Name>
|
||||
<Summary>Development files for usbmuxd</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">usbmuxd</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="3">
|
||||
<Date>2014-05-24</Date>
|
||||
<Version>1.0.9</Version>
|
||||
<Comment>Rebuild for gcc.</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2014-04-15</Date>
|
||||
<Version>1.0.9</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-10-20</Date>
|
||||
<Version>1.0.8</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>usbmuxd</Name>
|
||||
<Summary xml:lang="tr">Apple iPod Touch ve iPhone iletişim hizmeti</Summary>
|
||||
<Description xml:lang="tr">usbmuxd, Apple iPod Touch ve iPhone cihazlarıyla iletişim kurmak için gerekli bir sistem hizmetidir. Aynı anda, birden fazla cihaza bağlanma imkanı sağlar.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>usbmuxd-devel</Name>
|
||||
<Summary xml:lang="tr">usbmuxd için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
@@ -0,0 +1,38 @@
|
||||
#!/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 shelltools
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
# Drop man pages to regenerate them
|
||||
shelltools.unlink("man/*.[18]")
|
||||
|
||||
autotools.configure()
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
# Install video quirks
|
||||
shelltools.copytree("../video-quirks", "%s/usr/lib/pm-utils" % get.installDIR())
|
||||
|
||||
# Create some initial directories
|
||||
for d in ("locks", "storage"):
|
||||
pisitools.dodir("/run/pm-utils/%s" % d)
|
||||
|
||||
pisitools.dodoc("COPYING", "ChangeLog", "AUTHORS")
|
||||
|
||||
# nm >=0.8.2 has native udev suspend/resume support
|
||||
pisitools.remove("/usr/lib/pm-utils/sleep.d/55NetworkManager")
|
||||
|
||||
# Remove hooks that cause hardware failure or don't make sense at all
|
||||
pisitools.remove("/usr/lib/pm-utils/power.d/harddrive")
|
||||
pisitools.remove("/usr/lib/pm-utils/power.d/disable_wol")
|
||||
@@ -0,0 +1,43 @@
|
||||
From 640b53438c20818b3e344343b58b1f1765606a85 Mon Sep 17 00:00:00 2001
|
||||
From: Martin Pitt <martin.pitt@ubuntu.com>
|
||||
Date: Mon, 31 Jan 2011 15:30:01 +0100
|
||||
Subject: [PATCH] 49bluetooth: Wait for btusb module to get unused
|
||||
|
||||
The 49bluetooth hook disables /proc/acpi/ibm/bluetooth but this isn't
|
||||
synchronous, i. e. it doesn't wait until the module usage count actually drops
|
||||
to 0. Due to that, it's impossible to add btusb to SUSPEND_MODULES (on some
|
||||
models/older kernels you need to do that to fix suspend problems), as at that
|
||||
point the module is still in use.
|
||||
|
||||
On my system (ThinkPad X201) the module takes between 0.3 and 0.5 seconds to
|
||||
unload, so use 100 ms wait steps with a timeout of 2 seconds.
|
||||
|
||||
Bug: https://bugs.freedesktop.org//show_bug.cgi?id=33759
|
||||
Bug-Ubuntu: https://launchpad.net/bugs/698331
|
||||
---
|
||||
pm/sleep.d/49bluetooth | 9 +++++++++
|
||||
1 files changed, 9 insertions(+), 0 deletions(-)
|
||||
|
||||
diff --git a/pm/sleep.d/49bluetooth b/pm/sleep.d/49bluetooth
|
||||
index d46ba49..0dc1909 100755
|
||||
--- a/pm/sleep.d/49bluetooth
|
||||
+++ b/pm/sleep.d/49bluetooth
|
||||
@@ -12,6 +12,15 @@ suspend_bluetooth()
|
||||
if grep -q enabled /proc/acpi/ibm/bluetooth; then
|
||||
savestate ibm_bluetooth enable
|
||||
echo disable > /proc/acpi/ibm/bluetooth
|
||||
+
|
||||
+ # wait for up to 2 seconds for the module to actually get
|
||||
+ # unused
|
||||
+ TIMEOUT=20
|
||||
+ while [ $TIMEOUT -ge 0 ]; do
|
||||
+ [ `cat /sys/module/btusb/refcnt` = 0 ] && break
|
||||
+ TIMEOUT=$((TIMEOUT-1))
|
||||
+ sleep 0.1
|
||||
+ done
|
||||
else
|
||||
savestate ibm_bluetooth disable
|
||||
fi
|
||||
--
|
||||
1.7.2.3
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
Description: Disable SATA link power management by default, as it still causes disk errors and corruptions on many hardware.
|
||||
Author: Martin Pitt <martin.pitt@ubuntu.com>
|
||||
Bug-Ubuntu: https://launchpad.net/bugs/539467
|
||||
|
||||
Index: pm-utils/pm/power.d/sata_alpm
|
||||
===================================================================
|
||||
--- pm-utils.orig/pm/power.d/sata_alpm 2011-02-01 15:53:09.164867778 +0100
|
||||
+++ pm-utils/pm/power.d/sata_alpm 2011-02-01 15:53:28.954867786 +0100
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
. "${PM_FUNCTIONS}"
|
||||
|
||||
-SATA_ALPM_ENABLE=${SATA_ALPM_ENABLE:-true}
|
||||
+SATA_ALPM_ENABLE=${SATA_ALPM_ENABLE:-false}
|
||||
|
||||
help() {
|
||||
cat <<EOF
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
This hook has 1 parameter:
|
||||
SATA_ALPM_ENABLE = whether to use SATA ALPM on battery.
|
||||
-Defaults to "true".
|
||||
+Defaults to "false".
|
||||
|
||||
EOF
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
From: Florian Kriener <florian@kriener.org>
|
||||
To: submit@bugs.debian.org
|
||||
Subject: [pm-utils] wrong path in intel-audio-powersave (and a small bug)
|
||||
Date: Sat, 25 Sep 2010 11:27:30 +0200
|
||||
|
||||
In the script intel-audio-powersave is this loop
|
||||
|
||||
for dev in /sys/module/snd_*/parameters/power_save; do
|
||||
[ -w "$dev/parameters/power_save" ] || continue
|
||||
printf "Setting power savings for $s to %d..." "$dev##*/" "$1"
|
||||
echo $1 > "$dev/parameters/power_save" && echo Done. || echo Failed.
|
||||
done
|
||||
|
||||
I think it should be
|
||||
|
||||
for dev in /sys/module/snd_*; do
|
||||
[ -w "$dev/parameters/power_save" ] || continue
|
||||
printf "Setting power savings for %s to %d..." "${dev##*/}" "$1"
|
||||
echo $1 > "$dev/parameters/power_save" && echo Done. || echo Failed.
|
||||
done
|
||||
|
||||
|
||||
This fixes the two bugs.
|
||||
|
||||
diff --git a/pm/power.d/intel-audio-powersave b/pm/power.d/intel-audio-powersave
|
||||
index 36675a8..da63e40 100644
|
||||
--- a/pm/power.d/intel-audio-powersave
|
||||
+++ b/pm/power.d/intel-audio-powersave
|
||||
@@ -20,9 +20,9 @@ EOF
|
||||
|
||||
audio_powersave() {
|
||||
[ "$INTEL_AUDIO_POWERSAVE" = "true" ] || exit $NA
|
||||
- for dev in /sys/module/snd_*/parameters/power_save; do
|
||||
+ for dev in /sys/module/snd_*; do
|
||||
[ -w "$dev/parameters/power_save" ] || continue
|
||||
- printf "Setting power savings for $s to %d..." "$dev##*/" "$1"
|
||||
+ printf "Setting power savings for %s to %d..." "${dev##*/}" "$1"
|
||||
echo $1 > "$dev/parameters/power_save" && echo Done. || echo Failed.
|
||||
done
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
Author: James Westby <james.westby@ubuntu.com>
|
||||
Description: Do not clear the log file on each operation, but instead append to it.
|
||||
This makes debugging of several suspends much easier.
|
||||
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=25255
|
||||
Bug-Ubuntu: https://launchpad.net/bugs/410352
|
||||
|
||||
Index: pm-utils/pm/pm-functions.in
|
||||
===================================================================
|
||||
--- pm-utils.orig/pm/pm-functions.in 2010-07-05 18:41:21.118322244 +0200
|
||||
+++ pm-utils/pm/pm-functions.in 2010-07-05 18:41:24.126325221 +0200
|
||||
@@ -271,7 +271,7 @@
|
||||
return 1
|
||||
fi
|
||||
export LOGGING=true
|
||||
- exec > "$1" 2>&1
|
||||
+ exec >> "$1" 2>&1
|
||||
}
|
||||
|
||||
check_suspend() { [ -n "$SUSPEND_MODULE" ]; }
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Check for and abort a hibernate if the kernel indicates it has been
|
||||
# updated, as we will be completly unable to resume.
|
||||
if [ "$1" = "hibernate" ] && [ -f "/run/do-not-hibernate" ]; then
|
||||
echo "kernel update inhibits hibernate (/run/do-not-hibernate present)"
|
||||
exit 1
|
||||
fi
|
||||
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
# Launch plymouth daemon if necessary
|
||||
|
||||
. "${PM_FUNCTIONS}"
|
||||
|
||||
# Fail if no plymouthd
|
||||
command_exists plymouthd || exit $NA
|
||||
|
||||
# Check for splash parameter in /proc/cmdline
|
||||
grep -qw "splash" /proc/cmdline || exit $NA
|
||||
|
||||
launch_plymouthd()
|
||||
{
|
||||
/sbin/plymouthd --mode=suspend
|
||||
return 0
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
hibernate|suspend)
|
||||
launch_plymouthd
|
||||
;;
|
||||
*) exit $NA
|
||||
;;
|
||||
esac
|
||||
@@ -0,0 +1,71 @@
|
||||
#!/bin/bash
|
||||
# vim:noexpandtab
|
||||
#
|
||||
# Author: Till Maas <opensource till name>
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
|
||||
source "${PM_FUNCTIONS}"
|
||||
source /etc/pm/config.d/hd-apm-restore.conf
|
||||
|
||||
HD_APM_DEVICES=""
|
||||
for udi in $(hal-find-by-capability --capability storage)
|
||||
do
|
||||
drive_type=$(hal-get-property --udi "${udi}" --key storage.drive_type)
|
||||
if [ "${drive_type}" == "disk" ]
|
||||
then
|
||||
HD_APM_DEVICES+="$(hal-get-property --udi "${udi}" --key block.device | sed 's,^/dev/,,') "
|
||||
|
||||
fi
|
||||
done
|
||||
|
||||
case "$1" in
|
||||
hibernate|suspend)
|
||||
for DEVICE in ${HD_APM_DEVICES}
|
||||
do
|
||||
HD_APM_FEATURE=$(hdparm -I "/dev/${DEVICE}" | grep "Advanced Power Management feature set")
|
||||
if [[ "${HD_APM_FEATURE}" != "" ]]
|
||||
then
|
||||
if (echo "${HD_APM_FEATURE}" | grep -q "*" )
|
||||
then
|
||||
HD_APM_LEVEL=$(hdparm -I "/dev/${DEVICE}" | grep "Advanced power management level" | cut -d" " -f 5)
|
||||
else
|
||||
HD_APM_LEVEL=255
|
||||
fi
|
||||
if [[ "${HD_APM_LEVEL}" != "unknown" ]]
|
||||
then
|
||||
echo "saving level ${HD_APM_LEVEL} for device ${DEVICE}"
|
||||
savestate "${DEVICE}" "${HD_APM_LEVEL}"
|
||||
else
|
||||
echo "Advanced Power Management value of device ${DEVICE} unknown"
|
||||
fi
|
||||
else
|
||||
echo "Advanced Power Management not supported by device ${DEVICE}."
|
||||
fi
|
||||
done
|
||||
;;
|
||||
thaw|resume)
|
||||
for DEVICE in ${HD_APM_DEVICES}
|
||||
do
|
||||
HD_APM_LEVEL=$(restorestate "${DEVICE}")
|
||||
if [[ "${HD_APM_LEVEL}" != "" ]]
|
||||
then
|
||||
echo "restoring level ${HD_APM_LEVEL} for device ${DEVICE}"
|
||||
hdparm -B "${HD_APM_LEVEL}" "/dev/${DEVICE}"
|
||||
fi
|
||||
done
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
exit $?
|
||||
@@ -0,0 +1,26 @@
|
||||
Index: pm-utils-1.4.1/pm/module.d/uswsusp
|
||||
===================================================================
|
||||
--- pm-utils-1.4.1.orig/pm/module.d/uswsusp
|
||||
+++ pm-utils-1.4.1/pm/module.d/uswsusp
|
||||
@@ -82,6 +82,7 @@ fi
|
||||
if [ -z "$HIBERNATE_MODULE" ] && \
|
||||
[ -f /sys/power/disk ] && \
|
||||
grep -q disk /sys/power/state && \
|
||||
+ grep -q "resume=" /proc/cmdline && \
|
||||
[ -c /dev/snapshot ] &&
|
||||
command_exists s2disk; then
|
||||
HIBERNATE_MODULE="uswsusp"
|
||||
Index: pm-utils-1.4.1/pm/pm-functions.in
|
||||
===================================================================
|
||||
--- pm-utils-1.4.1.orig/pm/pm-functions.in
|
||||
+++ pm-utils-1.4.1/pm/pm-functions.in
|
||||
@@ -306,7 +306,8 @@ fi
|
||||
|
||||
if [ -z "$HIBERNATE_MODULE" ] && \
|
||||
[ -f /sys/power/disk ] && \
|
||||
- grep -q disk /sys/power/state; then
|
||||
+ grep -q disk /sys/power/state && \
|
||||
+ grep -q "resume=" /proc/cmdline; then
|
||||
HIBERNATE_MODULE="kernel"
|
||||
do_hibernate()
|
||||
{
|
||||
@@ -0,0 +1,99 @@
|
||||
Index: pm-utils-1.4.1/configure.ac
|
||||
===================================================================
|
||||
--- pm-utils-1.4.1.orig/configure.ac
|
||||
+++ pm-utils-1.4.1/configure.ac
|
||||
@@ -41,7 +41,6 @@ man/Makefile
|
||||
src/Makefile
|
||||
pm/Makefile
|
||||
pm/sleep.d/Makefile
|
||||
-pm/power.d/Makefile
|
||||
pm/module.d/Makefile
|
||||
])
|
||||
|
||||
Index: pm-utils-1.4.1/man/Makefile.am
|
||||
===================================================================
|
||||
--- pm-utils-1.4.1.orig/man/Makefile.am
|
||||
+++ pm-utils-1.4.1/man/Makefile.am
|
||||
@@ -2,7 +2,6 @@ pm_mans = \
|
||||
on_ac_power.1 \
|
||||
pm-is-supported.1 \
|
||||
pm-pmu.8 \
|
||||
- pm-powersave.8 \
|
||||
pm-action.8
|
||||
|
||||
if HAVE_XMLTO
|
||||
@@ -13,7 +12,6 @@ EXTRA_DIST = \
|
||||
on_ac_power.xml \
|
||||
pm-pmu.xml \
|
||||
pm-is-supported.xml \
|
||||
- pm-powersave.xml \
|
||||
pm-action.xml \
|
||||
$(pm_mans)
|
||||
|
||||
Index: pm-utils-1.4.1/pm/sleep.d/Makefile.am
|
||||
===================================================================
|
||||
--- pm-utils-1.4.1.orig/pm/sleep.d/Makefile.am
|
||||
+++ pm-utils-1.4.1/pm/sleep.d/Makefile.am
|
||||
@@ -2,8 +2,7 @@ sleepdir = $(libdir)/pm-utils/sleep.d
|
||||
|
||||
sleep_SCRIPTS = \
|
||||
00logging \
|
||||
- 00powersave \
|
||||
- 01grub \
|
||||
+ 01grub \
|
||||
49bluetooth \
|
||||
55NetworkManager \
|
||||
75modules \
|
||||
Index: pm-utils-1.4.1/pm/Makefile.am
|
||||
===================================================================
|
||||
--- pm-utils-1.4.1.orig/pm/Makefile.am
|
||||
+++ pm-utils-1.4.1/pm/Makefile.am
|
||||
@@ -1,6 +1,5 @@
|
||||
SUBDIRS = \
|
||||
sleep.d \
|
||||
- power.d \
|
||||
module.d
|
||||
|
||||
pm_libdir = $(libdir)/pm-utils
|
||||
Index: pm-utils-1.4.1/pm/HOWTO.hooks
|
||||
===================================================================
|
||||
--- pm-utils-1.4.1.orig/pm/HOWTO.hooks
|
||||
+++ pm-utils-1.4.1/pm/HOWTO.hooks
|
||||
@@ -24,12 +24,6 @@ The actual sleep method being used will
|
||||
if your hook needs to handle suspend-hybrid (or any other platform-specific
|
||||
sleep method), it should examine the second parameter.
|
||||
|
||||
-For hooks in power.d, the potential values of that parameter are:
|
||||
-true -- the hook MUST perform whatever action is appropriate when the system
|
||||
- transitions TO battery power.
|
||||
-false -- The hook MUST perform whatever action is appropriate when the system
|
||||
- transitions FROM battery power.
|
||||
-
|
||||
NAMING SCHEME
|
||||
|
||||
All hooks are run in lexical sort order according to the C locale.
|
||||
@@ -44,8 +38,7 @@ Any other return code is interpreted by
|
||||
from the hook that it should abort whatever it is doing. When running sleep.d
|
||||
hooks, that means that pm-utils stops running hooks, aborts the suspend/resume
|
||||
process, calls any hooks that ran successfully prior to this one with the
|
||||
-appropriate wakeup options, and exits with a non-zero exit code. When running
|
||||
-power.d hooks, any hooks after this one will be skipped.
|
||||
+appropriate wakeup options, and exits with a non-zero exit code.
|
||||
|
||||
SLEEP.D SPECIFIC NOTES
|
||||
|
||||
Index: pm-utils-1.4.1/src/Makefile.am
|
||||
===================================================================
|
||||
--- pm-utils-1.4.1.orig/src/Makefile.am
|
||||
+++ pm-utils-1.4.1/src/Makefile.am
|
||||
@@ -16,9 +16,7 @@ bin_SCRIPTS = pm-is-supported
|
||||
|
||||
dist_bin_SCRIPTS = on_ac_power
|
||||
|
||||
-sbin_SCRIPTS = pm-powersave
|
||||
-
|
||||
-script_in_files = pm-action.in pm-is-supported.in pm-powersave.in service
|
||||
+script_in_files = pm-action.in pm-is-supported.in service
|
||||
|
||||
CLEANFILES = $(script_in_files:.in=)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# Config file for hd-apm-restore hook
|
||||
|
||||
# Devices, where the hd apm value should be restored, separated by space
|
||||
#HD_APM_DEVICES="sda"
|
||||
|
||||
# Use this to overwrite a value for a device in case hdparm reports
|
||||
# "unknown value" for the apm level. This is ignored when hdparm
|
||||
# returns an other value.
|
||||
#savestate sda 192
|
||||
#savestate sdb 192
|
||||
#savestate sdc 192
|
||||
#savestate sdd 192
|
||||
@@ -0,0 +1,25 @@
|
||||
# This file configures the ability to wake from suspend or hibernate
|
||||
# at a given time. It is used in conjunction with the 02rtcwake hook.
|
||||
|
||||
# Whether to respect the user-passed-in num_seconds_to_sleep
|
||||
# If off, then the system configuration (below) will be used even if
|
||||
# the user passes in a num_seconds_to_sleep.
|
||||
#USER_RTCWAKE_ALLOWED="no"
|
||||
USER_RTCWAKE_ALLOWED="yes"
|
||||
|
||||
# Should we wake up from suspend on a given time?
|
||||
# if those are set to "no", the configuration values below have no effect.
|
||||
#SUSPEND_RTCWAKE_ENABLED="yes"
|
||||
#HIBERNATE_RTCWAKE_ENABLED="yes"
|
||||
SUSPEND_RTCWAKE_ENABLED="no"
|
||||
HIBERNATE_RTCWAKE_ENABLED="no"
|
||||
|
||||
# Time to wake up in local, 24-hour time
|
||||
#RTCWAKE_TIME="22:30"
|
||||
#RTCWAKE_TIME="9:00"
|
||||
|
||||
# Days to wake up (1=monday, 7=sunday), in increasing order,
|
||||
# with a single space between each day
|
||||
#RTCWAKE_DAYS="1 2 3 4 5"
|
||||
#RTCWAKE_DAYS="1 3 5"
|
||||
#RTCWAKE_DAYS="1 2 3 4 5 6 7"
|
||||
@@ -0,0 +1,202 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Stefan Seyfried, SUSE Linux Products GmbH 2006, GPL v2
|
||||
# mostly taken from the powersave project.
|
||||
|
||||
GRUBONCE="/usr/sbin/grubonce"
|
||||
GRUBDEFAULT="/boot/grub/default"
|
||||
GRUBDEFSAVE="/run/suspend.grubonce.default"
|
||||
|
||||
#####################################################################
|
||||
# gets a list of available kernels from /boot/grub/menu.lst
|
||||
# kernels are in the array $KERNELS, output to stdout to be eval-ed.
|
||||
getkernels()
|
||||
{
|
||||
# DEBUG "Running getkernels()" INFO
|
||||
local MENU_LST="/boot/grub/menu.lst"
|
||||
local I DUMMY MNT ROOTDEV
|
||||
declare -i I=0 J=-1
|
||||
|
||||
# we need the root partition later to decide if this is the kernel to select
|
||||
while read ROOTDEV MNT DUMMY; do
|
||||
[ "$ROOTDEV" = "rootfs" ] && continue # not what we are searching for
|
||||
if [ "$MNT" = "/" ]; then
|
||||
break
|
||||
fi
|
||||
done < /proc/mounts
|
||||
|
||||
# build an array KERNELS with all the kernels in /boot/grub/menu.lst
|
||||
# the array MENU_ENTRIES contains the corresponding menu entry numbers
|
||||
# DEFAULT_BOOT contains the default entry.
|
||||
while read LINE; do
|
||||
case $LINE in
|
||||
title*)
|
||||
let J++ # increase for every menu entry, even for non-linux
|
||||
# DEBUG "Found grub menu entry #${J}: '${LINE}'" INFO
|
||||
;;
|
||||
default*)
|
||||
DUMMY=($LINE) # "default 0 #maybe a comment"
|
||||
echo "DEFAULT_BOOT=${DUMMY[1]}" # ^^[0]^^ 1 ^^[2]^ 3 ^^[4]^^
|
||||
# DEBUG "Default boot entry is '${DUMMY[1]}'" INFO
|
||||
;;
|
||||
kernel*noresume*)
|
||||
# we probably found the "failsafe" kernel that won't resume...
|
||||
echo " Skipping grub entry #${J}, because it has the noresume option" >&2
|
||||
;;
|
||||
kernel*root=*)
|
||||
local ROOT
|
||||
ROOT=${LINE#*root=}
|
||||
DUMMY=($ROOT)
|
||||
ROOT=${DUMMY[0]}
|
||||
if [ "$(echo $ROOT | grep LABEL)" ]; then
|
||||
LABEL=`echo $ROOT | cut -d"=" -f2`
|
||||
ROOT=`readlink -f /dev/disk/by-label/$LABEL`
|
||||
elif [ "$(echo $ROOT | grep UUID)" ]; then
|
||||
UUID=`echo $ROOT | cut -d"=" -f2`
|
||||
ROOT=`readlink -f /dev/disk/by-uuid/$UUID`
|
||||
fi
|
||||
if [ "$(stat -Lc '%t:%T' $ROOT)" != "$(stat -Lc '%t:%T' $ROOTDEV)" ]; then
|
||||
echo " Skipping grub entry #${J}, because its root= parameter ($ROOT)" >&2
|
||||
echo " does not match the current root device ($ROOTDEV)." >&2
|
||||
continue
|
||||
fi
|
||||
DUMMY=($LINE) # kernel (hd0,1)/boot/latestkernel-ABC root=/dev/hda2
|
||||
echo "KERNELS[$I]='${DUMMY[1]##*/}'" # latestkernel-ABC
|
||||
echo "MENU_ENTRIES[$I]=$J"
|
||||
# DEBUG "Found kernel entry #${I}: '${DUMMY[1]##*/}'" INFO
|
||||
let I++
|
||||
;;
|
||||
kernel*)
|
||||
# a kernel without "root="? We better skip that one...
|
||||
echo " Skipping grub entry #${J}, because it has no root= option" >&2
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
done < $MENU_LST
|
||||
}
|
||||
|
||||
#############################################################
|
||||
# runs grubonce from the grub package to select which kernel
|
||||
# to boot on next startup
|
||||
grub-once()
|
||||
{
|
||||
if [ -x "$GRUBONCE" ]; then
|
||||
rm -f "$GRUBDEFSAVE"
|
||||
if [ -e "$GRUBDEFAULT" ]; then
|
||||
echo " saving original $GRUBDEFAULT"
|
||||
cp "$GRUBDEFAULT" "$GRUBDEFSAVE"
|
||||
fi
|
||||
echo " running '$GRUBONCE $1'"
|
||||
$GRUBONCE $1
|
||||
else
|
||||
echo "WARNING: $GRUBONCE not found, not preparing bootloader"
|
||||
fi
|
||||
}
|
||||
|
||||
#############################################################
|
||||
# restore grub default after (eventually failed) resume
|
||||
grub-once-restore()
|
||||
{
|
||||
echo "INFO: running grub-once-restore"
|
||||
rm -f "$GRUBDEFAULT"
|
||||
if [ -e "$GRUBDEFSAVE" ]; then
|
||||
echo " restoring original $GRUBDEFAULT"
|
||||
mv "$GRUBDEFSAVE" "$GRUBDEFAULT"
|
||||
fi
|
||||
}
|
||||
|
||||
#############################################################################
|
||||
# try to find a kernel image that matches the actually running kernel.
|
||||
# We need this, if more than one kernel is installed. This works reasonably
|
||||
# well with grub, if all kernels are named "kernel-`uname -r`" and are
|
||||
# located in /boot. If they are not, good luck ;-)
|
||||
find-kernel-entry()
|
||||
{
|
||||
NEXT_BOOT=-1
|
||||
ARCH=`uname -m`
|
||||
declare -i I=0
|
||||
# DEBUG "running kernel: $RUNNING" DIAG
|
||||
while [ -n "${KERNELS[$I]}" ]; do
|
||||
BOOTING="${KERNELS[$I]}"
|
||||
if IMAGE=`readlink /boot/$BOOTING` && [ -e "/boot/${IMAGE##*/}" ]; then
|
||||
# DEBUG "Found kernel symlink $BOOTING => $IMAGE" INFO
|
||||
BOOTING=$IMAGE
|
||||
fi
|
||||
case $ARCH in
|
||||
ppc*) BOOTING="${BOOTING#*vmlinux-}" ;;
|
||||
*) BOOTING="${BOOTING#*kernel-}" ;;
|
||||
esac
|
||||
if [ "$RUNNING" == "$BOOTING" ]; then
|
||||
NEXT_BOOT=${MENU_ENTRIES[$I]}
|
||||
echo " running kernel is grub menu entry $NEXT_BOOT (${KERNELS[$I]})"
|
||||
break
|
||||
fi
|
||||
let I++
|
||||
done
|
||||
# if we have not found a kernel, issue a warning.
|
||||
# if we have found a kernel, we'll do "grub-once" later, after
|
||||
# prepare_suspend finished.
|
||||
if [ $NEXT_BOOT -eq -1 ]; then
|
||||
echo "WARNING: no kernelfile matching the running kernel found"
|
||||
fi
|
||||
}
|
||||
|
||||
#############################################################################
|
||||
# if we did not find a kernel (or BOOT_LOADER is not GRUB) check,
|
||||
# if the running kernel is still the one that will (probably) be booted for
|
||||
# resume (default entry in menu.lst or, if there is none, the kernel file
|
||||
# /boot/latestkernel points to.)
|
||||
# This will only work, if you use "original" SUSE kernels.
|
||||
# you can always override with the config variable set to "yes"
|
||||
prepare-grub()
|
||||
{
|
||||
echo "INFO: running prepare-grub"
|
||||
eval `getkernels`
|
||||
RUNNING=`uname -r`
|
||||
find-kernel-entry
|
||||
|
||||
RET=0
|
||||
|
||||
if [ $NEXT_BOOT -eq -1 ]; then
|
||||
# which kernel is booted with the default entry?
|
||||
BOOTING="${KERNELS[$DEFAULT_BOOT]}"
|
||||
# if there is no default entry (no menu.lst?) we fall back to
|
||||
# the default of /boot/latestkernel.
|
||||
[ -z "$BOOTING" ] && BOOTING="latestkernel"
|
||||
if IMAGE=`readlink /boot/$BOOTING` && [ -e "/boot/${IMAGE##*/}" ]; then
|
||||
BOOTING=$IMAGE
|
||||
fi
|
||||
BOOTING="${BOOTING#*kernel-}"
|
||||
echo "running kernel: '$RUNNING', probably booting kernel: '$BOOTING'"
|
||||
if [ "$BOOTING" != "$RUNNING" ]; then
|
||||
echo "ERROR: kernel version mismatch, cannot suspend to disk"
|
||||
echo "running: $RUNNING booting: $BOOTING" >> $INHIBIT
|
||||
RET=1
|
||||
fi
|
||||
else
|
||||
# set the bootloader to the running kernel
|
||||
echo " preparing boot-loader: selecting entry $NEXT_BOOT, kernel /boot/$BOOTING"
|
||||
T1=`date +"%s%N"`
|
||||
sync; sync; sync # this is needed to speed up grub-once on reiserfs
|
||||
T2=`date +"%s%N"`
|
||||
echo " grub-once: `grub-once $NEXT_BOOT`"
|
||||
T3=`date +"%s%N"`
|
||||
S=$(((T2-T1)/100000000)); S="$((S/10)).${S:0-1}"
|
||||
G=$(((T3-T2)/100000000)); G="$((G/10)).${G:0-1}"
|
||||
echo " time needed for sync: $S seconds, time needed for grub: $G seconds."
|
||||
fi
|
||||
|
||||
return $RET
|
||||
}
|
||||
|
||||
|
||||
###### main()
|
||||
|
||||
case $1 in
|
||||
hibernate)
|
||||
prepare-grub
|
||||
;;
|
||||
thaw)
|
||||
grub-once-restore
|
||||
;;
|
||||
esac
|
||||
@@ -0,0 +1,106 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Written by Gabriel Burt <gburt@novell.com>
|
||||
# Copyright 2008 Novell, Inc.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of version 2 of the GNU General Public License as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# Use rtcwake to wake the computer from sleep or hibernate
|
||||
# as configured in /etc/pm/config.d/rtcwake.config
|
||||
|
||||
. "${PM_FUNCTIONS}"
|
||||
|
||||
rtcwake_cmd="/usr/sbin/rtcwake";
|
||||
|
||||
command_exists $rtcwake_cmd || exit $NA
|
||||
|
||||
rtcwake_config_file="/etc/pm/config.d/rtcwake.conf"
|
||||
|
||||
function start_of_day {
|
||||
echo `date -d "$1" "+%D"`
|
||||
}
|
||||
|
||||
function since_epoch {
|
||||
echo `date -d "$1" "+%s"`
|
||||
}
|
||||
|
||||
function day_of_week {
|
||||
echo `date -d "$1" "+%u"`
|
||||
}
|
||||
|
||||
function isAlarmDow {
|
||||
is=0
|
||||
for dow in $RTCWAKE_DAYS; do
|
||||
if test "x$dow" = "x$1"; then
|
||||
is=1;
|
||||
break;
|
||||
fi
|
||||
done
|
||||
echo $is
|
||||
}
|
||||
|
||||
function set_alarm
|
||||
{
|
||||
# If USER_RTCWAKE_ALLOWED is yes and the user passed in a num_seconds_to_sleep variable, then
|
||||
# we will respect it (and ignore the system config)
|
||||
# Do require that the number of seconds is at least 30 though.
|
||||
if test "x$USER_RTCWAKE_ALLOWED" != "xno" && test "x$NUM_SECONDS_TO_SLEEP" != "x" && test $(($NUM_SECONDS_TO_SLEEP > 30)) == 1; then
|
||||
echo "Have NUM_SECONDS_TO_SLEEP: $NUM_SECONDS_TO_SLEEP";
|
||||
# Actually set/configure the rtcwake
|
||||
sh -c "$rtcwake_cmd -m on -s $NUM_SECONDS_TO_SLEEP &"
|
||||
elif test "x$1" = "xyes"; then
|
||||
echo "alarm enabled, configuring rtcwake...";
|
||||
echo "RTCWAKE time: $RTCWAKE_TIME";
|
||||
echo "RTCWAKE days: $RTCWAKE_DAYS";
|
||||
|
||||
next_alarm=0
|
||||
now=$(since_epoch now);
|
||||
# The next alarm has to be at most 7 days from now
|
||||
for days_from_now in 0 1 2 3 4 5 6 7; do
|
||||
# Get the date N days from now
|
||||
alarm_day=$(start_of_day "$days_from_now day");
|
||||
|
||||
# Check that this day is an alarm-enabled day of the week
|
||||
alarm_dow=$(day_of_week $alarm_day);
|
||||
is_alarm_dow=$(isAlarmDow $alarm_dow);
|
||||
if test "x$is_alarm_dow" = "x1"; then
|
||||
# Get the actual alarm time on that day
|
||||
alarm_time=$(since_epoch "$alarm_day $RTCWAKE_TIME");
|
||||
|
||||
# Ensure the alarm time is more than 15 minutes from now
|
||||
# - otherwise we set the alarm for the next slot
|
||||
# 900 seconds = 15 minutes * 60 seconds/minute
|
||||
is_enough_in_future=$(($alarm_time - $now > 900));
|
||||
if test "x$is_enough_in_future" = "x1"; then
|
||||
next_alarm=$alarm_time
|
||||
break;
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
if test "x$next_alarm" != "x0"; then
|
||||
# Recalculate now to be as accurate as possible
|
||||
now=$(since_epoch now);
|
||||
seconds_from_now=$(($next_alarm - $now));
|
||||
echo "Will set alarm for $seconds_from_now seconds from now, at $alarm_day $RTCWAKE_TIME ($next_alarm)"
|
||||
|
||||
# Actually set/configure the rtcwake
|
||||
sh -c "$rtcwake_cmd -m on -s $seconds_from_now &"
|
||||
else
|
||||
echo "No acceptable time found to set the rtcwake alarm. Review your configuration in $rtcwake_config_file"
|
||||
exit $NA
|
||||
fi
|
||||
else
|
||||
echo "rtcwake alarm not enabled in $rtcwake_config_file, doing nothing...";
|
||||
exit $NA
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
case "$1" in
|
||||
suspend) set_alarm $SUSPEND_RTCWAKE_ENABLED ;;
|
||||
hibernate) set_alarm $HIBERNATE_RTCWAKE_ENABLED ;;
|
||||
*) exit $NA ;;
|
||||
esac
|
||||
@@ -0,0 +1,162 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Stefan Seyfried, SUSE Linux Products GmbH, 2006
|
||||
# mostly taken from the powersave project
|
||||
|
||||
. "${PM_FUNCTIONS}"
|
||||
|
||||
# sanity check the environment if resume will be possible after hibernate
|
||||
checkhibernate()
|
||||
{
|
||||
echo "INFO: checking for suspend-to-disk prerequisites..."
|
||||
if [ -z "$IMAGE_SIZE" ]; then
|
||||
IMAGE_SIZE="`awk '/^MemTotal:/ { print int($2*1024*.45) }' /proc/meminfo`"
|
||||
fi
|
||||
# Default to partition style hibernation
|
||||
SWAP_TYPE=partition
|
||||
|
||||
read CMDLINE < /proc/cmdline
|
||||
for CMD in $CMDLINE; do
|
||||
case $CMD in
|
||||
resume=*)
|
||||
RESUME=${CMD#*=}
|
||||
;;
|
||||
resume_offset=*)
|
||||
# Swap type is file as resume_offset is given
|
||||
SWAP_TYPE=file
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ -z "$RESUME" ]; then
|
||||
# No resume= given in /proc/cmdline, failing.
|
||||
echo "ERROR: no resume parameter on kernel commandline, can not suspend"
|
||||
echo "no resume parameter on kernel commandline" >> $INHIBIT
|
||||
return 1
|
||||
fi
|
||||
if [ "$SWAP_TYPE" = file ] && [ "$SLEEP_MODULE" = "uswsusp" ]; then
|
||||
# File-style hibernating is not supported by uswsusp
|
||||
echo "ERROR: You must use the kernel hibernate method or tuxonice when suspending to swapfile, not uswsusp"
|
||||
echo "suspend to swapfile with uswsusp method not kernel" >> $INHIBIT
|
||||
return 1
|
||||
fi
|
||||
|
||||
# the resume device can be a symlink, e.g. with LVM/EVMS or with
|
||||
# /dev/disk/by-id/foo
|
||||
RESUME=$(readlink -f $RESUME)
|
||||
|
||||
OK=
|
||||
while read DEV TYPE SIZE USED PRI; do
|
||||
if [ "$TYPE" = "file" ] && [ "$SWAP_TYPE" = "file" ] && [ "$RESUME" = "$(df "$DEV" | tail -n +2 | cut -d ' ' -f 1)" ]; then
|
||||
OK=1
|
||||
break
|
||||
fi
|
||||
[ "$TYPE" != "partition" ] && continue
|
||||
[ "$DEV" != "$RESUME" ] && continue
|
||||
FREE=$[($SIZE-$USED)*1024] # get free space on DEV
|
||||
if [ $FREE -lt $IMAGE_SIZE ]; then
|
||||
IMAGE_SIZE=$[$FREE-10*1024*1024]
|
||||
fi
|
||||
OK=1
|
||||
break # we found the partition, no need to look further
|
||||
done < /proc/swaps
|
||||
|
||||
if [ -z "$OK" ]; then
|
||||
if [ "$SWAP_TYPE" = "file" ]; then
|
||||
MSG_TYPE="swap file"
|
||||
else
|
||||
MSG_TYPE="resume partition"
|
||||
fi
|
||||
echo "ERROR: $MSG_TYPE '$RESUME' not active, can not suspend"
|
||||
echo "$MSG_TYPE '$RESUME' not active" >> $INHIBIT
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ "$SLEEP_MODULE" = "kernel" ]; then
|
||||
echo " using kernel suspend method"
|
||||
read DEV < /sys/power/resume
|
||||
if [ "$DEV" = "0:0" ]; then
|
||||
echo "ERROR: no resume partition set up in /sys/power/resume"
|
||||
# maybe "resume=..." was given, but initrd did not set up
|
||||
# /sys/power/resume correctly.
|
||||
echo "resume device not correctly setup in /sys/power/resume" >> \
|
||||
$INHIBIT
|
||||
return 1
|
||||
fi
|
||||
|
||||
X=$(stat -Lc '$((0x%t)):$((0x%T))' $RESUME)
|
||||
RDEV=$(eval echo $X)
|
||||
if [ "$DEV" != "$RDEV" ]; then
|
||||
echo "ERROR: /sys/power/resume ($DEV) disagrees with resume= parameter ($RDEV)"
|
||||
echo " can not suspend."
|
||||
echo "/sys/power/resume disagrees with resume= parameter" >> \
|
||||
$INHIBIT
|
||||
return 1
|
||||
fi
|
||||
if [ -n "$IMAGE_SIZE" -a -w /sys/power/image_size ]; then
|
||||
echo " setting image size to $IMAGE_SIZE"
|
||||
echo "$IMAGE_SIZE" > /sys/power/image_size 2>/dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$SLEEP_MODULE" = "uswsusp" ]; then
|
||||
echo " using userspace suspend method, temp. config file $S2DISK_CONF"
|
||||
if [ "$S2DISK_CONF" != "/etc/suspend.conf" ]; then
|
||||
rm -f $S2DISK_CONF
|
||||
# Generate S2DISK_CONF
|
||||
echo " setting resume device to $RESUME"
|
||||
echo "resume device = $RESUME" >> $S2DISK_CONF
|
||||
if [ -n "$IMAGE_SIZE" ]; then
|
||||
echo " setting image size to $IMAGE_SIZE"
|
||||
echo "image size = $IMAGE_SIZE" >> $S2DISK_CONF
|
||||
fi
|
||||
# add the parameters from /etc/suspend.conf to /var/lib/s2disk.conf
|
||||
if [ -e /etc/suspend.conf ]; then
|
||||
echo "# parameters taken from /etc/suspend.conf:" >> $S2DISK_CONF
|
||||
sed '/^[[:space:]]*\(#\|$\)/d;' /etc/suspend.conf >> $S2DISK_CONF
|
||||
echo " adding these parameters from /etc/suspend.conf:"
|
||||
sed '/^[[:space:]]*\(#\|$\)/d;s/^/ /;' /etc/suspend.conf
|
||||
fi
|
||||
else
|
||||
# don't overwrite the user's config file, but warn about the issue
|
||||
echo "WARNING: S2DISK_CONF is set to /etc/suspend.conf"
|
||||
echo " Disabling automatic generation of config file."
|
||||
echo " This is most likely a configuration error and will cause problems"
|
||||
echo " unless you configure /etc/suspend.conf completely on your own!"
|
||||
fi
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
# this only makes sense on hibernate or on suspend-hybrid
|
||||
case $1 in
|
||||
hibernate)
|
||||
;;
|
||||
suspend)
|
||||
if [ "$2" != suspend_hybrid ]; then
|
||||
exit 0
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
exit $NA
|
||||
;;
|
||||
esac
|
||||
|
||||
[ -e /etc/pm/config.d/$1 ] && . /etc/pm/config.d/$1
|
||||
|
||||
if [ -z "$SLEEP_MODULE" ]; then
|
||||
# Decide the SLEEP_MODULE if not given
|
||||
if [ -x /usr/sbin/s2disk -a -c /dev/snapshot ]; then
|
||||
SLEEP_MODULE="uswsusp"
|
||||
else
|
||||
SLEEP_MODULE="kernel"
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! checkhibernate; then
|
||||
echo "WARNING: $INHIBIT will be created to prevent suspending!"
|
||||
touch $INHIBIT
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
. "${PM_FUNCTIONS}"
|
||||
|
||||
command_exists /sbin/pccardctl || exit $NA
|
||||
|
||||
case "$1" in
|
||||
hibernate|suspend)
|
||||
echo "ejecting PCMCIA cards..."
|
||||
/sbin/pccardctl eject
|
||||
;;
|
||||
thaw|resume)
|
||||
echo "inserting PCMCIA cards..."
|
||||
/sbin/pccardctl insert
|
||||
;;
|
||||
*) exit $NA
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# The ndiswrapper hook - relead the ndiswrapper module
|
||||
|
||||
. "${PM_FUNCTIONS}"
|
||||
|
||||
command_exists /usr/sbin/ndiswrapper || return $NA
|
||||
|
||||
case "$1" in
|
||||
resume|thaw)
|
||||
modprobe -r ndiswrapper
|
||||
modprobe ndiswrapper
|
||||
;;
|
||||
*) exit $NA
|
||||
;;
|
||||
esac
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
Index: pm-utils-1.4.1/pm/sleep.d/55NetworkManager
|
||||
===================================================================
|
||||
--- pm-utils-1.4.1.orig/pm/sleep.d/55NetworkManager 2010-09-20 11:12:23.750155840 +0200
|
||||
+++ pm-utils-1.4.1/pm/sleep.d/55NetworkManager 2010-09-20 11:12:25.610155850 +0200
|
||||
@@ -13,6 +13,7 @@
|
||||
# Tell NetworkManager to shut down networking
|
||||
printf "Having NetworkManager put all interaces to sleep..."
|
||||
dbus_send --system \
|
||||
+ --print-reply --reply-timeout=200 \
|
||||
--dest=org.freedesktop.NetworkManager \
|
||||
/org/freedesktop/NetworkManager \
|
||||
org.freedesktop.NetworkManager.sleep && \
|
||||
@@ -25,6 +26,7 @@
|
||||
printf "Having NetworkManager wake interfaces back up..."
|
||||
dbus_send --system \
|
||||
--dest=org.freedesktop.NetworkManager \
|
||||
+ --print-reply --reply-timeout=200 \
|
||||
/org/freedesktop/NetworkManager \
|
||||
org.freedesktop.NetworkManager.wake && \
|
||||
echo Done. || echo Failed.
|
||||
@@ -0,0 +1,142 @@
|
||||
---
|
||||
pm/defaults | 20 +++++++++++++++-
|
||||
pm/module.d/uswsusp | 64 +++++++++++++++++++++++++++++++++++++++++++++++-----
|
||||
2 files changed, 78 insertions(+), 6 deletions(-)
|
||||
|
||||
Index: pm-utils-1.3.0/pm/defaults
|
||||
===================================================================
|
||||
--- pm-utils-1.3.0.orig/pm/defaults 2009-06-14 03:56:08.000000000 +0200
|
||||
+++ pm-utils-1.3.0/pm/defaults 2010-05-06 09:27:09.228673127 +0200
|
||||
@@ -27,8 +27,26 @@
|
||||
# tuxonice If your system has support for tuxonice, use this.
|
||||
#
|
||||
# The system defaults to "kernel" if this is commented out.
|
||||
-# SLEEP_MODULE="kernel"
|
||||
+SLEEP_MODULE="uswsusp"
|
||||
|
||||
+#######################################################################
|
||||
+# the variables below here are specific to the SUSE package right now
|
||||
+# and are used only if SLEEP_MODULE is uswsusp
|
||||
+
|
||||
+# what options should be passed to s2ram?
|
||||
+# see http://en.opensuse.org/S2ram for more information
|
||||
+# If this option is set, it overrides S2RAM_QUIRKS_SOURCE below
|
||||
+S2RAM_OPTS=""
|
||||
+
|
||||
+# where should pm-utils get the s2ram quirks from?
|
||||
+# s2ram - use the whitelist in s2ram, if the machine is known.
|
||||
+# hal - ignored, exists only for comparibility purposes pm-utils 1.3.0+ has
|
||||
+# HAL quirks built-in
|
||||
+# everything else: try to be smart in figuring out the correct quirks.
|
||||
+# if S2RAM_OPTS is set, it overrides S2RAM_QUIRKS_SOURCE!
|
||||
+S2RAM_QUIRKS_SOURCE=""
|
||||
+
|
||||
+#######################################################################
|
||||
# These variables will be handled specially when we load files in
|
||||
# /etc/pm/config.d.
|
||||
# Multiple declarations of these environment variables will result in
|
||||
Index: pm-utils-1.3.0/pm/module.d/uswsusp
|
||||
===================================================================
|
||||
--- pm-utils-1.3.0.orig/pm/module.d/uswsusp 2009-12-11 05:36:38.000000000 +0100
|
||||
+++ pm-utils-1.3.0/pm/module.d/uswsusp 2010-05-06 09:27:37.540671614 +0200
|
||||
@@ -5,6 +5,7 @@
|
||||
uswsusp_hooks()
|
||||
{
|
||||
disablehook 99video "disabled by uswsusp"
|
||||
+ disablehook 90chvt "disabled by uswsusp"
|
||||
}
|
||||
|
||||
# Since we disabled 99video, we need to take responsibility for proper
|
||||
@@ -35,8 +36,52 @@
|
||||
# if we were told to ignore quirks, do so.
|
||||
# This is arguably not the best way to do things, but...
|
||||
[ "$QUIRK_NONE" = "true" ] && OPTS=""
|
||||
+ S2RAM_OPTS="$S2RAM_OPTS $OPTS"
|
||||
+ echo "INFO: S2RAM_OPTS from HAL quirks: '$S2RAM_OPTS'."
|
||||
}
|
||||
|
||||
+# this function tries to assemble the best s2ram options from various sources, falling back
|
||||
+# to other methods...
|
||||
+get_s2ram_opts()
|
||||
+{
|
||||
+ # if S2RAM_OPTS is set - then use it. The user told us so. Obey his wish.
|
||||
+ if [ -n "$S2RAM_OPTS" ]; then
|
||||
+ echo "INFO: using user-supplied options: S2RAM_OPTS='$S2RAM_OPTS' for suspending."
|
||||
+ return
|
||||
+ fi
|
||||
+
|
||||
+ # ... try to use s2ram as a source
|
||||
+ if [ "$S2RAM_QUIRKS_SOURCE" = "s2ram" ]; then
|
||||
+ if /usr/sbin/s2ram -n >/dev/null; then
|
||||
+ echo "INFO: using s2ram built-in database, machine is supported."
|
||||
+ return
|
||||
+ else
|
||||
+ echo "WARN: S2RAM_QUIRKS_SOURCE=s2ram, but machine is unknown, continuing..."
|
||||
+ fi
|
||||
+ fi
|
||||
+
|
||||
+ # ... if is not known or not set as a source, use the built-in database
|
||||
+ echo "INFO: using built-in quirks database from HAL."
|
||||
+ uswsusp_get_quirks
|
||||
+ if [ -n "$S2RAM_OPTS" ]; then
|
||||
+ S2RAM_OPTS="--force "$S2RAM_OPTS
|
||||
+ fi
|
||||
+
|
||||
+ # ... in a case we still don't have any quirk, try s2ram for sure
|
||||
+ if [ -z "$S2RAM_OPTS" ]; then
|
||||
+ # ... machine could be in s2ram whitelist
|
||||
+ if /usr/sbin/s2ram -n >/dev/null; then
|
||||
+ echo "INFO: machine is in s2ram database, using it."
|
||||
+ return;
|
||||
+ else
|
||||
+ # if we came here and S2RAM_OPTS is empty, suspend won't work :-(
|
||||
+ echo "WARNING: smart uswsusp did not found any appropriate option, suspend probably don't work"
|
||||
+ fi
|
||||
+ fi
|
||||
+
|
||||
+}
|
||||
+
|
||||
+
|
||||
# Since we disabled 99video, we also need to handle displaying
|
||||
# help info for the quirks we handle.
|
||||
uswsusp_help()
|
||||
@@ -70,8 +115,8 @@
|
||||
SUSPEND_MODULE="uswsusp"
|
||||
do_suspend()
|
||||
{
|
||||
- uswsusp_get_quirks
|
||||
- s2ram --force $OPTS
|
||||
+ get_s2ram_opts
|
||||
+ s2ram $S2RAM_OPTS
|
||||
}
|
||||
if [ "$METHOD" = "suspend" ]; then
|
||||
add_before_hooks uswsusp_hooks
|
||||
@@ -87,7 +132,12 @@
|
||||
HIBERNATE_MODULE="uswsusp"
|
||||
do_hibernate()
|
||||
{
|
||||
- s2disk
|
||||
+ get_s2ram_opts
|
||||
+ if [ -z "${S2DISK_CONF}" ]; then
|
||||
+ s2disk
|
||||
+ else
|
||||
+ s2disk --config $S2DISK_CONF
|
||||
+ fi
|
||||
}
|
||||
fi
|
||||
|
||||
@@ -98,8 +148,12 @@
|
||||
SUSPEND_HYBRID_MODULE="uswsusp"
|
||||
do_suspend_hybrid()
|
||||
{
|
||||
- uswsusp_get_quirks
|
||||
- s2both --force $OPTS
|
||||
+ get_s2ram_opts
|
||||
+ if [ -z "${S2DISK_CONF}" ]; then
|
||||
+ s2both --force $S2RAM_OPTS
|
||||
+ else
|
||||
+ s2both --config $S2DISK_CONF $S2RAM_OPTS
|
||||
+ fi
|
||||
}
|
||||
if [ "$METHOD" = "suspend_hybrid" ]; then
|
||||
add_before_hooks uswsusp_hooks
|
||||
@@ -0,0 +1,27 @@
|
||||
---
|
||||
pm/defaults | 19 +++++++++++++++++++
|
||||
1 file changed, 19 insertions(+)
|
||||
|
||||
Index: pm-utils-1.4.1/pm/defaults
|
||||
===================================================================
|
||||
--- pm-utils-1.4.1.orig/pm/defaults 2010-09-20 11:42:59.214155594 +0200
|
||||
+++ pm-utils-1.4.1/pm/defaults 2010-09-20 13:35:52.974279436 +0200
|
||||
@@ -30,7 +30,7 @@
|
||||
SLEEP_MODULE="uswsusp"
|
||||
|
||||
#######################################################################
|
||||
-# the variables below here are specific to the SUSE package right now
|
||||
+# those variables below SUSE pm-utils specific right now
|
||||
# and are used only if SLEEP_MODULE is uswsusp
|
||||
|
||||
# what options should be passed to s2ram?
|
||||
@@ -46,6 +46,9 @@
|
||||
# if S2RAM_OPTS is set, it overrides S2RAM_QUIRKS_SOURCE!
|
||||
S2RAM_QUIRKS_SOURCE=""
|
||||
|
||||
+# the location of the autogenerated s2disk (s2both) config file
|
||||
+S2DISK_CONF="/var/lib/s2disk.conf"
|
||||
+
|
||||
#######################################################################
|
||||
# These variables will be handled specially when we load files in
|
||||
# /etc/pm/config.d.
|
||||
@@ -0,0 +1,2 @@
|
||||
d /run/pm-utils/locks 0755 root root
|
||||
d /run/pm-utils/storage 0755 root root
|
||||
@@ -0,0 +1,118 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>pm-utils</Name>
|
||||
<Homepage>http://pm-utils.freedesktop.org/wiki/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>A toolset to suspend and hibernate computers</Summary>
|
||||
<Description>pm-utils provides simple shell command line tools to suspend and hibernate computers, and it that can be used to run vendor, distribution, or user supplied scripts on suspend and resume.</Description>
|
||||
<Archive sha1sum="9aacb9b4a5f11f751d94f5257c6c54460f106197" type="targz">http://pm-utils.freedesktop.org/releases/pm-utils-1.4.1.tar.gz</Archive>
|
||||
<Archive sha1sum="01aab63e2bb8c0f8d81d325ffce1fa49af0e2f3a" type="targz" target="video-quirks">http://pm-utils.freedesktop.org/releases/pm-quirks-20100619.tar.gz</Archive>
|
||||
<AdditionalFiles>
|
||||
<!--AdditionalFile target="pm/sleep.d/01grub">suse/hooks/sleep.d/01grub</AdditionalFile-->
|
||||
</AdditionalFiles>
|
||||
<BuildDependencies>
|
||||
<Dependency>xmlto</Dependency>
|
||||
<Dependency>libxslt</Dependency>
|
||||
<Dependency>util-linux</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!-- Attempt to fix #15147 eventhough the fix is not fine-grained at all -->
|
||||
<Patch level="1">pisilinux/check-for-swap-partition.patch</Patch>
|
||||
|
||||
<!-- Disable powersave stuff completely -->
|
||||
<Patch level="1">pisilinux/disable-powersave.patch</Patch>
|
||||
|
||||
<!-- https://bugzilla.redhat.com/show_bug.cgi?id=552506#c4 -->
|
||||
<Patch level="1">suse/pm-utils-1.2.6.1-fix-broken-dbus-send.diff</Patch>
|
||||
<Patch level="1">suse/pm-utils-1.3.0-suse-smart-uswsusp.patch</Patch>
|
||||
<Patch level="1">suse/pm-utils-1.4.1-suse-config.patch</Patch>
|
||||
|
||||
<!-- Gentoo patches -->
|
||||
<Patch level="1">gentoo/1.4.1-bluetooth-sync.patch</Patch>
|
||||
<Patch level="1">gentoo/1.4.1-disable-sata-alpm.patch</Patch>
|
||||
<Patch level="1">gentoo/1.4.1-fix-intel-audio-powersave-hook.patch</Patch>
|
||||
<Patch level="1">gentoo/1.4.1-logging-append.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>pm-utils</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>hdparm</Dependency>
|
||||
<Dependency>vbetool</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="config">/etc/pm</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="data">/run/pm-utils</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="executable">/usr/sbin</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="data">/usr/lib/pm-utils/video-quirks</Path>
|
||||
<Path fileType="config">/usr/lib/tmpfiles.d/pm-utils.conf</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/pm-utils.conf">tmpfiles.conf</AdditionalFile>
|
||||
<!-- not implemented in our kernel yet
|
||||
<AdditionalFile owner="root" permission="0755" target="/usr/lib/pm-utils/sleep.d/000kernel-change">000kernel-change</AdditionalFile>
|
||||
FIXME: Should be enabled after enabling plymouth in suspend package and testing a lot
|
||||
<AdditionalFile owner="root" permission="0755" target="/usr/lib/pm-utils/sleep.d/00plymouthd">pisilinux/00plymouthd</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0755" target="/usr/lib/pm-utils/sleep.d/75ndiswrapper">suse/hooks/sleep.d/75ndiswrapper</AdditionalFile>
|
||||
|
||||
<AdditionalFile owner="root" permission="0755" target="/usr/lib/pm-utils/sleep.d/99hd-apm-restore">pisilinux/99hd-apm-restore</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/pm/config.d/hd-apm-restore.conf">pisilinux/hd-apm-restore.conf</AdditionalFile>
|
||||
-->
|
||||
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/pm/config.d/rtcwake.conf">suse/hooks/config.d/rtcwake.config</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0755" target="/usr/lib/pm-utils/sleep.d/30s2disk-check">suse/hooks/sleep.d/30s2disk-check</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0755" target="/usr/lib/pm-utils/sleep.d/45pcmcia">suse/hooks/sleep.d/45pcmcia</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="5">
|
||||
<Date>2015-07-31</Date>
|
||||
<Version>1.4.1</Version>
|
||||
<Comment>Rebuild for gcc.</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2014-01-10</Date>
|
||||
<Version>1.4.1</Version>
|
||||
<Comment>Add tmpfiles.conf</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-08-26</Date>
|
||||
<Version>1.4.1</Version>
|
||||
<Comment>Fix hibernation issue, add some patches.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-07-03</Date>
|
||||
<Version>1.4.1</Version>
|
||||
<Comment>Fix suspend/hibernation issue</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2011-04-05</Date>
|
||||
<Version>1.4.1</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Pisi Linux Admins</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>pm-utils</Name>
|
||||
<Summary xml:lang="tr">Askıya alma işlemleri için gerekli araçlar</Summary>
|
||||
<Description xml:lang="tr">pm-utils, bilgisayarı bellek veya disk kullanarak uyku kipine geçirmek ve devam ettirmek için gerekli kabuk betiklerini sunar.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user