1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00

main/acpid: move acpid to /sbin to overwrite busybox link

Without this, there are two versions of `acpid` installed... one from
this package and a symlink to busybox.
This commit is contained in:
Clayton Craft 2025-05-16 11:35:42 -07:00 committed by achill (fossdd)
parent a681444a7c
commit f122f860f8
2 changed files with 7 additions and 3 deletions

View file

@ -2,7 +2,7 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz> # Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=acpid pkgname=acpid
pkgver=2.0.34 pkgver=2.0.34
pkgrel=6 pkgrel=7
pkgdesc="The ACPI Daemon (acpid) With Netlink Support" pkgdesc="The ACPI Daemon (acpid) With Netlink Support"
url="https://sourceforge.net/projects/acpid2/" url="https://sourceforge.net/projects/acpid2/"
arch="all" arch="all"
@ -51,6 +51,10 @@ package() {
install -D -m 755 "$srcdir"/$pkgname.initd etc/init.d/$pkgname install -D -m 755 "$srcdir"/$pkgname.initd etc/init.d/$pkgname
install -D -m 644 "$srcdir"/$pkgname.confd etc/conf.d/$pkgname install -D -m 644 "$srcdir"/$pkgname.confd etc/conf.d/$pkgname
# Replace busybox symlink
mkdir -p "$pkgdir"/sbin
mv "$pkgdir"/usr/sbin/acpid "$pkgdir"/sbin/
} }
openrc() { openrc() {
@ -65,7 +69,7 @@ sha512sums="
f6df3e75198e779826c187038804ba80e7a445567342ac912ff4e5d894ce936fb9347146c302c7d7c9bbc8b3a0e47aeee9d23a4b297ee37e3938b7310a1b5ad9 lid-closed f6df3e75198e779826c187038804ba80e7a445567342ac912ff4e5d894ce936fb9347146c302c7d7c9bbc8b3a0e47aeee9d23a4b297ee37e3938b7310a1b5ad9 lid-closed
eae05acd31c84d72b94237c785354f1ce5ceea751b6717055f912e0638e43c2e9fa0283ac07afb593c4675730cfdfaa575c8c7d58f20c005f6054dee78bcae4f suspend eae05acd31c84d72b94237c785354f1ce5ceea751b6717055f912e0638e43c2e9fa0283ac07afb593c4675730cfdfaa575c8c7d58f20c005f6054dee78bcae4f suspend
2e04e5c8a428bfc653b4d56f5a2ff4472169a094ed9eee4b02ea88c755848e4803a0edeb054e152516ee50cb67c8c2be2c43e2e9db9dc80b7fcf218b8907ef6c anything 2e04e5c8a428bfc653b4d56f5a2ff4472169a094ed9eee4b02ea88c755848e4803a0edeb054e152516ee50cb67c8c2be2c43e2e9db9dc80b7fcf218b8907ef6c anything
b146370f9c9b3917a7d8c840bc7a5bbb022e6b86cfeaeeac762c0369bc15801e1ab63584f272fedc31f915e6ba12e34c9f9b2d1a31e7e08e83d5075a023d42e2 acpid.initd c647112006486abb469fdb60c2a91699e6922dac8b09642fa70d4341c9029748f99539d5befc8951adf57a6b382cf5a65adfd208bc2f19cab39b680120504e61 acpid.initd
b8f62dc7d5a2d1338936af79b3e7165cc1c652be0be9e7f8eb00d964c1c1ef91767f16e8662eaa77920d914b966ae208c8480e44cb2dca0de4bfed01f302a089 acpid.confd b8f62dc7d5a2d1338936af79b3e7165cc1c652be0be9e7f8eb00d964c1c1ef91767f16e8662eaa77920d914b966ae208c8480e44cb2dca0de4bfed01f302a089 acpid.confd
a2ba48439f94a079a5d9a4295306b1478a2e025ba32c6b45b46b1b718b209966c2cea2c46c08d17a7d627418e602c4de255f652721d4219bf0c3fff5a8607ad7 lfs64.patch a2ba48439f94a079a5d9a4295306b1478a2e025ba32c6b45b46b1b718b209966c2cea2c46c08d17a7d627418e602c4de255f652721d4219bf0c3fff5a8607ad7 lfs64.patch
" "

View file

@ -5,7 +5,7 @@ description="The ACPI Daemon"
extra_started_commands="reload" extra_started_commands="reload"
description_reload="Reload configuration" description_reload="Reload configuration"
command="/usr/sbin/acpid" command="/sbin/acpid"
command_args="--foreground ${command_args:-}" command_args="--foreground ${command_args:-}"
command_background="yes" command_background="yes"
pidfile="/run/$RC_SVCNAME.pid" pidfile="/run/$RC_SVCNAME.pid"