diff options
author | root <root@rshg054.dnsready.net> | 2013-07-17 00:58:52 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-17 00:58:52 -0700 |
commit | dee9f17b595ea903a982d31d1124b302bb17e2ff (patch) | |
tree | 295fdab78e28e1952fbc13ce824d57c88ede4e3b /community/acpid | |
parent | 380530d02a5449fdef97b63b394a6743c3de0092 (diff) |
Wed Jul 17 00:58:51 PDT 2013
Diffstat (limited to 'community/acpid')
-rw-r--r-- | community/acpid/PKGBUILD | 52 | ||||
-rw-r--r-- | community/acpid/acpid.service | 10 | ||||
-rw-r--r-- | community/acpid/acpid.socket | 8 | ||||
-rw-r--r-- | community/acpid/anything | 3 | ||||
-rw-r--r-- | community/acpid/handler.sh | 77 |
5 files changed, 0 insertions, 150 deletions
diff --git a/community/acpid/PKGBUILD b/community/acpid/PKGBUILD deleted file mode 100644 index 0b3ff7969..000000000 --- a/community/acpid/PKGBUILD +++ /dev/null @@ -1,52 +0,0 @@ -# $Id: PKGBUILD 91937 2013-05-29 23:05:51Z seblu $ -# Maintainer: Sébastien Luttringer -# Contributor: xduugu -# Contributor: Manolis Tzanidakis -# Contributor: Jonathan Schmidt <j.schmidt@archlinux.us - -pkgname=acpid -pkgver=2.0.19 -pkgrel=1 -pkgdesc='A daemon for delivering ACPI power management events with netlink support' -arch=('i686' '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.socket' - 'acpid.service' - 'anything' - 'handler.sh') -md5sums=('0b07a982e3e28cf37645f2c6269af72e' - 'd11700eb136e0489835ddaf977a7905b' - '79cc7a9dceacdeffd51f070c2ba5f023' - '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.socket "$pkgdir/usr/lib/systemd/system/acpid.socket" - 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: diff --git a/community/acpid/acpid.service b/community/acpid/acpid.service deleted file mode 100644 index 022f72a71..000000000 --- a/community/acpid/acpid.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=ACPI event daemon -Requires=acpid.socket - -[Service] -ExecStart=/usr/bin/acpid -f - -[Install] -WantedBy=multi-user.target -Also=acpid.socket diff --git a/community/acpid/acpid.socket b/community/acpid/acpid.socket deleted file mode 100644 index 1b23f8735..000000000 --- a/community/acpid/acpid.socket +++ /dev/null @@ -1,8 +0,0 @@ -[Unit] -Description=ACPID Listen Socket - -[Socket] -ListenStream=/var/run/acpid.socket - -[Install] -WantedBy=sockets.target diff --git a/community/acpid/anything b/community/acpid/anything deleted file mode 100644 index d1828989b..000000000 --- a/community/acpid/anything +++ /dev/null @@ -1,3 +0,0 @@ -# Pass all events to our one handler script -event=.* -action=/etc/acpi/handler.sh %e diff --git a/community/acpid/handler.sh b/community/acpid/handler.sh deleted file mode 100644 index bab144d03..000000000 --- a/community/acpid/handler.sh +++ /dev/null @@ -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: |