Announcing Hiredis v1.2.0 with with new adapters, and a great many bug fixes. 🚀 New Features - Add sdevent adapter - Allow specifying the keepalive interval - Add RedisModule adapter - Helper for setting TCP_USER_TIMEOUT socket option 🐛 Bug Fixes - Fix a typo in b6a052f. - Fix wincrypt symbols conflict - Don't attempt to set a timeout if we are in an error state. - Accept -nan per the RESP3 spec recommendation. - Fix colliding option values - Ensure functionality without `_MSC_VER` definition 🧰 Maintenance - Add a test for the TCP_USER_TIMEOUT option. - Add -Werror as a default. - CI: Update homebrew Redis version. - Fix typo in makefile. - Write a version file for the CMake package - CMakeLists.txt: respect BUILD_SHARED_LIBS - Cmake static or shared - fix typo - Add a test ensuring we don't clobber connection error. - Search for openssl on macOS Signed-off-by: Daniel Golle <daniel@makrotopia.org>
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
#
|
|
# Copyright (C) 2010-2015 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=hiredis
|
|
PKG_VERSION:=1.2.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/redis/hiredis/tar.gz/v$(PKG_VERSION)?
|
|
PKG_HASH:=82ad632d31ee05da13b537c124f819eb88e18851d9cb0c30ae0552084811588c
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=COPYING
|
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
CMAKE_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/libhiredis
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=Minimalistic C client for Redis
|
|
URL:=https://github.com/redis/hiredis
|
|
endef
|
|
|
|
define Package/libhiredis/description
|
|
Hiredis is a minimalistic C client library for the Redis database.
|
|
endef
|
|
|
|
define Package/libhiredis/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libhiredis.so* $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libhiredis))
|