Date: Sunday, April 22, 2018 @ 21:47:31 Author: foxboron Revision: 317317
archrelease: copy trunk to community-x86_64 Added: acpid/repos/community-x86_64/PKGBUILD (from rev 317316, acpid/trunk/PKGBUILD) acpid/repos/community-x86_64/acpid.service (from rev 317316, acpid/trunk/acpid.service) acpid/repos/community-x86_64/anything (from rev 317316, acpid/trunk/anything) acpid/repos/community-x86_64/handler.sh (from rev 317316, acpid/trunk/handler.sh) Deleted: acpid/repos/community-x86_64/PKGBUILD acpid/repos/community-x86_64/acpid.service acpid/repos/community-x86_64/anything acpid/repos/community-x86_64/handler.sh ---------------+ PKGBUILD | 95 ++++++++++++++++------------------ acpid.service | 18 +++--- anything | 6 +- handler.sh | 154 ++++++++++++++++++++++++++++---------------------------- 4 files changed, 135 insertions(+), 138 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-04-22 21:46:54 UTC (rev 317316) +++ PKGBUILD 2018-04-22 21:47:31 UTC (rev 317317) @@ -1,49 +0,0 @@ -# $Id$ -# Maintainer: Sébastien Luttringer -# Contributor: xduugu -# Contributor: Manolis Tzanidakis -# Contributor: Jonathan Schmidt <j.schm...@archlinux.us - -pkgname=acpid -pkgver=2.0.29 -pkgrel=1 -pkgdesc='A daemon for delivering ACPI power management events with netlink support' -arch=('x86_64') -url='http://sourceforge.net/projects/acpid2/' -license=('GPL') -depends=('bash') -optdepends=('perl: use perl based examples') -replaces=('acpid2') -backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything') -source=("http://downloads.sourceforge.net/sourceforge/acpid2/$pkgname-$pkgver.tar.xz" - 'acpid.service' - 'anything' - 'handler.sh') -md5sums=('6dd58a35cac51bd9503d769f5d13d74d' - 'b9a9810eefae2142e20c965c01b410de' - '2d37b98d6e74bab815604b8b48c6cfd4' - '47f44ff5f02685dce8bcdab8568f0c38') - -build() { - cd $pkgname-$pkgver - ./configure --prefix=/usr --sbindir=/usr/bin - make -} - -package() { - pushd $pkgname-$pkgver - make DESTDIR="$pkgdir" install - popd - - # default config - install -Dm644 anything "$pkgdir/etc/acpi/events/anything" - install -Dm755 handler.sh "$pkgdir/etc/acpi/handler.sh" - - # systemd - install -Dm644 acpid.service "$pkgdir/usr/lib/systemd/system/acpid.service" - - # fix acpid rights - chmod 755 "$pkgdir/usr/bin/acpid" -} - -# vim:set ts=2 sw=2 et: Copied: acpid/repos/community-x86_64/PKGBUILD (from rev 317316, acpid/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-04-22 21:47:31 UTC (rev 317317) @@ -0,0 +1,46 @@ +# $Id$ +# Maintainer: Morten Linderud <foxbo...@archlinux.org> +# Contributor: Sébastien Luttringer +# Contributor: xduugu +# Contributor: Manolis Tzanidakis +# Contributor: Jonathan Schmidt <j.schm...@archlinux.us + +pkgname=acpid +pkgver=2.0.29 +pkgrel=2 +pkgdesc='A daemon for delivering ACPI power management events with netlink support' +arch=('x86_64') +url='https://sourceforge.net/projects/acpid2/' +license=('GPL') +depends=('bash') +optdepends=('perl: use perl based examples') +replaces=('acpid2') +backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything') +source=("https://downloads.sourceforge.net/sourceforge/acpid2/$pkgname-$pkgver.tar.xz" + 'acpid.service' + 'anything' + 'handler.sh') +sha256sums=('58503b27975c466e627eb741c5453dd662f97edef1a3d0aac822fd03a84203ff' + 'a8236bbf774f5e90a4daa369731d6d335c3374ddc62f1224fba02a3d6d678111' + 'eb5230affb9dba7653890655b94e83f377c689a39131b6b13c8202ba2382c275' + '1c1e39b7ecc57092ba9d747f452fb36d8ae0456e2e64849c9c4a2625d1d57413') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --sbindir=/usr/bin + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install + + # default config + install -Dm644 ../anything "$pkgdir/etc/acpi/events/anything" + install -Dm755 ../handler.sh "$pkgdir/etc/acpi/handler.sh" + + # systemd + install -Dm644 ../acpid.service "$pkgdir/usr/lib/systemd/system/acpid.service" +} + +# vim:set ts=2 sw=2 et: Deleted: acpid.service =================================================================== --- acpid.service 2018-04-22 21:46:54 UTC (rev 317316) +++ acpid.service 2018-04-22 21:47:31 UTC (rev 317317) @@ -1,9 +0,0 @@ -[Unit] -Description=ACPI event daemon -Documentation=man:acpid(8) - -[Service] -ExecStart=/usr/bin/acpid --foreground --netlink - -[Install] -WantedBy=multi-user.target Copied: acpid/repos/community-x86_64/acpid.service (from rev 317316, acpid/trunk/acpid.service) =================================================================== --- acpid.service (rev 0) +++ acpid.service 2018-04-22 21:47:31 UTC (rev 317317) @@ -0,0 +1,9 @@ +[Unit] +Description=ACPI event daemon +Documentation=man:acpid(8) + +[Service] +ExecStart=/usr/bin/acpid --foreground --netlink + +[Install] +WantedBy=multi-user.target Deleted: anything =================================================================== --- anything 2018-04-22 21:46:54 UTC (rev 317316) +++ anything 2018-04-22 21:47:31 UTC (rev 317317) @@ -1,3 +0,0 @@ -# Pass all events to our one handler script -event=.* -action=/etc/acpi/handler.sh %e Copied: acpid/repos/community-x86_64/anything (from rev 317316, acpid/trunk/anything) =================================================================== --- anything (rev 0) +++ anything 2018-04-22 21:47:31 UTC (rev 317317) @@ -0,0 +1,3 @@ +# Pass all events to our one handler script +event=.* +action=/etc/acpi/handler.sh %e Deleted: handler.sh =================================================================== --- handler.sh 2018-04-22 21:46:54 UTC (rev 317316) +++ handler.sh 2018-04-22 21:47:31 UTC (rev 317317) @@ -1,77 +0,0 @@ -#!/bin/bash -# Default acpi script that takes an entry for all actions - -case "$1" in - button/power) - case "$2" in - PBTN|PWRF) - logger 'PowerButton pressed' - ;; - *) - logger "ACPI action undefined: $2" - ;; - esac - ;; - button/sleep) - case "$2" in - SLPB|SBTN) - logger 'SleepButton pressed' - ;; - *) - logger "ACPI action undefined: $2" - ;; - esac - ;; - ac_adapter) - case "$2" in - AC|ACAD|ADP0) - case "$4" in - 00000000) - logger 'AC unpluged' - ;; - 00000001) - logger 'AC pluged' - ;; - esac - ;; - *) - logger "ACPI action undefined: $2" - ;; - esac - ;; - battery) - case "$2" in - BAT0) - case "$4" in - 00000000) - logger 'Battery online' - ;; - 00000001) - logger 'Battery offline' - ;; - esac - ;; - CPU0) - ;; - *) logger "ACPI action undefined: $2" ;; - esac - ;; - button/lid) - case "$3" in - close) - logger 'LID closed' - ;; - open) - logger 'LID opened' - ;; - *) - logger "ACPI action undefined: $3" - ;; - esac - ;; - *) - logger "ACPI group/action undefined: $1 / $2" - ;; -esac - -# vim:set ts=4 sw=4 ft=sh et: Copied: acpid/repos/community-x86_64/handler.sh (from rev 317316, acpid/trunk/handler.sh) =================================================================== --- handler.sh (rev 0) +++ handler.sh 2018-04-22 21:47:31 UTC (rev 317317) @@ -0,0 +1,77 @@ +#!/bin/bash +# Default acpi script that takes an entry for all actions + +case "$1" in + button/power) + case "$2" in + PBTN|PWRF) + logger 'PowerButton pressed' + ;; + *) + logger "ACPI action undefined: $2" + ;; + esac + ;; + button/sleep) + case "$2" in + SLPB|SBTN) + logger 'SleepButton pressed' + ;; + *) + logger "ACPI action undefined: $2" + ;; + esac + ;; + ac_adapter) + case "$2" in + AC|ACAD|ADP0) + case "$4" in + 00000000) + logger 'AC unpluged' + ;; + 00000001) + logger 'AC pluged' + ;; + esac + ;; + *) + logger "ACPI action undefined: $2" + ;; + esac + ;; + battery) + case "$2" in + BAT0) + case "$4" in + 00000000) + logger 'Battery online' + ;; + 00000001) + logger 'Battery offline' + ;; + esac + ;; + CPU0) + ;; + *) logger "ACPI action undefined: $2" ;; + esac + ;; + button/lid) + case "$3" in + close) + logger 'LID closed' + ;; + open) + logger 'LID opened' + ;; + *) + logger "ACPI action undefined: $3" + ;; + esac + ;; + *) + logger "ACPI group/action undefined: $1 / $2" + ;; +esac + +# vim:set ts=4 sw=4 ft=sh et: