mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
@@ -8,12 +8,12 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=acpid
|
||||
PKG_VERSION:=2.0.29
|
||||
PKG_VERSION:=2.0.30
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=@SF/acpid2
|
||||
PKG_HASH:=58503b27975c466e627eb741c5453dd662f97edef1a3d0aac822fd03a84203ff
|
||||
PKG_HASH:=28b77b62d3f64ebd1c2a3d16bccc6d4333b4e24a86aeacebec255fad223cf4cb
|
||||
PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
@@ -24,7 +24,7 @@ define Package/acpid
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=The ACPI Daemon (acpid) With Netlink Support
|
||||
URL:=http://tedfelix.com/linux/acpid-netlink.html
|
||||
URL:=https://sourceforge.net/projects/acpid2/
|
||||
DEPENDS:=+kmod-input-evdev
|
||||
endef
|
||||
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
Partially roll back upstream commit 4711119089e1ad08dad206f4fded68f1972fdeed
|
||||
since released versions of uClibc don't support isfdtype().
|
||||
|
||||
Signed-off-by: Gustavo Zaarias <gustavo@zacarias.com.ar>
|
||||
|
||||
Index: acpid-2.0.23/sock.c
|
||||
===================================================================
|
||||
--- acpid-2.0.23.orig/sock.c
|
||||
+++ acpid-2.0.23/sock.c
|
||||
@@ -53,7 +53,10 @@ int non_root_clients;
|
||||
int
|
||||
is_socket(int fd)
|
||||
{
|
||||
- return (isfdtype(fd, S_IFSOCK) == 1);
|
||||
+ int v;
|
||||
+ socklen_t l = sizeof(int);
|
||||
+
|
||||
+ return (getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&v, &l) == 0);
|
||||
}
|
||||
|
||||
/* accept a new client connection */
|
||||
Reference in New Issue
Block a user