python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / acpid / acpid.mk
blobf561b9083d0aae8669710a28dfd7a53da70bf1d2
1 ################################################################################
3 # acpid
5 ################################################################################
7 ACPID_VERSION = 2.0.28
8 ACPID_SOURCE = acpid-$(ACPID_VERSION).tar.xz
9 ACPID_SITE = http://downloads.sourceforge.net/project/acpid2
10 ACPID_LICENSE = GPLv2+
11 ACPID_LICENSE_FILES = COPYING
13 define ACPID_INSTALL_INIT_SYSV
14 $(INSTALL) -D -m 0755 package/acpid/S02acpid \
15 $(TARGET_DIR)/etc/init.d/S02acpid
16 endef
18 define ACPID_SET_EVENTS
19 mkdir -p $(TARGET_DIR)/etc/acpi/events
20 printf "event=button[ /]power\naction=/sbin/poweroff\n" \
21 >$(TARGET_DIR)/etc/acpi/events/powerbtn
22 endef
24 ACPID_POST_INSTALL_TARGET_HOOKS += ACPID_SET_EVENTS
26 $(eval $(autotools-package))