1 ################################################################################
5 ################################################################################
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
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
24 ACPID_POST_INSTALL_TARGET_HOOKS
+= ACPID_SET_EVENTS
26 $(eval
$(autotools-package
))