summaryrefslogtreecommitdiff
path: root/community/acpid/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-20 00:04:49 +0000
committerroot <root@rshg054.dnsready.net>2012-05-20 00:04:49 +0000
commitaad2fba0fc475162b566f1577d8e7a020cd9e80d (patch)
treef289660c47a6cbbf3b68078aeb56f5c19e30a662 /community/acpid/PKGBUILD
parent5d334c7470b5851fbacd4545c8ee0ea676a21ccc (diff)
Sun May 20 00:04:49 UTC 2012
Diffstat (limited to 'community/acpid/PKGBUILD')
-rw-r--r--community/acpid/PKGBUILD39
1 files changed, 25 insertions, 14 deletions
diff --git a/community/acpid/PKGBUILD b/community/acpid/PKGBUILD
index 53ff54a87..677e10b47 100644
--- a/community/acpid/PKGBUILD
+++ b/community/acpid/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 69396 2012-04-15 17:01:41Z seblu $
+# $Id: PKGBUILD 70904 2012-05-18 22:37:04Z seblu $
# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
# Contributor: xduugu
# Contributor: Manolis Tzanidakis
@@ -6,7 +6,7 @@
pkgname=acpid
pkgver=2.0.16
-pkgrel=1
+pkgrel=2
pkgdesc='A daemon for delivering ACPI power management events with netlink support'
arch=('i686' 'x86_64')
url='http://tedfelix.com/linux/acpid-netlink.html'
@@ -16,15 +16,19 @@ optdepends=('perl: use perl based examples')
replaces=('acpid2')
backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything' 'etc/conf.d/acpid')
source=("http://www.tedfelix.com/linux/$pkgname-$pkgver.tar.xz"
- 'acpid'
+ 'acpid.rc'
+ 'acpid.conf'
+ 'acpid.socket'
+ 'acpid.service'
'anything'
- 'handler.sh'
- 'acpid.conf.d')
+ 'handler.sh')
md5sums=('d59fc02c9c34f0d5c137495302e2c074'
- 'd69203a032c4583f9abaafcf21a7ed84'
+ '077475c75fbdd9de75f9a397130ccd91'
+ '929c6d2e91295c22ed9ec6212d7eabef'
+ 'ee6cb99e50e580c50331a73045412ae9'
+ '953e26477c5d4f5f013d6861c04b4af6'
'2d37b98d6e74bab815604b8b48c6cfd4'
- '615439f4a89716c747907d4fc3c8df75'
- '929c6d2e91295c22ed9ec6212d7eabef')
+ '74ee3c33714ff5cb44f30c9a0dceeef0')
build() {
cd $pkgname-$pkgver
@@ -33,15 +37,22 @@ build() {
}
package() {
- cd $pkgname-$pkgver
+ 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"
- install -Dm755 ../acpid "$pkgdir/etc/rc.d/acpid"
- install -Dm644 ../anything "$pkgdir/etc/acpi/events/anything"
- install -Dm755 ../handler.sh "$pkgdir/etc/acpi/handler.sh"
- install -Dm644 ../acpid.conf.d "$pkgdir/etc/conf.d/acpid"
+ # initscripts
+ install -Dm755 acpid.rc "$pkgdir/etc/rc.d/acpid"
+ install -Dm644 acpid.conf "$pkgdir/etc/conf.d/acpid"
+ install -Dm644 acpid.socket "$pkgdir/usr/lib/systemd/system/acpid.socket"
+ install -Dm644 acpid.service "$pkgdir/usr/lib/systemd/system/acpid.service"
- chmod 755 "$pkgdir"/usr/sbin/acpid
+ # fix acpid rights
+ chmod 755 "$pkgdir/usr/sbin/acpid"
}
# vim:set ts=2 sw=2 ft=sh et: