2005-06-23 06:48:02 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# acpid
|
|
|
|
#
|
|
|
|
#############################################################
|
2011-08-14 16:08:08 +02:00
|
|
|
ACPID_VERSION = 2.0.11
|
2010-09-26 09:13:52 +02:00
|
|
|
ACPID_SOURCE = acpid_$(ACPID_VERSION).orig.tar.gz
|
|
|
|
ACPID_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/a/acpid
|
2012-11-30 01:14:36 +01:00
|
|
|
ACPID_LICENSE = GPLv2+
|
|
|
|
ACPID_LICENSE_FILES = COPYING
|
2010-09-26 09:13:52 +02:00
|
|
|
|
|
|
|
define ACPID_BUILD_CMDS
|
|
|
|
$(MAKE) CC="$(TARGET_CC)" -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define ACPID_INSTALL_TARGET_CMDS
|
|
|
|
install -D -m 755 $(@D)/acpid $(TARGET_DIR)/usr/sbin/acpid
|
|
|
|
install -D -m 755 $(@D)/acpi_listen $(TARGET_DIR)/usr/bin/acpi_listen
|
|
|
|
install -D -m 644 $(@D)/acpid.8 $(TARGET_DIR)/usr/share/man/man8/acpid.8
|
|
|
|
install -D -m 644 $(@D)/acpi_listen.8 $(TARGET_DIR)/usr/share/man/man8/acpi_listen.8
|
2005-06-23 06:48:02 +02:00
|
|
|
mkdir -p $(TARGET_DIR)/etc/acpi/events
|
2006-12-08 06:23:08 +01:00
|
|
|
/bin/echo -e "event=button[ /]power\naction=/sbin/poweroff" > $(TARGET_DIR)/etc/acpi/events/powerbtn
|
2012-08-11 09:18:32 +02:00
|
|
|
$(INSTALL) -D -m 0755 package/acpid/S02acpid $(TARGET_DIR)/etc/init.d/S02acpid
|
2010-09-26 09:13:52 +02:00
|
|
|
endef
|
2005-06-23 06:48:02 +02:00
|
|
|
|
2010-09-26 09:13:52 +02:00
|
|
|
define ACPID_UNINSTALL_TARGET_CMDS
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/acpid
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/acpi_listen
|
|
|
|
rm -f $(addprefix )$(TARGET_DIR)/usr/share/man/man8/,acpid.8 acpi_listen.8)
|
|
|
|
endef
|
2005-06-23 06:48:02 +02:00
|
|
|
|
2010-09-26 09:13:52 +02:00
|
|
|
define ACPID_CLEAN_CMDS
|
|
|
|
-$(MAKE) -C $(@D) clean
|
|
|
|
endef
|
2005-06-23 06:48:02 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|