mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-04 19:03:28 +08:00
7983d36684
Drop second patch (source code was merged withd0a058548d
and moved with5ec0bfe959
) https://sourceforge.net/p/acpid2/code/ci/2.0.34/tree/Changelog Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# acpid
|
|
#
|
|
################################################################################
|
|
|
|
ACPID_VERSION = 2.0.34
|
|
ACPID_SOURCE = acpid-$(ACPID_VERSION).tar.xz
|
|
ACPID_SITE = http://downloads.sourceforge.net/project/acpid2
|
|
ACPID_LICENSE = GPL-2.0+
|
|
ACPID_LICENSE_FILES = COPYING
|
|
ACPID_CPE_ID_VENDOR = tedfelix
|
|
ACPID_CPE_ID_PRODUCT = acpid2
|
|
ACPID_SELINUX_MODULES = acpi
|
|
|
|
define ACPID_INSTALL_INIT_SYSTEMD
|
|
$(INSTALL) -D -m 0644 package/acpid/acpid.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/acpid.service
|
|
endef
|
|
|
|
define ACPID_INSTALL_INIT_SYSV
|
|
$(INSTALL) -D -m 0755 package/acpid/S02acpid \
|
|
$(TARGET_DIR)/etc/init.d/S02acpid
|
|
endef
|
|
|
|
ifeq ($(BR2_INIT_SYSV)$(BR2_INIT_SYSTEMD),y)
|
|
ACPID_POWEROFF_CMD = /sbin/shutdown -hP now
|
|
else
|
|
ACPID_POWEROFF_CMD = /sbin/poweroff
|
|
endif
|
|
|
|
define ACPID_SET_EVENTS
|
|
mkdir -p $(TARGET_DIR)/etc/acpi/events
|
|
printf 'event=button[ /]power\naction=%s\n' '$(ACPID_POWEROFF_CMD)' \
|
|
>$(TARGET_DIR)/etc/acpi/events/powerbtn
|
|
endef
|
|
|
|
ACPID_POST_INSTALL_TARGET_HOOKS += ACPID_SET_EVENTS
|
|
|
|
$(eval $(autotools-package))
|