package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / acpid / acpid.mk
blob7a6a478ed452e008011b4cf2b77828f85c3d90e5
1 ################################################################################
3 # acpid
5 ################################################################################
7 ACPID_VERSION = 2.0.22
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))