Merge pull request #10975 from 4fury-c3440d8/b1

updates
This commit is contained in:
Rmys
2022-11-11 21:02:07 +03:00
committed by GitHub
64 changed files with 914 additions and 488 deletions
+6 -14
View File
@@ -2,22 +2,14 @@
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
from pisi.actionsapi import autotools, pisitools, get
def build():
shelltools.system("sed -i -e 's/_CYGWIN/_LINUX/g' -e 's/-Werror//g' generate/unix/Makefile.*")
shelltools.export("CFLAGS", "%s -fno-strict-aliasing" % get.CFLAGS())
pisitools.dosed("generate/unix/iasl/Makefile", "-Werror", "")
if get.ARCH() == "x86_64":
autotools.make("BITS=64")
else:
autotools.make("BITS=32")
autotools.make()
def install():
autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
pisitools.dodoc("changes.txt")
autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
pisitools.dodoc("documents/changes.txt")
+89 -83
View File
@@ -1,88 +1,94 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>acpica</Name>
<Homepage>http://www.acpica.org</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>custom</License>
<IsA>app:console</IsA>
<Summary>ACPI debugging tools written by Intel</Summary>
<Description>acpica contains an AML interpreter and debugger, ACPI namespace support, ACPI hardware and event support and a full ASL compiler and disassembler.</Description>
<Archive sha1sum="a82d511e5e4a55eeb09a02018afd9ff6c6e9911b" type="targz">https://acpica.org/sites/acpica/files/acpica-unix-20210604.tar_0.gz</Archive>
<Patches>
<Patch level="1">iasl-20140828-locale.patch</Patch>
<Patch level="1">iasl-20140214-nostrip.patch</Patch>
<Patch level="1">OPT_LDFLAGS.patch</Patch>
</Patches>
</Source>
<Source>
<Name>acpica</Name>
<Homepage>https://acpica.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPL-2</License>
<IsA>app:console</IsA>
<Summary>ACPI debugging tools written by Intel</Summary>
<Description>acpica contains an AML interpreter and debugger, ACPI namespace support, ACPI hardware and event support and a full ASL compiler and disassembler.</Description>
<Archive sha1sum="560d9e43692e1957bcf24a9bdd663ffe77da88dd" type="targz">
https://github.com/acpica/acpica/archive/refs/tags/R10_20_22.tar.gz
</Archive>
<Patches>
<!-- <Patch level="1"></Patch> -->
</Patches>
</Source>
<Package>
<Name>acpica</Name>
<Files>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="man">/usr/share/man/man1</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/usr/share/man/man1/iasl.1">iasl.1</AdditionalFile>
<AdditionalFile owner="root" permission="0644" target="/usr/share/doc/acpica/LICENSE">LICENSE</AdditionalFile>
</AdditionalFiles>
</Package>
<Package>
<Name>acpica</Name>
<Files>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="man">/usr/share/man/man1</Path>
</Files>
<AdditionalFiles>
<!-- <AdditionalFile owner="root" permission="0644" target=""></AdditionalFile> -->
</AdditionalFiles>
</Package>
<History>
<Update release="7">
<Date>2020-07-28</Date>
<Version>0.0_20210604</Version>
<Comment>Version Bump</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@pisilinux.org</Email>
</Update>
<Update release="6">
<Date>2020-01-26</Date>
<Version>0.0_20200528</Version>
<Comment>Version Bump</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@pisilinux.org</Email>
</Update>
<Update release="5">
<Date>2020-01-26</Date>
<Version>0.0_20200110</Version>
<Comment>Version Bump</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2018-08-15</Date>
<Version>0.0_20130117</Version>
<Comment>Release Bump</Comment>
<Name>Kamil Atlı</Name>
<Email>suvari@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2017-04-07</Date>
<Version>0.0_20130117</Version>
<Comment>Release Bump</Comment>
<Name>Kamil Atlı</Name>
<Email>suvari@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2016-06-09</Date>
<Version>0.0_20130117</Version>
<Comment>Release Bump</Comment>
<Name>Pisi Linux Community</Name>
<Email>admin@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2014-03-05</Date>
<Version>0.0_20130117</Version>
<Comment>First release</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
</History>
<History>
<Update release="8">
<Date>2022-11-08</Date>
<Version>20221022</Version>
<Comment>Version bump.</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
<Update release="7">
<Date>2020-07-28</Date>
<Version>0.0_20210604</Version>
<Comment>Version Bump</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@pisilinux.org</Email>
</Update>
<Update release="6">
<Date>2020-01-26</Date>
<Version>0.0_20200528</Version>
<Comment>Version Bump</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@pisilinux.org</Email>
</Update>
<Update release="5">
<Date>2020-01-26</Date>
<Version>0.0_20200110</Version>
<Comment>Version Bump</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2018-08-15</Date>
<Version>0.0_20130117</Version>
<Comment>Release Bump</Comment>
<Name>Kamil Atlı</Name>
<Email>suvari@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2017-04-07</Date>
<Version>0.0_20130117</Version>
<Comment>Release Bump</Comment>
<Name>Kamil Atlı</Name>
<Email>suvari@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2016-06-09</Date>
<Version>0.0_20130117</Version>
<Comment>Release Bump</Comment>
<Name>Pisi Linux Community</Name>
<Email>admin@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2014-03-05</Date>
<Version>0.0_20130117</Version>
<Comment>First release</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
</History>
</PISI>
+4 -8
View File
@@ -4,17 +4,13 @@
# Licensed under the GNU General Public License, version 3.
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
from pisi.actionsapi import autotools, pisitools, get
def setup():
autotools.configure()
autotools.configure()
def build():
autotools.make()
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc('README', 'COPYING')
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
@@ -0,0 +1,3 @@
# Pass all events to our one handler script
event=.*
action=/etc/acpi/handler.sh %e
@@ -0,0 +1,96 @@
#!/bin/sh
# Default acpi script that takes an entry for all actions
# NOTE: This is a 2.6-centric script. If you use 2.4.x, you'll have to
# modify it to not use /sys
# $1 should be + or - to step up or down the brightness.
step_backlight() {
for backlight in /sys/class/backlight/*/; do
[ -d "$backlight" ] || continue
step=$(( $(cat "$backlight/max_brightness") / 20 ))
[ "$step" -gt "1" ] || step=1 #fallback if gradation is too low
printf '%s' "$(( $(cat "$backlight/brightness") $1 step ))" >"$backlight/brightness"
done
}
minspeed=$(cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq)
maxspeed=$(cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq)
setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"
case "$1" in
button/power)
case "$2" in
PBTN|PWRF)
logger "PowerButton pressed: $2, shutting down..."
shutdown -P now
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
button/sleep)
case "$2" in
SBTN|SLPB)
# suspend-to-ram
logger "Sleep Button pressed: $2, suspending..."
zzz
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
ac_adapter)
case "$2" in
AC|ACAD|ADP0)
case "$4" in
00000000)
printf '%s' "$minspeed" >"$setspeed"
#/etc/laptop-mode/laptop-mode start
;;
00000001)
printf '%s' "$maxspeed" >"$setspeed"
#/etc/laptop-mode/laptop-mode stop
;;
esac
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
battery)
case "$2" in
BAT0)
case "$4" in
00000000) #echo "offline" >/dev/tty5
;;
00000001) #echo "online" >/dev/tty5
;;
esac
;;
CPU0)
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
button/lid)
case "$3" in
close)
# suspend-to-ram
logger "LID closed, suspending..."
zzz
;;
open)
logger "LID opened"
;;
*) logger "ACPI action undefined (LID): $2";;
esac
;;
video/brightnessdown)
step_backlight -
;;
video/brightnessup)
step_backlight +
;;
*)
logger "ACPI group/action undefined: $1 / $2"
;;
esac
+108 -97
View File
@@ -1,103 +1,114 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>acpid</Name>
<Homepage>https://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="b3e06c3f2213db8ee1a9024cf372fb30e2fab637" type="tarxz">mirrors://sourceforge/acpid2/acpid-2.0.33.tar.xz</Archive>
<Patches>
<!-- <Patch level="1">acpid-2.0.32-powerbtn-gsd-power.patch</Patch> -->
</Patches>
</Source>
<Source>
<Name>acpid</Name>
<Homepage>https://sourceforge.net/projects/acpid2/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPL-2</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="9322112027e4aa5a8d1b97ec64ef1d150ff0f4fc" type="tarxz">
mirrors://sourceforge/acpid2/acpid-2.0.34.tar.xz
</Archive>
<Patches>
<!-- <Patch level="1"></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">/usr/share/dbus-1/services/acpid.service</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>
</AdditionalFiles>
<Provides>
<COMAR script="service.py">System.Service</COMAR>
</Provides>
</Package>
<Package>
<Name>acpid</Name>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="executable">/etc/acpi</Path>
<Path fileType="data">/etc/acpi/events</Path>
<Path fileType="config">/etc/conf.d</Path>
<Path fileType="data">/usr/share/dbus-1/services/acpid.service</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/handler.sh">handler.sh</AdditionalFile>
<AdditionalFile owner="root" permission="0644" target="/etc/acpi/events/anything">anything</AdditionalFile>
<!-- <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> -->
</AdditionalFiles>
<Provides>
<COMAR script="service.py">System.Service</COMAR>
</Provides>
</Package>
<History>
<Update release="8">
<Date>2021-11-04</Date>
<Version>2.0.33</Version>
<Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="7">
<Date>2021-02-18</Date>
<Version>2.0.32</Version>
<Comment>Rebuild.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="6">
<Date>2020-03-02</Date>
<Version>2.0.32</Version>
<Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="5">
<Date>2019-02-10</Date>
<Version>2.0.31</Version>
<Comment>Version bump.</Comment>
<Name>Ertuğrul Erata</Name>
<Email>ertugrulerata@gmail.com</Email>
</Update>
<Update release="4">
<Date>2018-08-13</Date>
<Version>2.0.28</Version>
<Comment>Rebuild</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="3">
<Date>2018-05-13</Date>
<Version>2.0.28</Version>
<Comment>Rebuild</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="2">
<Date>2017-04-06</Date>
<Version>2.0.28</Version>
<Comment>Version bump</Comment>
<Name>Kamil Atlı</Name>
<Email>suvari@pisilinux.org</Email>
</Update>
<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>
<History>
<Update release="9">
<Date>2022-11-10</Date>
<Version>2.0.34</Version>
<Comment>Version bump.</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
<Update release="8">
<Date>2021-11-04</Date>
<Version>2.0.33</Version>
<Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="7">
<Date>2021-02-18</Date>
<Version>2.0.32</Version>
<Comment>Rebuild.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="6">
<Date>2020-03-02</Date>
<Version>2.0.32</Version>
<Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="5">
<Date>2019-02-10</Date>
<Version>2.0.31</Version>
<Comment>Version bump.</Comment>
<Name>Ertuğrul Erata</Name>
<Email>ertugrulerata@gmail.com</Email>
</Update>
<Update release="4">
<Date>2018-08-13</Date>
<Version>2.0.28</Version>
<Comment>Rebuild</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="3">
<Date>2018-05-13</Date>
<Version>2.0.28</Version>
<Comment>Rebuild</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="2">
<Date>2017-04-06</Date>
<Version>2.0.28</Version>
<Comment>Version bump</Comment>
<Name>Kamil Atlı</Name>
<Email>suvari@pisilinux.org</Email>
</Update>
<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>