Merge branch 'master' of github.com:pisilinux/main

This commit is contained in:
Ertuğrul Erata
2016-07-02 20:03:48 +03:00
20 changed files with 91193 additions and 90696 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
autotools.configure()
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.doman("acpi.1")
pisitools.dodoc("AUTHORS", "ChangeLog", "README")
+36
View File
@@ -0,0 +1,36 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>acpi</Name>
<Homepage>http://sourceforge.net/projects/acpiclient/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>app:console</IsA>
<Summary>Battery and thermal reporter</Summary>
<Description>acpi is a small command-line tools that reports battery and thermal information.</Description>
<Archive sha1sum="7c21939da5be4004fbb8f055ce02d928919a9fb7" type="targz">mirrors://sourceforge/acpiclient/acpiclient/1.7/acpi-1.7.tar.gz</Archive>
</Source>
<Package>
<Name>acpi</Name>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2016-07-02</Date>
<Version>1.7</Version>
<Comment>First release</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>acpi</Name>
<Summary xml:lang="tr">ACPI sistemlerde pil ve sıcaklık bilgilerini tutar</Summary>
<Description xml:lang="tr">Eski apm komutlarını ACPI sistemlerde verir, pil ve sıcaklık bilgilerini tutar.</Description>
</Source>
</PISI>
+18
View File
@@ -0,0 +1,18 @@
# -*- 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()
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc('README', 'COPYING')
@@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
from comar.service import *
serviceType = "local"
serviceDesc = _({"en": "ACPI Daemon",
"tr": "ACPI Hizmeti"})
serviceDefault = "on"
PIDFILE = "/run/acpid.pid"
MSG_NO_PIDFILE = _({
"en" : "Could not reload acpid daemon as the PID file %s does not exist." % PIDFILE,
"tr" : "%s PID dosyası mevcut olmadığından acpid hizmeti yeniden yüklenemiyor." % PIDFILE,
})
@synchronized
def start():
startService(command="/usr/sbin/acpid",
args=config.get("OPTIONS", ""),
donotify=True)
@synchronized
def stop():
stopService(pidfile=PIDFILE,
donotify=True)
def reload():
import signal
import os
try:
os.kill(int(open(PIDFILE, "r").read().strip()), signal.SIGHUP)
except:
fail(MSG_NO_PIDFILE)
def status():
return isServiceRunning(pidfile=PIDFILE)
@@ -0,0 +1,42 @@
#!/bin/bash
#
# check if a X session is running and active.
# If not, shut down the system
#
# Copyright (C) 2008 Holger Macht <hmacht@suse.de>
#
# This file is released under the GPLv2.
#
EXEC="/sbin/shutdown -h now"
# iterate over all sessions. If a active X session is found, do nothing
while read A; do
SESSION=`echo $A | sed 's/\(Session[0-9]*\)://g'`
[ -z "$SESSION" ] || continue
SESSION=`echo $A | sed 's/\(Session[0-9]*\):/\1/g'`
IS_X=`dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit \
/org/freedesktop/ConsoleKit/$SESSION \
org.freedesktop.ConsoleKit.Session.GetX11Display`
# check if this is a X session, if not, go on
DISP=`echo $IS_X | sed -e 's/^.* string "\(.*\)"/\1/'`
[ -n "$DISP" ] || continue
IS_ACTIVE=`dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit \
/org/freedesktop/ConsoleKit/$SESSION \
org.freedesktop.ConsoleKit.Session.IsActive`
IS_ACTIVE=`echo $IS_ACTIVE | sed -e 's/^.* boolean \(.*\)$/\1/'`
if [ "$IS_ACTIVE" = "true" -a -n "$DISP" ]; then
# additional check, if none of these two apps are running, go on
if [ -n "`pidof kded4`" -o -n "`pidof gnome-power-manager`" -o -n "`pidof guidance-power-manager`" -o -n "`pidof kpowersave`" -o -n "`pidof dalston-power-applet`" ]; then
echo doing nothing...
exit 0
fi
fi
done < <(ck-list-sessions)
logger -s -t acpid "Power Button pressed, executing $EXEC"
$EXEC
@@ -0,0 +1,24 @@
diff -up acpid-2.0.15/Makefile.am.mk acpid-2.0.15/Makefile.am
--- acpid-2.0.15/Makefile.am.mk 2012-02-17 04:37:12.109907134 +0100
+++ acpid-2.0.15/Makefile.am 2012-03-16 11:27:15.127573044 +0100
@@ -20,7 +20,7 @@ acpi_listen_SOURCES = acpi_listen.c log.
dist_man8_MANS = acpid.8 acpi_listen.8
-dist_doc_DATA = COPYING Changelog README TESTPLAN TODO
+dist_doc_DATA =
# Just docs to add to the dist.
# One problem with this is that it includes all files in the samples dir
diff -up acpid-2.0.15/Makefile.in.mk acpid-2.0.15/Makefile.in
--- acpid-2.0.15/Makefile.in.mk 2012-03-16 11:28:53.568421905 +0100
+++ acpid-2.0.15/Makefile.in 2012-03-16 11:29:21.679378750 +0100
@@ -276,7 +276,7 @@ acpid_SOURCES = acpid.c acpi_ids.c conne
acpi_listen_SOURCES = acpi_listen.c log.c ud_socket.c
dist_man8_MANS = acpid.8 acpi_listen.8
-dist_doc_DATA = COPYING Changelog README TESTPLAN TODO
+dist_doc_DATA =
# Just docs to add to the dist.
# One problem with this is that it includes all files in the samples dir
@@ -0,0 +1,5 @@
# ACPID config to power down machine if powerbutton is pressed, but only if
# no gnome-power-manager, kded4, kpowersave, guidance-power-manager is running
event=button/power.*
action=/etc/acpi/actions/power.sh
@@ -0,0 +1,18 @@
[Unit]
Description=ACPI Event Daemon
After=syslog.target
# This could probably benefit from socket activation, but honestly I think it
# is time for acpid to go away, and hence I am not planning to spend the time
# to add socket activation here. We use Type=forking to ensure that the
# communication sockets are in place before boot proceeds with any service
# needing this service. Would acpid support socket activation we could use
# Type=simple here.
[Service]
Type=forking
EnvironmentFile=/etc/conf.d/acpid
ExecStart=/usr/sbin/acpid $OPTIONS
[Install]
WantedBy=multi-user.target
@@ -0,0 +1 @@
OPTIONS=
@@ -0,0 +1,6 @@
# Configuration to turn on DPMS again on video activity, needed for some
# laptops. Disabled by default, uncomment if your laptop display stays blank
# after you close and open the lid.
#event=video.*
#action=/usr/sbin/vbetool dpms on
+55
View File
@@ -0,0 +1,55 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>acpid</Name>
<Homepage>http://sourceforge.net/projects/acpid2/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2+</License>
<IsA>service</IsA>
<IsA>app:console</IsA>
<Summary>ACPI daemon that dispatches ACPI events to user-space programs</Summary>
<Description>acpid is a flexible and extensible daemon for ACPI (Advanced Configuration and Power Interface) event dispatching.</Description>
<Archive sha1sum="aabf129499f99b3c14e7a9f5b5ec717b0913e9c8" type="tarxz">mirrors://sourceforge/acpid2/acpid-2.0.27.tar.xz</Archive>
<Patches>
<Patch level="1">fedora/acpid-2.0.15-mk.patch</Patch>
</Patches>
</Source>
<Package>
<Name>acpid</Name>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="executable">/etc/acpi/actions</Path>
<Path fileType="data">/etc/acpi/events</Path>
<Path fileType="config">/etc/conf.d</Path>
<Path fileType="data">/lib/systemd</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0755" target="/etc/acpi/actions/power.sh">acpid.power.sh</AdditionalFile>
<AdditionalFile owner="root" permission="0644" target="/etc/acpi/events/power.conf">fedora/acpid.power.conf</AdditionalFile>
<AdditionalFile owner="root" permission="0644" target="/etc/acpi/events/video.conf">fedora/acpid.video.conf</AdditionalFile>
<AdditionalFile owner="root" permission="0644" target="/etc/conf.d/acpid">fedora/acpid.sysconfig</AdditionalFile>
<AdditionalFile owner="root" permission="0644" target="/lib/systemd/system/acpid.service">fedora/acpid.service</AdditionalFile>
</AdditionalFiles>
<Provides>
<COMAR script="service.py">System.Service</COMAR>
</Provides>
</Package>
<History>
<Update release="1">
<Date>2016-07-02</Date>
<Version>2.0.27</Version>
<Comment>First release</Comment>
<Name>Kamil Atlı</Name>
<Email>suvari@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>acpid</Name>
<Summary xml:lang="tr">ACPI hizmeti</Summary>
<Description xml:lang="tr">acpid ACPI olaylarını kullanıcı uygulamalarına paslayan gelişmiş ve esnek bir sistem hizmetidir.</Description>
</Source>
</PISI>
@@ -0,0 +1,20 @@
#!/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()
def build():
autotools.make()
def install():
autotools.rawInstall('DESTDIR=%s' % get.installDIR())
pisitools.dodoc('COPYING', 'TODO', 'README')
@@ -0,0 +1,50 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>powertop</Name>
<Homepage>http://www.lesswatts.org/projects/powertop/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>app:console</IsA>
<Summary>Power consumption monitor</Summary>
<Description>PowerTOP is a Linux tool that finds the software component(s) that make your computer use more power than necessary while it is idle.</Description>
<Archive sha1sum="60da464a0c5d39c64b5d4a0e854bc6c480f8927a" type="targz">https://01.org/sites/default/files/downloads/powertop/powertop-2.8.tar.gz</Archive>
<BuildDependencies>
<Dependency>libnl-devel</Dependency>
<Dependency>ncurses-devel</Dependency>
<Dependency>pciutils-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>powertop</Name>
<RuntimeDependencies>
<Dependency>libnl</Dependency>
<Dependency>ncurses</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>pciutils</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="data">/var/cache/powertop</Path>
<Path fileType="localedata">/usr/share/locale</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2016-07-02</Date>
<Version>2.8</Version>
<Comment>First release</Comment>
<Name>Kamil Atlı</Name>
<Email>suvari@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>powertop</Name>
<Summary xml:lang="tr">Güç tüketim izleme aracı</Summary>
<Description xml:lang="tr">PowerTOP, bilgisayarınız atıl durumdayken ihtiyacından fazla güç tüketmesine neden olan yazılım bileşenlerini bulmak için kullanılan bir Linux aracıdır.</Description>
</Source>
</PISI>
+90835 -90694
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1 +1 @@
16d42c1560408f9e44cac996f315a2d83211d939
00b983075851e522225520a1364213be44f11184
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
f5664a4ceb98bb91ad1f7b3e7330e79b22a1e06e
0156cd2d8328089a66044d21cc66a7b1b7e2ce2f