imagemagick: bump version to 7.0.3-7 (security)
[buildroot-gz.git] / package / acpid / acpid.mk
blob510282bb48e0f24b9b9fa35bb2c0c858bbf21d6d
1 ################################################################################
3 # acpid
5 ################################################################################
7 ACPID_VERSION = 2.0.27
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))