|
|
@ -8,17 +8,21 @@ |
|
|
|
include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
PKG_NAME:=acpid |
|
|
|
PKG_VERSION:=2.0.30 |
|
|
|
PKG_VERSION:=2.0.32 |
|
|
|
PKG_RELEASE:=1 |
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz |
|
|
|
PKG_SOURCE_URL:=@SF/acpid2 |
|
|
|
PKG_HASH:=28b77b62d3f64ebd1c2a3d16bccc6d4333b4e24a86aeacebec255fad223cf4cb |
|
|
|
PKG_HASH:=f2d2d30b3edc3234bd82f6f7186699a6aa3c85c8d20bc4e30e9b3c68a1ed157e |
|
|
|
|
|
|
|
PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de> |
|
|
|
PKG_LICENSE:=GPL-2.0 |
|
|
|
PKG_LICENSE:=GPL-2.0-or-later |
|
|
|
PKG_LICENSE_FILES:=COPYING |
|
|
|
PKG_CPE_ID:=cpe:/a:tedfelix:acpid |
|
|
|
|
|
|
|
PKG_INSTALL:=1 |
|
|
|
PKG_BUILD_PARALLEL:=1 |
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
|
|
|
|
|
define Package/acpid |
|
|
@ -33,18 +37,15 @@ define Package/acpid/description |
|
|
|
The ACPI Daemon (acpid) With Netlink Support |
|
|
|
endef |
|
|
|
|
|
|
|
define Build/Compile |
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
LD="$(TARGET_CC)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
|
|
all |
|
|
|
endef |
|
|
|
TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto |
|
|
|
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed |
|
|
|
|
|
|
|
define Package/acpid/install |
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin |
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/acpid $(1)/usr/sbin/ |
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/acpi_listen $(1)/usr/sbin/ |
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/acpid $(1)/usr/sbin/ |
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kacpimon $(1)/usr/sbin/ |
|
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/acpi_listen $(1)/usr/sbin/ |
|
|
|
$(INSTALL_DIR) $(1)/etc/acpi/events |
|
|
|
$(INSTALL_CONF) ./files/default $(1)/etc/acpi/events/default |
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d |
|
|
|