mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-29 20:42:24 +01:00
52 lines
1.8 KiB
Plaintext
52 lines
1.8 KiB
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
#
|
|
# TODO: Add more useful handler.sh.
|
|
pkgname=acpid
|
|
pkgver=2.0.32
|
|
pkgrel=0
|
|
pkgdesc="The ACPI Daemon (acpid) With Netlink Support"
|
|
url="https://sourceforge.net/projects/acpid2/"
|
|
arch="all"
|
|
license="GPL-2.0-or-later"
|
|
makedepends="linux-headers"
|
|
subpackages="$pkgname-doc $pkgname-openrc"
|
|
source="https://downloads.sourceforge.net/sourceforge/acpid2/acpid-$pkgver.tar.xz
|
|
handler.sh
|
|
anything
|
|
acpid2.initd
|
|
acpid2.confd
|
|
"
|
|
builddir="$srcdir/acpid-$pkgver"
|
|
options="!check" # no tests provided
|
|
|
|
build() {
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var
|
|
make
|
|
}
|
|
|
|
package() {
|
|
make install DESTDIR="$pkgdir"
|
|
|
|
install -D -m 755 "$srcdir"/handler.sh "$pkgdir"/etc/acpi/handler.sh
|
|
install -D -m 644 "$srcdir"/anything "$pkgdir"/etc/acpi/events/anything
|
|
|
|
# Service name acpid is taken by busybox acpid (busybox-initscripts).
|
|
install -D -m 755 "$srcdir"/acpid2.initd "$pkgdir"/etc/init.d/acpid2
|
|
install -D -m 644 "$srcdir"/acpid2.confd "$pkgdir"/etc/conf.d/acpid2
|
|
}
|
|
|
|
sha512sums="
|
|
c7afffdf9818504e1ac03b0ad693a05f772bfd07af9808262b3b6bb82ca4dabe6253c94e6dc59e5be6f0da9e815e8bcf2d3e16f02b23d0248b6bad4509e78be7 acpid-2.0.32.tar.xz
|
|
81cc270b478fec9bd9228d0e348d9179a4e62c07ccd2eab059631ade11e163336f4ae1f1f01b2b884abe10606ee334375a4106e748bcc5d265f60d70e8675479 handler.sh
|
|
2e04e5c8a428bfc653b4d56f5a2ff4472169a094ed9eee4b02ea88c755848e4803a0edeb054e152516ee50cb67c8c2be2c43e2e9db9dc80b7fcf218b8907ef6c anything
|
|
b146370f9c9b3917a7d8c840bc7a5bbb022e6b86cfeaeeac762c0369bc15801e1ab63584f272fedc31f915e6ba12e34c9f9b2d1a31e7e08e83d5075a023d42e2 acpid2.initd
|
|
0e8d39b4aa00d8bfa0b9a490c52e0e96bf4a34d27347f07a8289d57be73b369e93bdca29529beda52cb102ad0a4f3149549916fe6924ee7531974fa5b92716b7 acpid2.confd
|
|
"
|