acpid: Update to 2.0.32
authorRosen Penev <redacted>
Wed, 30 Oct 2019 17:14:52 +0000 (10:14 -0700)
committerRosen Penev <redacted>
Wed, 30 Oct 2019 17:17:08 +0000 (10:17 -0700)
Switched compilation to standard PKG_INSTALL.

Added extra binary.

Added size optimizations.

Miscellaneous cleanups.

Signed-off-by: Rosen Penev <redacted>
utils/acpid/Makefile

index 7c9b32228fe46b8b3d6c49fcd939ba6ab4dafcd5..97f9c51d83c3808a641c560e7c0f1d5ad3428f33 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT