debian/0000755000000000000000000000000012201757015007166 5ustar debian/control0000644000000000000000000000717512201757015010603 0ustar Source: hiredis Priority: optional Maintainer: Tom Lee Build-Depends: debhelper (>= 9), redis-server (>= 2:2.4.2-2) [linux-any], procps Standards-Version: 3.9.4 Section: libs Homepage: https://github.com/redis/hiredis Vcs-Git: git://git.debian.org/collab-maint/hiredis.git Vcs-Browser: http://git.debian.org/?p=collab-maint/hiredis.git;a=summary Package: libhiredis0.10 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Pre-Depends: ${misc:Pre-Depends} Multi-Arch: same Description: minimalistic C client library for Redis Hiredis is a minimalistic C client library for the Redis database. It is minimalistic because it just adds minimal support for the protocol, but at the same time it uses an high level printf-alike API in order to make it much higher level than otherwise suggested by its minimal code base and the lack of explicit bindings for every Redis command. . Apart from supporting sending commands and receiving replies, it comes with a reply parser that is decoupled from the I/O layer. It is a stream parser designed for easy reusability, which can for instance be used in higher level language bindings for efficient reply parsing. . Hiredis only supports the binary-safe Redis protocol, so you can use it with any Redis version >= 1.2.0. . The library comes with multiple APIs. There is the synchronous API, the asynchronous API and the reply parsing API. Package: libhiredis-dev Section: libdevel Architecture: any Depends: ${misc:Depends}, libhiredis0.10 (= ${binary:Version}) Multi-Arch: same Description: minimalistic C client library for Redis (development files) Hiredis is a minimalistic C client library for the Redis database. It is minimalistic because it just adds minimal support for the protocol, but at the same time it uses an high level printf-alike API in order to make it much higher level than otherwise suggested by its minimal code base and the lack of explicit bindings for every Redis command. . Apart from supporting sending commands and receiving replies, it comes with a reply parser that is decoupled from the I/O layer. It is a stream parser designed for easy reusability, which can for instance be used in higher level language bindings for efficient reply parsing. . Hiredis only supports the binary-safe Redis protocol, so you can use it with any Redis version >= 1.2.0. . The library comes with multiple APIs. There is the synchronous API, the asynchronous API and the reply parsing API. . This package provides the development files for hiredis. Package: libhiredis-dbg Priority: extra Section: debug Architecture: any Depends: ${misc:Depends}, libhiredis0.10 (= ${binary:Version}) Multi-Arch: same Description: minimalistic C client library for Redis (debug) Hiredis is a minimalistic C client library for the Redis database. It is minimalistic because it just adds minimal support for the protocol, but at the same time it uses an high level printf-alike API in order to make it much higher level than otherwise suggested by its minimal code base and the lack of explicit bindings for every Redis command. . Apart from supporting sending commands and receiving replies, it comes with a reply parser that is decoupled from the I/O layer. It is a stream parser designed for easy reusability, which can for instance be used in higher level language bindings for efficient reply parsing. . Hiredis only supports the binary-safe Redis protocol, so you can use it with any Redis version >= 1.2.0. . The library comes with multiple APIs. There is the synchronous API, the asynchronous API and the reply parsing API. . This package provides the debugging symbols for hiredis. debian/compat0000644000000000000000000000000212201757015010364 0ustar 9 debian/watch0000644000000000000000000000011512201757015010214 0ustar version=3 http://githubredir.debian.net/github/redis/hiredis \/v(.*).tar.gz debian/patches/0000755000000000000000000000000012201757015010615 5ustar debian/patches/01_use-proper-destdir.patch0000644000000000000000000000064512201757015015700 0ustar Description: Make the Makefile use the $(DESTDIR) variable Origin: vendor Forwarded: not-needed From: Alessandro Ghedini Last-Update: 2012-08-28 --- a/Makefile +++ b/Makefile @@ -104,7 +104,7 @@ $(CC) -MM *.c # Installation related variables and target -PREFIX?=/usr/local +PREFIX?=$(DESTDIR)/usr INCLUDE_PATH?=include/hiredis LIBRARY_PATH?=lib INSTALL_INCLUDE_PATH= $(PREFIX)/$(INCLUDE_PATH) debian/patches/series0000644000000000000000000000012312201757015012026 0ustar 01_use-proper-destdir.patch 02_disable-failing-test.patch 03_pkgconfig-cmake.patch debian/patches/03_pkgconfig-cmake.patch0000644000000000000000000000735012201757015015172 0ustar Description: Add pkg-config and cmake scripts Origin: vendor Forwarded: https://github.com/redis/hiredis/pull/129 Author: Tom Lee Last-Update: 2012-11-06 --- /dev/null +++ b/FindHiredis.cmake @@ -0,0 +1,34 @@ +# FindHiredis.cmake - Try to find the Hiredis library +# Once done this will define +# +# HIREDIS_FOUND - System has Hiredis +# HIREDIS_INCLUDE_DIR - The Hiredis include directory +# HIREDIS_LIBRARIES - The libraries needed to use Hiredis +# HIREDIS_DEFINITIONS - Compiler switches required for using Hiredis + + +# use pkg-config to get the directories and then use these values +# in the FIND_PATH() and FIND_RARY() calls +FIND_PACKAGE(PkgConfig) +PKG_SEARCH_MODULE(PC_HIREDIS REQUIRED hiredis) + +SET(HIREDIS_DEFINITIONS ${PC_HIREDIS_CFLAGS_OTHER}) + +FIND_PATH(HIREDIS_INCLUDE_DIR NAMES hiredis/hiredis.h + HINTS + ${PC_HIREDIS_INCLUDEDIR} + ${PC_HIREDIS_INCLUDE_DIRS} + PATH_SUFFIXES hiredis + ) + +FIND_LIBRARY(HIREDIS_LIBRARIES NAMES hiredis + HINTS + ${PC_HIREDIS_DIR} + ${PC_HIREDIS_LIBRARY_DIRS} + ) + + +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(Hiredis DEFAULT_MSG HIREDIS_LIBRARIES HIREDIS_INCLUDE_DIR) + +MARK_AS_ADVANCED(HIREDIS_INCLUDE_DIR HIREDIS_LIBRARIES) --- a/Makefile +++ b/Makefile @@ -98,17 +98,25 @@ $(CC) -std=c99 -pedantic -c $(REAL_CFLAGS) $< clean: - rm -rf $(DYLIBNAME) $(STLIBNAME) $(BINS) hiredis-example* *.o *.gcda *.gcno *.gcov + rm -rf $(DYLIBNAME) $(STLIBNAME) $(BINS) hiredis-example* *.o *.gcda *.gcno *.gcov hiredis.pc dep: $(CC) -MM *.c # Installation related variables and target -PREFIX?=$(DESTDIR)/usr +SED?=sed +INSTALL_PREFIX?=$(DESTDIR)/usr +PREFIX?=$(INSTALL_PREFIX) INCLUDE_PATH?=include/hiredis LIBRARY_PATH?=lib -INSTALL_INCLUDE_PATH= $(PREFIX)/$(INCLUDE_PATH) -INSTALL_LIBRARY_PATH= $(PREFIX)/$(LIBRARY_PATH) +LIB_PREFIX?=$(PREFIX)/$(LIBRARY_PATH) +PKGCONFIG_PATH?=$(LIBRARY_PATH)/pkgconfig +CMAKE_MODULES_PATH?=share/cmake/Modules +INSTALL_INCLUDE_PATH= $(INSTALL_PREFIX)/$(INCLUDE_PATH) +INSTALL_LIBRARY_PATH= $(INSTALL_PREFIX)/$(LIBRARY_PATH) +INSTALL_PKGCONFIG_PATH= $(INSTALL_PREFIX)/$(PKGCONFIG_PATH) +INSTALL_CMAKE_MODULES_PATH= $(INSTALL_PREFIX)/$(CMAKE_MODULES_PATH) +PKG_CONFIG_CFLAGS?= -D_FILE_OFFSET_BITS=64 ifeq ($(uname_S),SunOS) INSTALL?= cp -r @@ -116,13 +124,24 @@ INSTALL?= cp -a -install: $(DYLIBNAME) $(STLIBNAME) +hiredis.pc: hiredis.pc.in + test -d $(INSTALL_PKGCONFIG_PATH) && \ + $(SED) -e 's,@PREFIX@,$(PREFIX),g' \ + -e 's,@LIB_PREFIX@,$(LIB_PREFIX),g' \ + -e 's,@CFLAGS@,$(PKG_CONFIG_CFLAGS),g' $< >$@ || true + +install: $(DYLIBNAME) $(STLIBNAME) hiredis.pc mkdir -p $(INSTALL_INCLUDE_PATH) $(INSTALL_LIBRARY_PATH) $(INSTALL) hiredis.h async.h adapters $(INSTALL_INCLUDE_PATH) $(INSTALL) $(DYLIBNAME) $(INSTALL_LIBRARY_PATH)/$(DYLIB_MINOR_NAME) cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MINOR_NAME) $(DYLIB_MAJOR_NAME) cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MAJOR_NAME) $(DYLIBNAME) $(INSTALL) $(STLIBNAME) $(INSTALL_LIBRARY_PATH) + test -f hiredis.pc && \ + test -d $(INSTALL_PKGCONFIG_PATH) && \ + $(INSTALL) hiredis.pc $(INSTALL_PKGCONFIG_PATH) && \ + test -d "$(INSTALL_CMAKE_MODULES_PATH)" && \ + $(INSTALL) FindHiredis.cmake $(INSTALL_CMAKE_MODULES_PATH) || true 32bit: @echo "" @@ -145,4 +164,4 @@ noopt: $(MAKE) OPTIMIZATION="" -.PHONY: all test check clean dep install 32bit gprof gcov noopt +.PHONY: all test check clean dep install 32bit gprof gcov noopt hiredis.pc --- /dev/null +++ b/hiredis.pc.in @@ -0,0 +1,11 @@ +prefix=@PREFIX@ +exec_prefix=${prefix} +libdir=@LIB_PREFIX@ +includedir=${prefix}/include + +Name: Hiredis +Description: Minimalistic C client library for the Redis database. +Version: 0.11.0 +Libs: -L${libdir} -lhiredis +Cflags: -I${includedir} @CFLAGS@ + debian/patches/02_disable-failing-test.patch0000644000000000000000000000160112201757015016124 0ustar Description: Disable "returns error when the port is not open" test This patch disables the test "Returns error when the port is not open" because it is failing on some architectures (kfreebsd-* and hurd-i386). Origin: vendor Forwarded: not-needed From: Alessandro Ghedini Last-Update: 2012-08-28 --- a/test.c +++ b/test.c @@ -289,11 +289,11 @@ strcmp(c->errstr,"Can't resolve: idontexist.local") == 0)); redisFree(c); - test("Returns error when the port is not open: "); + /*test("Returns error when the port is not open: "); c = redisConnect((char*)"localhost", 1); test_cond(c->err == REDIS_ERR_IO && strcmp(c->errstr,"Connection refused") == 0); - redisFree(c); + redisFree(c);*/ test("Returns error when the unix socket path doesn't accept connections: "); c = redisConnectUnix((char*)"/tmp/idontexist.sock"); debian/libhiredis-dev.docs0000644000000000000000000000001212201757015012723 0ustar README.md debian/source/0000755000000000000000000000000012201757015010466 5ustar debian/source/format0000644000000000000000000000001412201757015011674 0ustar 3.0 (quilt) debian/redis-test.conf0000644000000000000000000000013112201757015012113 0ustar daemonize yes pidfile /tmp/redis.pid port 6379 bind 127.0.0.1 unixsocket /tmp/redis.sock debian/libhiredis0.10.symbols0000644000000000000000000000375012201757015013222 0ustar libhiredis.so.0.10 libhiredis0.10 #MINVER# __redisAppendCommand@Base 0.10.1 __redisSetError@Base 0.10.1 freeReplyObject@Base 0.10.1 redisAppendCommand@Base 0.10.1 redisAppendCommandArgv@Base 0.10.1 redisAsyncCommand@Base 0.10.1 redisAsyncCommandArgv@Base 0.10.1 redisAsyncConnect@Base 0.10.1 redisAsyncConnectUnix@Base 0.10.1 redisAsyncDisconnect@Base 0.10.1 redisAsyncFree@Base 0.10.1 redisAsyncHandleRead@Base 0.10.1 redisAsyncHandleWrite@Base 0.10.1 redisAsyncSetConnectCallback@Base 0.10.1 redisAsyncSetDisconnectCallback@Base 0.10.1 redisBufferRead@Base 0.10.1 redisBufferWrite@Base 0.10.1 redisCheckSocketError@Base 0.11.0 redisCommand@Base 0.10.1 redisCommandArgv@Base 0.10.1 redisConnect@Base 0.10.1 redisConnectNonBlock@Base 0.10.1 redisConnectUnix@Base 0.10.1 redisConnectUnixNonBlock@Base 0.10.1 redisConnectUnixWithTimeout@Base 0.10.1 redisConnectWithTimeout@Base 0.10.1 redisContextConnectTcp@Base 0.10.1 redisContextConnectUnix@Base 0.10.1 redisContextSetTimeout@Base 0.10.1 redisFormatCommand@Base 0.10.1 redisFormatCommandArgv@Base 0.10.1 redisFree@Base 0.10.1 redisGetReply@Base 0.10.1 redisGetReplyFromReader@Base 0.10.1 redisProcessCallbacks@Base 0.10.1 redisReaderCreate@Base 0.10.1 redisReaderFeed@Base 0.10.1 redisReaderFree@Base 0.10.1 redisReaderGetReply@Base 0.10.1 redisSetTimeout@Base 0.10.1 redisvAppendCommand@Base 0.10.1 redisvAsyncCommand@Base 0.10.1 redisvCommand@Base 0.10.1 redisvFormatCommand@Base 0.10.1 sdscat@Base 0.10.1 sdscatlen@Base 0.10.1 sdscatprintf@Base 0.10.1 sdscatrepr@Base 0.10.1 sdscatvprintf@Base 0.10.1 sdscmp@Base 0.10.1 sdscpy@Base 0.10.1 sdscpylen@Base 0.10.1 sdsdup@Base 0.10.1 sdsempty@Base 0.10.1 sdsfree@Base 0.10.1 sdsfreesplitres@Base 0.10.1 sdsfromlonglong@Base 0.10.1 sdsgrowzero@Base 0.10.1 sdsnew@Base 0.10.1 sdsnewlen@Base 0.10.1 sdsrange@Base 0.10.1 sdssplitargs@Base 0.10.1 sdssplitlen@Base 0.10.1 sdstolower@Base 0.10.1 sdstoupper@Base 0.10.1 sdstrim@Base 0.10.1 sdsupdatelen@Base 0.10.1 debian/libhiredis0.10.install0000644000000000000000000000002412201757015013167 0ustar usr/lib/*/lib*.so.* debian/libhiredis-dev.examples0000644000000000000000000000001312201757015013612 0ustar example*.c debian/changelog0000644000000000000000000000737012201757015011047 0ustar hiredis (0.11.0-3) unstable; urgency=low * Fix incorrect --cflags & --libs in pkg-config file (closes: #717611) -- Tom Lee Sun, 11 Aug 2013 11:48:39 -0700 hiredis (0.11.0-2) unstable; urgency=low [ Alessandro Ghedini ] * Bump Standards-Version to 3.9.4 (no changes needed) [ Tom Lee ] * New maintainer (Closes: #690707) * Bump version in the pkg-config file * Update debian/watch to point to new upstream URL * Update debian/control to point to new upstream URL * Update debian/copyright to point to new upstream URL * Add pkg-config/cmake patch * libhiredis-dev.install no longer needs +x -- Tom Lee Sat, 10 Nov 2012 19:54:08 -0800 hiredis (0.11.0-1) unstable; urgency=low * New upstream release * Refresh patches * Add proper DEP3 headers to patches * Update symbols file * Fix typos in long descriptions * Remove not-needed Replaces/Conflicts -- Alessandro Ghedini Tue, 28 Aug 2012 14:35:20 +0200 hiredis (0.10.1-7) unstable; urgency=low * Email change: Alessandro Ghedini -> ghedo@debian.org * Support Multi-Arch * Add -dbg package * Always build depend on redis-server on linux -- Alessandro Ghedini Sun, 03 Jun 2012 14:39:59 +0200 hiredis (0.10.1-6) unstable; urgency=low * Do not run tests when redis-server is not available * Make sure to honour CPPFLAGS too -- Alessandro Ghedini Mon, 26 Mar 2012 20:38:39 +0200 hiredis (0.10.1-5) unstable; urgency=low * Update debian/copyright format as in Debian Policy 3.9.3 * Bump Standards-Version to 3.9.3 * Bump debhelper compat level to 9 * Disable tests on mipsel * Lower-case first letter in description * Update upstream copyright years * Update packaging copyright years * Use GNU make's $(RM) instead of rm -f -- Alessandro Ghedini Fri, 23 Mar 2012 13:10:27 +0100 hiredis (0.10.1-4) unstable; urgency=low * Add -f flag to rm in dh_auto_test override (Closes: #650800) * Enable tests on sparc, since redis-server does not segfaults anymore (see #647627) * Build depends on redis-server >= 2:2.4.2-2 on sparc to get segfault fix * Do not use -ggdb option (Closes: #657580) -- Alessandro Ghedini Fri, 27 Jan 2012 10:39:19 +0100 hiredis (0.10.1-3) unstable; urgency=low * Add disable-returns-error-when-the-port-is-not-open-test patch (Closes: #634198) * Fix comma-separated-files-in-dep5-copyright * Provide functioning pkg-config and cmake files (Closes: 645674) - Fix and rename (libhiredis.pc -> hiredis.pc) pkg-config file - Add cmake package configuration file - Thanks to Black Jack for the fixes * Do not run tests on sparc * Rename debian/docs -> debian/libhiredis-dev.docs * Move libhiredis0.10 up in debian/control -- Alessandro Ghedini Tue, 18 Oct 2011 21:38:11 +0200 hiredis (0.10.1-2) unstable; urgency=low * Re-enable tests, start Redis with proper configuration before testing -- Alessandro Ghedini Thu, 30 Jun 2011 19:46:04 +0200 hiredis (0.10.1-1) unstable; urgency=low * New upstream release * Drop patches (no more needed) - build-dynamic-library-with-proper-name-and-symlinks - fix-build-of-example-and-test - fix-CFLAGS-and-LDFAGS-conditional-variables * Update use-proper-destdir patch * Disable tests temporarily * Do not install TODO anymore * Update *.symbols file * Install changelog * Bump debhelper compat level to 8 * Rename libhiredis0 -> libhiredis0.10 -- Alessandro Ghedini Wed, 29 Jun 2011 12:05:18 +0200 hiredis (0.10.0-1) unstable; urgency=low * Initial release (Closes: #612601) -- Alessandro Ghedini Sun, 01 May 2011 21:09:51 +0200 debian/copyright0000644000000000000000000000434012201757015011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: hiredis Upstream-Contact: Salvatore Sanfilippo Source: https://github.com/redis/hiredis Files: * Copyright: 2009-2011, Salvatore Sanfilippo License: BSD-3-Clause Files: async.c hiredis.* Copyright: 2009-2011, Salvatore Sanfilippo 2010-2011, Pieter Noordhuis License: BSD-3-Clause Files: net.* Copyright: 2006-2011, Salvatore Sanfilippo 2010-2011, Pieter Noordhuis License: BSD-3-Clause Files: sds.* Copyright: 2006-2010, Salvatore Sanfilippo License: BSD-3-Clause Files: debian/* Copyright: 2011-2012 Alessandro Ghedini License: BSD-3-Clause License: BSD-3-Clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/libhiredis-dev.install0000644000000000000000000000015712201757015013453 0ustar usr/include/* usr/lib/*/lib*.a usr/lib/*/lib*.so usr/lib/*/pkgconfig/*.pc usr/share/cmake-2.8/Modules/*.cmake debian/rules0000755000000000000000000000171612201757015010253 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 REDIS = $(shell [ -e /usr/bin/redis-server ] && echo 1 || echo 0) CFLAGS = $(shell dpkg-buildflags --get CFLAGS) CFLAGS += $(shell dpkg-buildflags --get CPPFLAGS) DEB_DESTDIR ?= $(CURDIR)/debian/tmp DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) %: dh $@ override_dh_auto_build: dh_auto_build -- DEBUG="-g" CFLAGS="$(CFLAGS)" override_dh_auto_install: mkdir -p "$(DEB_DESTDIR)/usr/share/cmake-2.8/Modules" mkdir -p "$(DEB_DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig" dh_auto_install -- LIBRARY_PATH="lib/$(DEB_HOST_MULTIARCH)" \ CMAKE_MODULES_PATH="share/cmake-2.8/Modules" \ PREFIX=/usr override_dh_installchangelogs: dh_installchangelogs CHANGELOG.md override_dh_auto_test: ifeq ($(REDIS), 1) redis-server ./debian/redis-test.conf dh_auto_test kill `cat /tmp/redis.pid` $(RM) /tmp/redis.pid $(RM) /tmp/redis.sock endif override_dh_strip: dh_strip --dbg-package=libhiredis-dbg