af31c309e7
We want to use SPDX identifier for license strings as much as possible. SPDX short identifier for GPLv2/GPLv2+ is GPL-2.0/GPL-2.0+. This change is done by using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/\<GPLv2\>/GPL-2.0/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
27 lines
736 B
Makefile
27 lines
736 B
Makefile
################################################################################
|
|
#
|
|
# acpid
|
|
#
|
|
################################################################################
|
|
|
|
ACPID_VERSION = 2.0.28
|
|
ACPID_SOURCE = acpid-$(ACPID_VERSION).tar.xz
|
|
ACPID_SITE = http://downloads.sourceforge.net/project/acpid2
|
|
ACPID_LICENSE = GPL-2.0+
|
|
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\naction=/sbin/poweroff\n" \
|
|
>$(TARGET_DIR)/etc/acpi/events/powerbtn
|
|
endef
|
|
|
|
ACPID_POST_INSTALL_TARGET_HOOKS += ACPID_SET_EVENTS
|
|
|
|
$(eval $(autotools-package))
|