Blame view

buildroot/buildroot-2016.08.1/package/acpid/acpid.mk 734 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  ################################################################################
  #
  # acpid
  #
  ################################################################################
  
  ACPID_VERSION = 2.0.27
  ACPID_SOURCE = acpid-$(ACPID_VERSION).tar.xz
  ACPID_SITE = http://downloads.sourceforge.net/project/acpid2
  ACPID_LICENSE = GPLv2+
  ACPID_LICENSE_FILES = COPYING
  
  define ACPID_INSTALL_INIT_SYSV
  	$(INSTALL) -D -m 0755 package/acpid/S02acpid \
  		$(TARGET_DIR)/etc/init.d/S02acpid
  endef
  
  define ACPID_SET_EVENTS
  	mkdir -p $(TARGET_DIR)/etc/acpi/events
  	printf "event=button[ /]power
  action=/sbin/poweroff
  " \
  		>$(TARGET_DIR)/etc/acpi/events/powerbtn
  endef
  
  ACPID_POST_INSTALL_TARGET_HOOKS += ACPID_SET_EVENTS
  
  $(eval $(autotools-package))