summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/bash_completion.d/redis-cli30
-rwxr-xr-xdebian/bin/generate-systemd-service-files137
-rw-r--r--debian/changelog2234
-rw-r--r--debian/control89
-rw-r--r--debian/copyright133
-rw-r--r--debian/gbp.conf3
-rw-r--r--debian/gitlab-ci.yml11
-rw-r--r--debian/patches/0001-Fix-FTBFS-on-kFreeBSD.patch21
-rw-r--r--debian/patches/0002-Add-CPPFLAGS-to-upstream-makefiles.patch49
-rw-r--r--debian/patches/0003-Use-get_current_dir_name-over-PATHMAX.patch53
-rw-r--r--debian/patches/0004-Add-support-for-USE_SYSTEM_JEMALLOC-flag.patch139
-rw-r--r--debian/patches/debian-packaging/0001-Set-Debian-configuration-defaults.patch93
-rw-r--r--debian/patches/series5
-rw-r--r--debian/redis-benchmark.168
-rw-r--r--debian/redis-check-aof.117
-rw-r--r--debian/redis-check-rdb.117
-rw-r--r--debian/redis-cli.119
-rw-r--r--debian/redis-sentinel.123
-rwxr-xr-xdebian/redis-sentinel.default8
-rwxr-xr-xdebian/redis-sentinel.init89
-rw-r--r--debian/redis-sentinel.install1
-rw-r--r--debian/redis-sentinel.links1
-rw-r--r--debian/redis-sentinel.logrotate8
-rw-r--r--debian/redis-sentinel.maintscript4
-rw-r--r--debian/redis-sentinel.manpages1
-rw-r--r--debian/redis-sentinel.postinst24
-rw-r--r--debian/redis-sentinel.postrm14
-rw-r--r--debian/redis-server.123
-rwxr-xr-xdebian/redis-server.default7
-rw-r--r--debian/redis-server.docs2
-rwxr-xr-xdebian/redis-server.init89
-rw-r--r--debian/redis-server.install1
-rw-r--r--debian/redis-server.links1
-rw-r--r--debian/redis-server.logrotate8
-rw-r--r--debian/redis-server.maintscript4
-rw-r--r--debian/redis-server.manpages1
-rw-r--r--debian/redis-server.postinst24
-rw-r--r--debian/redis-server.postrm14
-rw-r--r--debian/redis-tools.examples2
-rw-r--r--debian/redis-tools.install5
-rw-r--r--debian/redis-tools.manpages4
-rw-r--r--debian/redis-tools.postinst37
-rw-r--r--debian/redis-tools.postrm13
-rwxr-xr-xdebian/rules50
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/lintian-overrides4
-rwxr-xr-xdebian/tests/0001-redis-cli12
-rwxr-xr-xdebian/tests/0002-benchmark11
-rwxr-xr-xdebian/tests/0003-redis-check-aof5
-rwxr-xr-xdebian/tests/0004-redis-check-rdb14
-rwxr-xr-xdebian/tests/0005-cjson11
-rw-r--r--debian/tests/control14
-rw-r--r--debian/upstream/metadata5
-rw-r--r--debian/watch4
54 files changed, 3657 insertions, 0 deletions
diff --git a/debian/bash_completion.d/redis-cli b/debian/bash_completion.d/redis-cli
new file mode 100644
index 0000000..d4cb3f5
--- /dev/null
+++ b/debian/bash_completion.d/redis-cli
@@ -0,0 +1,30 @@
+# -*- sh -*-
+#
+# Bash completion function for the 'redis-cli' command.
+#
+# Steve
+# --
+# http://www.steve.org.uk
+#
+
+_redis-cli()
+{
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]}
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+
+ #
+ # All known commands accepted. Sorted.
+ #
+ opts='bgrewriteaof bgsave dbsize debug decr decrby del echo exists expire expireat flushall flushdb get getset incr incrby info keys lastsave lindex llen lpop lpush lrange lrem lset ltrim mget move mset msetnx ping randomkey rename renamenx rewriteaof rpop rpoplpush rpush sadd save scard sdiff sdiffstore select set setnx shutdown sinter sinterstore sismember slaveof smembers smove sort spop srandmember srem sunion sunionstore ttl type zadd zcard zincrby zrange zrangebyscore zrem zremrangebyscore zrevrange zscore'
+
+ #
+ # Only complete on the first term.
+ #
+ if [ $COMP_CWORD -eq 1 ]; then
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ fi
+
+}
+complete -F _redis-cli redis-cli
diff --git a/debian/bin/generate-systemd-service-files b/debian/bin/generate-systemd-service-files
new file mode 100755
index 0000000..c7eafab
--- /dev/null
+++ b/debian/bin/generate-systemd-service-files
@@ -0,0 +1,137 @@
+#!/bin/sh
+
+for BINARY in redis-server redis-sentinel
+do
+ for MODE in default templated
+ do
+ case "${BINARY}" in
+ redis-server)
+ NAME="redis"
+ ;;
+ redis-sentinel)
+ NAME="sentinel"
+ ;;
+ esac
+
+ case "${MODE}" in
+ default)
+ EXTRA="Alias=${NAME}.service"
+ TARGET="debian/${BINARY}.service"
+ NAMESPACED="${NAME}"
+ DESCRIPTION="Advanced key-value store"
+ ;;
+ templated)
+ EXTRA=""
+ TARGET="debian/${BINARY}@.service"
+ NAMESPACED="${NAME}-%i"
+ DESCRIPTION="Advanced key-value store (%I)"
+ ;;
+ esac
+
+ : >${TARGET}
+
+ if [ "${MODE}" = "templated" ]
+ then
+ cat >> ${TARGET} <<EOF
+# Templated service file for ${BINARY}(1)
+#
+# Each instance of ${BINARY} requires its own configuration file:
+#
+# $ cp /etc/redis/${NAME}.conf /etc/redis/${NAME}-myname.conf
+# $ chown redis:redis /etc/redis/${NAME}-myname.conf
+#
+# Ensure each instance is using their own database:
+#
+# $ sed -i -e 's@^dbfilename .*@dbfilename dump-myname.rdb@' /etc/redis/${NAME}-myname.conf
+#
+# We then listen exlusively on UNIX sockets to avoid TCP port collisions:
+#
+# $ sed -i -e 's@^port .*@port 0@' /etc/redis/${NAME}-myname.conf
+# $ sed -i -e 's@^\\(# \\)\\{0,1\\}unixsocket .*@unixsocket /run/${NAME}-myname/${BINARY}.sock@' /etc/redis/${NAME}-myname.conf
+#
+# ... and ensure we are logging, etc. in a unique location:
+#
+# $ sed -i -e 's@^logfile .*@logfile /var/log/redis/${BINARY}-myname.log@' /etc/redis/${NAME}-myname.conf
+# $ sed -i -e 's@^pidfile .*@pidfile /run/redis-myname/${BINARY}.pid@' /etc/redis/${NAME}-myname.conf
+#
+# We can then start the service as follows, validating we are using our own
+# configuration:
+#
+# $ systemctl start ${BINARY}@myname.service
+# $ redis-cli -s /run/${NAME}-myname/${BINARY}.sock info | grep config_file
+#
+# -- Chris Lamb <lamby@debian.org> Mon, 09 Oct 2017 22:17:24 +0100
+EOF
+ fi
+
+ cat >> ${TARGET} <<EOF
+[Unit]
+Description=${DESCRIPTION}
+After=network.target
+Documentation=http://redis.io/documentation, man:${BINARY}(1)
+
+[Service]
+Type=notify
+ExecStart=/usr/bin/${BINARY} /etc/redis/${NAMESPACED}.conf --supervised systemd --daemonize no
+PIDFile=/run/${NAMESPACED}/${BINARY}.pid
+TimeoutStopSec=0
+Restart=always
+User=redis
+Group=redis
+RuntimeDirectory=${NAMESPACED}
+RuntimeDirectoryMode=2755
+
+UMask=007
+PrivateTmp=true
+LimitNOFILE=65535
+PrivateDevices=true
+ProtectHome=true
+ProtectSystem=strict
+ReadWritePaths=-/var/lib/redis
+ReadWritePaths=-/var/log/redis
+ReadWritePaths=-/var/run/${NAMESPACED}
+
+CapabilityBoundingSet=
+LockPersonality=true
+MemoryDenyWriteExecute=true
+NoNewPrivileges=true
+PrivateUsers=true
+ProtectClock=true
+ProtectControlGroups=true
+ProtectHostname=true
+ProtectKernelLogs=true
+ProtectKernelModules=true
+ProtectKernelTunables=true
+ProtectProc=invisible
+RemoveIPC=true
+RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
+RestrictNamespaces=true
+RestrictRealtime=true
+RestrictSUIDSGID=true
+SystemCallArchitectures=native
+SystemCallFilter=@system-service
+SystemCallFilter=~ @privileged @resources
+
+# ${BINARY} can write to its own config file when in cluster mode so we
+# permit writing there by default. If you are not using this feature, it is
+# recommended that you remove this line.
+ReadWriteDirectories=-/etc/redis
+
+# This restricts this service from executing binaries other than ${BINARY}
+# itself. This is really effective at e.g. making it impossible to an
+# attacker to spawn a shell on the system, but might be more restrictive
+# than desired. If you need to, you can permit the execution of extra
+# binaries by adding an extra ExecPaths= directive with the command
+# systemctl edit ${BINARY}.service
+NoExecPaths=/
+ExecPaths=/usr/bin/${BINARY} /usr/lib /lib
+
+[Install]
+WantedBy=multi-user.target
+EOF
+ if [ "${EXTRA}" != "" ]
+ then
+ echo "${EXTRA}" >> "${TARGET}"
+ fi
+ done
+done
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..aac0980
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,2234 @@
+redis (5:7.0.15-1~deb12u1) bookworm-security; urgency=high
+
+ * Rebuild of 5:7.0.15-1 from sid for bookworm-security.
+ * Revert replacing a dependency on lsb-base with sysvinit-utils
+ (from 5:7.0.12-2).
+
+ -- Chris Lamb <lamby@debian.org> Tue, 16 Jan 2024 10:13:26 +0000
+
+redis (5:7.0.15-1) unstable; urgency=medium
+
+ * New upstream security release:
+
+ - CVE-2023-41056: In some cases, Redis may incorrectly handle resizing of
+ memory buffers which can result in incorrect accounting of buffer sizes
+ and lead to heap overflow and potential remote code execution.
+ (Closes: #1060316)
+
+ - For more information, please see:
+ <https://raw.githubusercontent.com/redis/redis/7.0/00-RELEASENOTES>
+
+ * Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 09 Jan 2024 13:42:30 +0000
+
+redis (5:7.0.14-2) unstable; urgency=medium
+
+ * Drop ProcSubset=pid hardening flag from the systemd unit files it appears
+ to cause crashes with memory allocation errors. A huge thanks to Arnaud
+ Rebillout <arnaudr@kali.org> for the extensive investigation.
+ (Closes: #1055039)
+
+ -- Chris Lamb <lamby@debian.org> Tue, 31 Oct 2023 16:34:25 +0100
+
+redis (5:7.0.14-1) unstable; urgency=high
+
+ * New upstream security release:
+
+ - CVE-2023-45145: On startup, Redis began listening on a Unix socket before
+ adjusting its permissions to the user-provided configuration. If a
+ permissive umask(2) was used, this created a race condition that enabled,
+ during a short period of time, another process to establish an otherwise
+ unauthorized connection. (Closes: #1054225)
+
+ * Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 19 Oct 2023 15:50:56 +0100
+
+redis (5:7.0.13-2) unstable; urgency=medium
+
+ * Only install systemd units once. Thanks, Helmut Grohne. (Closes: #1054091)
+
+ -- Chris Lamb <lamby@debian.org> Tue, 17 Oct 2023 11:15:21 +0100
+
+redis (5:7.0.13-1) unstable; urgency=high
+
+ * New upstream security release:
+
+ - CVE-2023-41053: Redis did not correctly identify keys accessed by
+ `SORT_RO`, and as a result Redis may grant users executing this command
+ access to keys that are not explicitly authorized by the ACL
+ configuration. (Closes: #1051512)
+
+ <https://raw.githubusercontent.com/redis/redis/7.2/00-RELEASENOTES>
+
+ * Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 08 Sep 2023 14:04:13 -0700
+
+redis (5:7.0.12-2) unstable; urgency=medium
+
+ * Try and clean up better. (Closes: #1047506)
+ * Allow arm64 crossbuild to run but not to fail the build if, for
+ instance, build-dependencies cannot be satisfied.
+ * Replace dependency on lsb-base with sysvinit-utils.
+ * Drop very debian/NEWS entry.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 24 Aug 2023 10:33:48 -0700
+
+redis (5:7.0.12-1) unstable; urgency=high
+
+ * New upstream security release:
+
+ - CVE-2022-24834: A specially-crafted Lua script executing in Redis could
+ have triggered a heap overflow in the cjson and cmsgpack libraries and
+ result in heap corruption and potentially remote code execution. The
+ problem exists in all versions of Redis with Lua scripting support and
+ affects only authenticated/authorised users.
+
+ - CVE-2023-36824: Extracting key names from a command and a list of
+ arguments may, in some cases, have triggered a heap overflow and result
+ in reading random heap memory, heap corruption and potentially remote
+ code execution. (Specifically using COMMAND GETKEYS* and validation of
+ key names in ACL rules). (Closes: #1040879)
+
+ For more information, please see:
+
+ <https://raw.githubusercontent.com/redis/redis/7.0/00-RELEASENOTES>
+
+ -- Chris Lamb <lamby@debian.org> Wed, 12 Jul 2023 10:07:09 +0100
+
+redis (5:7.0.11-1+deb12u1) bookworm; urgency=medium
+
+ * Drop ProcSubset=pid hardening flag from the systemd unit files it causes
+ difficult-to-reproduce crashes with memory allocation errors. A big thanks
+ to Arnaud Rebillout <arnaudr@kali.org> for the extensive investigation.
+ (Closes: #1055039)
+ * Update debian/gbp.conf for the debian/bookworm branch.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 02 Nov 2023 15:24:45 +0100
+
+redis (5:7.0.11-1) unstable; urgency=high
+
+ * New upstream security release:
+
+ - CVE-2023-28856: Authenticated users could have used the HINCRBYFLOAT
+ command to create an invalid hash field that would have crashed the Redis
+ server on access. (Closes: #1034613)
+
+ For more information, please see:
+
+ https://raw.githubusercontent.com/redis/redis/7.0/00-RELEASENOTES
+
+ * Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 20 Apr 2023 07:38:23 +0100
+
+redis (5:7.0.10-1) unstable; urgency=medium
+
+ * New upstream release.
+ - CVE-2023-28425: Unauthenticated users could have used the MSETNX command
+ to trigger a runtime assertion and termination of the Redis server
+ process. (Closes: #1033340)
+ * Refresh patches.
+ * Bump Standards-Version.
+ * Extend our USE_SYSTEM_JEMALLOC patch to support latest version.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 25 Mar 2023 13:04:38 +0000
+
+redis (5:7.0.9-1) unstable; urgency=high
+
+ * New upstream security release:
+ - CVE-2023-25155: Authenticated users issuing specially crafted
+ `SRANDMEMBER`, `ZRANDMEMBER`, and `HRANDFIELD` commands can trigger an
+ integer overflow, resulting in a runtime assertion and termination of the
+ Redis server process. (Closes: #1032279)
+ - CVE-2022-36021: Authenticated users can use string matching commands
+ (like `SCAN` or `KEYS`) with a specially crafted pattern to trigger a
+ denial-of-service attack on Redis, causing it to hang and consume 100%
+ CPU time.
+ * Refresh patches.
+ * Extend our USE_SYSTEM_JEMALLOC patch to support latest version.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 04 Mar 2023 11:01:59 +0000
+
+redis (5:7.0.8-4) unstable; urgency=medium
+
+ * Correct "delaycompress" typo in redis-server.logrotate, not just
+ redis-sentinel.logrotate. (Closes: #1031750)
+
+ -- Chris Lamb <lamby@debian.org> Tue, 21 Feb 2023 16:48:01 -0800
+
+redis (5:7.0.8-3) unstable; urgency=medium
+
+ * Correct "delaycompress" typo. (Closes: #1031206)
+
+ -- Chris Lamb <lamby@debian.org> Mon, 13 Feb 2023 08:39:23 -0800
+
+redis (5:7.0.8-2) unstable; urgency=medium
+
+ * Add delaycompess to logrotate configuration. Thanks, Marc Haber.
+ (Closes: #1029844)
+
+ -- Chris Lamb <lamby@debian.org> Mon, 30 Jan 2023 08:11:34 -0800
+
+redis (5:7.0.8-1) unstable; urgency=high
+
+ * New upstream release.
+ <https://raw.githubusercontent.com/redis/redis/7.0/00-RELEASENOTES>
+ * CVE-2023-22458: Integer overflow in the Redis HRANDFIELD and ZRANDMEMBER
+ commands may have led to denial-of-service. (Closes: #1029363)
+ * CVE-2022-35977: Integer overflow in the Redis SETRANGE and SORT/SORT_RO
+ commands could have driven Redis to an OOM panic.
+
+ -- Chris Lamb <lamby@debian.org> Sun, 22 Jan 2023 08:46:14 -0800
+
+redis (5:7.0.7-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 17 Dec 2022 10:21:39 +0000
+
+redis (5:7.0.5-1) unstable; urgency=medium
+
+ * New upstream security release:
+ - CVE-2022-35951: Fix a heap overflow vulnerability in XAUTOCLAIM.
+ Executing an XAUTOCLAIM command on a stream key in a specific state, with
+ a specially crafted COUNT argument may have caused an integer overflow, a
+ subsequent heap overflow and potentially lead to remote code execution.
+ (Closes: #1020512)
+ * Refresh patches.
+ * Update debian/watch.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 23 Sep 2022 11:12:24 +0100
+
+redis (5:7.0.4-1) unstable; urgency=high
+
+ * New upstream security release.
+ * CVE-2022-31144: Prevent a potential heap overflow in Redis 7.0's
+ XAUTOCLAIM command.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 18 Jul 2022 15:49:44 +0100
+
+redis (5:7.0.3-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Refresh patches.
+ * Bump Standards-Version to 4.6.1.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 16 Jul 2022 07:27:57 +0100
+
+redis (5:7.0.2-2) unstable; urgency=medium
+
+ * Add /lib to allowed ExecPaths to support both usr-merged and non-usr-merged
+ systems. Thanks to Christian Göttsche for the report. (Closes: #1013172)
+
+ -- Chris Lamb <lamby@debian.org> Sun, 19 Jun 2022 11:12:13 +0100
+
+redis (5:7.0.2-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Drop 0005-Fix-crash-when-systemd-ProcSubset-pid.patch; applied upstream.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 17 Jun 2022 14:34:25 +0100
+
+redis (5:7.0.1-4) unstable; urgency=medium
+
+ * Upload 7.x branch to unstable.
+ * Update gbp.conf.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 17 Jun 2022 10:09:07 +0100
+
+redis (5:7.0.1-3) experimental; urgency=medium
+
+ * Fix crash when systemd's ProcSubset=pid. /proc/sys/vm/overcommit_memory was
+ inaccessible and a log warning message was incorrectly constructed.
+ * Add missing CPPFLAGS when building hdr_histogram.
+ * Update Lintian overrides:
+ - Ignore maintainer-manual-page warnings.
+ - Ignore very-long-line-length-in-source-file warnings.
+ * Update my entry in debian/copyright.
+ * Update and renumber patches.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 17 Jun 2022 10:09:03 +0100
+
+redis (5:7.0.1-2) experimental; urgency=medium
+
+ * Drop support (in patches, etc.) for using the systemwide hiredis and Lua,
+ reverting to using the built-in cjson (etc.). (Closes: #1012658)
+ * Add an internal timeout for the cluster tests to prevent FTBFS.
+ (Closes: #1011187)
+ * Drop a duplicate comment in debian/rules.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 14 Jun 2022 15:41:53 +0100
+
+redis (5:7.0.1-1) experimental; urgency=medium
+
+ * New upstream release.
+ * Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 11 Jun 2022 07:34:58 +0100
+
+redis (5:7.0.0-1) experimental; urgency=medium
+
+ * New upstream release.
+ - Disable, hopefully temporarily, the use of the systemwide Lua due to
+ Redis' fork gaining security/hardening features (eg.
+ lua_enablereadonlytable).
+ - Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 30 Apr 2022 16:19:20 -0700
+
+redis (5:7.0~rc3-1) experimental; urgency=medium
+
+ * New upstream release.
+ - Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 14 Apr 2022 09:20:33 +0100
+
+redis (5:7.0~rc2-2) experimental; urgency=high
+
+ * CVE-2022-0543: Prevent a Debian-specific Lua sandbox escape vulnerability.
+
+ This vulnerability existed because the Lua library in Debian is provided as
+ a dynamic library. A "package" variable was automatically populated that
+ in turn permitted access to arbitrary Lua functionality. As this extended
+ to, for example, the "execute" function from the "os" module, an attacker
+ with the ability to execute arbitrary Lua code could potentially execute
+ arbitrary shell commands.
+
+ Thanks to Reginaldo Silva <https://www.ubercomp.com> for discovering and
+ reporting this issue. (Closes: #1005787)
+
+ -- Chris Lamb <lamby@debian.org> Tue, 08 Mar 2022 11:05:56 +0000
+
+redis (5:7.0~rc2-1) experimental; urgency=medium
+
+ * New upstream RC release.
+ - Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 05 Mar 2022 08:10:49 +0000
+
+redis (5:7.0~rc1-1) experimental; urgency=medium
+
+ * New upstream 7.x release candidate.
+ * Refresh patches.
+ * Set some DEP-3 forwarded headers.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 05 Feb 2022 16:36:54 -0800
+
+redis (5:6.2.6-1) experimental; urgency=medium
+
+ * New upstream security release:
+
+ - CVE-2021-32762: Integer to heap buffer overflow issue in redis-cli and
+ redis-sentinel parsing large multi-bulk replies on some older and less
+ common platforms.
+
+ - CVE-2021-32687: Integer to heap buffer overflow with intsets, when
+ set-max-intset-entries is manually configured to a non-default, very
+ large value.
+
+ - CVE-2021-32675: Denial Of Service when processing RESP request payloads
+ with a large number of elements on many connections.
+
+ - CVE-2021-32672: Random heap reading issue with Lua Debugger.
+
+ - CVE-2021-32628: Integer to heap buffer overflow handling ziplist-encoded
+ data types, when configuring a large, non-default value for
+ hash-max-ziplist-entries, hash-max-ziplist-value,
+ zset-max-ziplist-entries or zset-max-ziplist-value.
+
+ - CVE-2021-32627: Integer to heap buffer overflow issue with streams, when
+ configuring a non-default, large value for proto-max-bulk-len and
+ client-query-buffer-limit.
+
+ - CVE-2021-32626: Specially crafted Lua scripts may result with Heap
+ buffer overflow.
+
+ - CVE-2021-41099: Integer to heap buffer overflow handling certain string
+ commands and network payloads, when proto-max-bulk-len is manually
+ configured to a non-default, very large value.
+
+ * Refresh patches.
+ * Bump Standards-Version to 4.6.0.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 04 Oct 2021 14:33:02 +0100
+
+redis (5:6.2.5-4) experimental; urgency=medium
+
+ * Use /run instead of /var/run for PID and UNIX socket files. Thanks to
+ @MichaIng-guest for the patch. (Closes: lamby/pkg-redis!5)
+
+ -- Chris Lamb <lamby@debian.org> Thu, 26 Aug 2021 11:48:59 +0100
+
+redis (5:6.2.5-3) experimental; urgency=medium
+
+ * Skip OOM-related tests on incompatible platforms. (Closes: #982122)
+
+ -- Chris Lamb <lamby@debian.org> Wed, 18 Aug 2021 14:26:17 +0100
+
+redis (5:6.2.5-2) experimental; urgency=medium
+
+ * Explicitly specify USE_JEMALLOC to override upstream's detection of ARM
+ systems. This was affecting reproducibility as the aarch64 kernel flavour
+ was using Jemalloc whilst armv7l was not.
+ * Increase the verbosity of logging when testing. (Re: #991476)
+
+ -- Chris Lamb <lamby@debian.org> Wed, 11 Aug 2021 16:45:54 +0100
+
+redis (5:6.2.5-1) experimental; urgency=medium
+
+ * New upstream security release:
+ - CVE-2021-32761: Integer overflow issues with BITFIELD command
+ on 32-bit systems.
+ * Bump Standards-Version to 4.5.1.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 21 Jul 2021 22:17:19 +0100
+
+redis (5:6.2.4-1) experimental; urgency=medium
+
+ * CVE-2021-32625: Fix a vulnerability in the STRALGO LCS command.
+ (Closes: #989351)
+ * Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 01 Jun 2021 17:33:02 +0100
+
+redis (5:6.2.3-1) experimental; urgency=medium
+
+ * New upstream security release:
+ - CVE-2021-29477: Vulnerability in the STRALGO LCS command.
+ - CVE-2021-29478: Vulnerability in the COPY command for large intsets.
+ (Closes: #988045)
+ * Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 04 May 2021 11:00:25 +0100
+
+redis (5:6.2.2-1) experimental; urgency=medium
+
+ * New upstream release.
+ * Apply wrap-and-sort -sa.
+ * Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 24 Apr 2021 12:37:27 +0100
+
+redis (5:6.2.1-1) experimental; urgency=medium
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 06 Mar 2021 11:09:08 +0000
+
+redis (5:6.2.0-1) experimental; urgency=medium
+
+ * New upstream release, incorporating some security fixes. (Closes: 983446)
+ * Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 24 Feb 2021 10:52:50 +0000
+
+redis (5:6.2~rc3-1) experimental; urgency=medium
+
+ * New upstream RC release.
+ - Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 03 Feb 2021 10:10:59 +0000
+
+redis (5:6.2~rc2-2) experimental; urgency=medium
+
+ * Also remove the /etc/redis directory in purge.
+ * Allow /etc/redis to be rewritten. Thanks to Yossi Gottlieb for the patch.
+ (Closes: #981000)
+
+ -- Chris Lamb <lamby@debian.org> Mon, 25 Jan 2021 12:46:25 +0000
+
+redis (5:6.2~rc2-1) experimental; urgency=medium
+
+ * New upstream release.
+ * Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 25 Jan 2021 12:46:23 +0000
+
+redis (5:6.2~rc1-3) experimental; urgency=medium
+
+ * Specify "--supervised systemd" now that we specify "Type=notify" to prevent
+ failure under systemd. Thanks to Michael Prokop for the report.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 23 Dec 2020 10:36:55 +0000
+
+redis (5:6.2~rc1-2) experimental; urgency=medium
+
+ [ Michael Prokop ]
+ * Enable systemd support by compiling against libsystemd-dev.
+ (Closes: #977852)
+
+ [ Chris Lamb ]
+ * Use Type=notify to use systemd supervisor when generating our systemd
+ service files.
+ * Explicitly request systemd support when building the package.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 22 Dec 2020 12:27:42 +0000
+
+redis (5:6.2~rc1-1) experimental; urgency=medium
+
+ * New upstream RC release.
+ - Update patches.
+ * Bump Standards-Version to 4.5.1.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 19 Dec 2020 11:19:11 +0000
+
+redis (5:6.0.1-1) experimental; urgency=medium
+
+ * New upstream "General Availability" release.
+ <https://raw.githubusercontent.com/antirez/redis/6.0/00-RELEASENOTES>
+
+ -- Chris Lamb <lamby@debian.org> Wed, 06 May 2020 16:27:19 +0100
+
+redis (5:6.0~rc4-1) experimental; urgency=medium
+
+ * New upstream beta release.
+ <https://raw.githubusercontent.com/antirez/redis/6.0/00-RELEASENOTES>
+ * Use the newly-package liblzf-dev package over the local version.
+ (Closes: #958321)
+ * Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 21 Apr 2020 11:51:41 +0100
+
+redis (5:6.0~rc3-1) experimental; urgency=medium
+
+ * New upstream beta release.
+ <https://raw.githubusercontent.com/antirez/redis/6.0/00-RELEASENOTES>
+
+ -- Chris Lamb <lamby@debian.org> Wed, 15 Apr 2020 11:22:59 +0100
+
+redis (5:6.0~rc2-1) experimental; urgency=medium
+
+ * New upstream beta release.
+ <https://raw.githubusercontent.com/antirez/redis/6.0/00-RELEASENOTES>
+ * Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 11 Mar 2020 13:32:21 +0000
+
+redis (5:6.0~rc1-3) experimental; urgency=medium
+
+ * Install openssl in the testsuite; required for generating test
+ certificates.
+ * Correct a typo in a previous changelog entry.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 04 Mar 2020 08:22:14 -0800
+
+redis (5:6.0~rc1-2) experimental; urgency=medium
+
+ * Add support for TLS added in Redis 6.x. Thanks to Jason Perrin for the
+ patch. (Closes: #951255)
+ * Add a comment regarding why we export a MAKEFLAGS variable in debian/rules.
+ * Bump Standards-Version to 4.5.0.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 13 Feb 2020 14:20:15 +0000
+
+redis (5:6.0~rc1-1) experimental; urgency=medium
+
+ * New upstream RC1 release.
+ <http://antirez.com/news/131>
+ * Refresh patches.
+ * Disable using the system hiredis for now, awaiting a a new upstream
+ release.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 21 Dec 2019 15:28:01 +0000
+
+redis (5:5.0.7-1) unstable; urgency=medium
+
+ * New upstream bugfix release.
+ <https://groups.google.com/forum/#!topic/redis-db/LYBeXlUKU6c>
+ * Bump Standards-Version to 4.4.1.
+ * Run wrap-and-sort -sa.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 22 Nov 2019 20:46:19 -0500
+
+redis (5:5.0.6-1) unstable; urgency=medium
+
+ * New upstream release.
+ <https://groups.google.com/forum/#!topic/redis-db/qTRdgyEbyYU>
+ * Specify "Rules-Requires-Root: no">.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 27 Sep 2019 16:48:24 +0100
+
+redis (5:5.0.5-2) unstable; urgency=medium
+
+ * Sourceful upload to unstable to ensure testing migration.
+ * Bump Standards-Version to 4.4.0.
+ * Don't build release tags in gitlab-ci.yml.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 20 Jul 2019 17:14:37 -0300
+
+redis (5:5.0.5-1) unstable; urgency=medium
+
+ * New upstream release.
+ <https://groups.google.com/forum/#!topic/redis-db/jSAtf64lIW4>
+
+ -- Chris Lamb <lamby@debian.org> Wed, 22 May 2019 10:03:21 +0100
+
+redis (5:5.0.4-1) unstable; urgency=medium
+
+ * New upstream release.
+ <https://groups.google.com/forum/#!topic/redis-db/aXusvS8da8g>
+
+ -- Chris Lamb <lamby@debian.org> Mon, 18 Mar 2019 14:20:46 -0400
+
+redis (5:5.0.3-4) unstable; urgency=medium
+
+ [ Helmut Grohne ]
+ * Fix cross build failure by building the non-bundled Lua libraries via
+ dh_auto_build. (Closes: #919862)
+
+ -- Chris Lamb <lamby@debian.org> Sun, 20 Jan 2019 22:23:41 +0000
+
+redis (5:5.0.3-3) unstable; urgency=medium
+
+ * Fix FTBFS on hurd-i386 by updating patch to aof.c to avoid MAXPATHLEN
+ reference.
+ * debian/control:
+ - Add missing Pre-Depends on ${misc:Pre-Depends}.
+ - Bump Standards-Version to 4.3.0.
+ * Bump debhelper compat level to 12.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 01 Jan 2019 17:47:28 +0000
+
+redis (5:5.0.3-2) unstable; urgency=medium
+
+ * Pass --no-as-needed to ensure linking to the Lua libraries on systems with
+ --as-needed as the default. (Closes: #916831)
+
+ -- Chris Lamb <lamby@debian.org> Fri, 21 Dec 2018 13:18:37 +0000
+
+redis (5:5.0.3-1) unstable; urgency=medium
+
+ * New upstream release.
+ - Drop 0009-Don-t-treat-unsupported-protocols-as-fatal-errors.patch as it
+ was merged upstream.
+ - Refresh all patches.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 18 Dec 2018 23:48:16 +0000
+
+redis (5:5.0.2-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Sun, 25 Nov 2018 19:04:10 +0100
+
+redis (5:5.0.1-2) unstable; urgency=medium
+
+ * Refresh patches.
+ * Ensure that lack of IPv6 support does not prevent Redis from starting on
+ Debian where we bind to the ::1 interface by default. (Closes: #900284,
+ #914354)
+
+ -- Chris Lamb <lamby@debian.org> Fri, 23 Nov 2018 18:03:53 +0100
+
+redis (5:5.0.1-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Ensure that Debian-supplied Lua libraries are available using "require"
+ during Lua scripting to prevent an issue where we could not use the (eg.)
+ cjson library anymore library anymore. This was a regression introduced in
+ 5:5.0~rc4-3. Thanks to Nicolas Le Manchet <nicolas@lemanchet.fr> for the
+ report and testcase. (Closes: #913185)
+ * Refer to /run directly in .service files; /var/run is now merely a symlink
+ pointing to /run and thus it is now considered best practice to use /run
+ directly.
+ * debian/rules:
+ - Document why we run make in the deps/lua/src directory.
+ - Add documentation for LUA_LIBS_{DEBIAN,BUNDLED}.
+ - Call $(MAKE) instead of "make".
+ - Re-order targets to match usual order.
+
+ -- Chris Lamb <lamby@debian.org> Sun, 11 Nov 2018 20:09:51 +0100
+
+redis (5:5.0.0-2) unstable; urgency=medium
+
+ * Update our patch to sentinel.conf to ensure the correct runtime PID file
+ location. (Closes: #911407)
+ * Listen on ::1 interfaces too for redis-sentinel to match redis-server.
+ * Also run the new "LOLWUT" command in the redis-cli autopkgtest.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 19 Oct 2018 22:36:40 -0400
+
+redis (5:5.0.0-1) unstable; urgency=medium
+
+ * New upstream stable release to unstable.
+ <https://groups.google.com/forum/#!topic/redis-db/l0OXDAlwosU>
+ * Refresh patches.
+ * Update Vcs-Git.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 18 Oct 2018 21:56:02 -0400
+
+redis (5:5.0~rc5-2) experimental; urgency=medium
+
+ * Use the system hiredis now that #907259 has landed. (Closes: #907258)
+
+ -- Chris Lamb <lamby@debian.org> Wed, 03 Oct 2018 19:54:17 +0100
+
+redis (5:5.0~rc5-1) experimental; urgency=medium
+
+ * New upstream release.
+ - Drop 0004-SOURCE_DATE_EPOCH.patch; merged upstream.
+ * debian/watch: Use releases from <https://github.com/antirez/redis/releases>
+ (not Git) to find RC/beta releases, etc.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 24 Sep 2018 21:24:48 +0100
+
+redis (5:5.0~rc4-4) experimental; urgency=medium
+
+ * Stop playing whack-a-mole with nondeterminstic testsuite and run with
+ "|| true" on all architectures. (Closes: #908540)
+ * Drop ${shlibs:Depends} substvars on "Architecture: any" binary packages.
+ * Add upstream URIs for patches to support non-embedded jemalloc and Lua.
+ * Bump Standards-Version to 4.2.1.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 15 Sep 2018 19:44:35 +0100
+
+redis (5:5.0~rc4-3) experimental; urgency=medium
+
+ * Add support for (and use) a USE_SYSTEM_LUA flag. (Closes: #901669)
+ * Add support for (and use) a USE_SYSTEM_JEMALLOC flag.
+ * Refresh 0003-dpkg-buildflags patch.
+ * Append "-b debian/experimental" to Vcs-Git line to fix "unpushed changes"
+ vcswatch.cgi false-positives.
+
+ -- Chris Lamb <lamby@debian.org> Sun, 26 Aug 2018 14:37:25 +0200
+
+redis (5:5.0~rc4-2) experimental; urgency=medium
+
+ * Drop a non-determinstic "dump" test.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 07 Aug 2018 11:04:16 +0800
+
+redis (5:5.0~rc4-1) experimental; urgency=medium
+
+ * New upstream RC release.
+ <https://groups.google.com/forum/#!topic/redis-db/aXusvS8da8g>
+ - Refresh 0002-use-system-jemalloc.patch
+ - Refresh 0003-dpkg-buildflags.patch
+ - Refresh 0006-Drop-tests-with-timing-issues.patch
+ - Refresh 0009-Drop-memory-efficiency-tests-on-advice-from-upstream.patch
+
+ -- Chris Lamb <lamby@debian.org> Tue, 07 Aug 2018 11:04:14 +0800
+
+redis (5:4.0.11-3) unstable; urgency=medium
+
+ * Stop playing whack-a-mole with nondeterminstic testsuite and run with
+ "|| true" on all architectures. (Closes: #908540)
+ * Drop ${shlibs:Depends} substvars on "Architecture: any" binary packages.
+ * Bump Standards-Version to 4.2.1.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 15 Sep 2018 19:55:23 +0100
+
+redis (5:4.0.11-2) unstable; urgency=medium
+
+ * Revert "Move to debhelper-compat (= 11) in Build-Depends." as dak will
+ REJECT with "missing-build-dependency debhelper".
+
+ -- Chris Lamb <lamby@debian.org> Mon, 06 Aug 2018 11:42:41 +0800
+
+redis (5:4.0.11-1) unstable; urgency=medium
+
+ * New upstream release.
+ <https://groups.google.com/forum/#!topic/redis-db/aXusvS8da8g>
+ * Bump Standards-Version to 4.2.0.
+ * Move to debhelper-compat (= 11) in Build-Depends.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 06 Aug 2018 11:42:38 +0800
+
+redis (5:4.0.10-2) unstable; urgency=medium
+
+ [ Daniel Shahaf ]
+ * redis-benchmark(1): Fix default of -n argument. (Closes: #903044)
+
+ [ Chris Lamb ]
+ * Add CVE entries to (released) changelog entry.
+ * Bump Standards-Version to 4.1.5.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 05 Jul 2018 22:14:45 +0200
+
+redis (5:4.0.10-1) unstable; urgency=medium
+
+ * CVE-2018-11218, CVE-2018-11219: New upstream security release.
+ <https://github.com/antirez/redis/issues/5017> for more information.
+ (Closes: #901495)
+
+ -- Chris Lamb <lamby@debian.org> Thu, 14 Jun 2018 08:37:09 +0200
+
+redis (5:4.0.9-4) unstable; urgency=medium
+
+ * Update Vcs-* headers to point to salsa.debian.org.
+ * Move to HTTPS Homepage URI.
+ * wrap-and-sort -sa.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 09 Jun 2018 20:11:35 +0100
+
+redis (5:4.0.9-3) unstable; urgency=medium
+
+ * Make /var/log/redis, etc. owned by root:adm, not root:root. Thanks to
+ Thomas Goirand. (Closes: #900496)
+
+ -- Chris Lamb <lamby@debian.org> Fri, 01 Jun 2018 08:56:48 +0100
+
+redis (5:4.0.9-2) unstable; urgency=medium
+
+ * Ignore test failures on problematic archs.
+ * Bump Standards-Version to 4.1.4.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 08 May 2018 23:08:36 -0700
+
+redis (5:4.0.9-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Refresh all patches.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 02 Apr 2018 20:37:12 +0100
+
+redis (5:4.0.8-2) unstable; urgency=medium
+
+ * Also listen on ::1 for IPv6 by default. (Closes: #891432)
+
+ -- Chris Lamb <lamby@debian.org> Sun, 25 Feb 2018 14:59:55 +0000
+
+redis (5:4.0.8-1) unstable; urgency=medium
+
+ * New upstream release.
+ <https://groups.google.com/forum/#!topic/redis-db/FGplxMEGEMo>
+ * Update lintian overrides after rename of
+ debian-watch-may-check-gpg-signature →
+ debian-watch-does-not-check-gpg-signature.
+ * Drop "recursive" argument to chown in postinst script to prevent hardlink
+ vulnerability.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 05 Feb 2018 17:09:44 +0000
+
+redis (5:4.0.7-1) unstable; urgency=medium
+
+ * New upstream release.
+ <https://groups.google.com/forum/#!topic/redis-db/gngqHoh-kRM>
+ * Refresh patches.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 24 Jan 2018 22:10:06 +1100
+
+redis (5:4.0.6-5) unstable; urgency=medium
+
+ * Update redis-sentinel's symlink to usr/bin/redis-check-rdb to match
+ redis-server. This avoids a dangling symlink (and thus a broken package) if
+ redis-server is not installed. (Closes: #884321)
+ * Move to debhelper compat level 11.
+ - Drop reference to --with=systemd - systemd-sequence is no longer provided
+ in compat >= 11.
+ * Use https URI for copyright format specification in debian/copyright.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 20 Jan 2018 11:21:11 +1100
+
+redis (5:4.0.6-4) unstable; urgency=medium
+
+ * Re-add procps to Build-Depends. (Closes: #887075)
+
+ -- Chris Lamb <lamby@debian.org> Sat, 13 Jan 2018 19:01:56 +0530
+
+redis (5:4.0.6-3) unstable; urgency=medium
+
+ * Use --clients argument to runtest to force single-threaded operation over
+ using taskset.
+ * Bump Standards-Version to 4.1.3.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 13 Jan 2018 12:55:27 +0530
+
+redis (5:4.0.6-2) unstable; urgency=medium
+
+ * Replace redis-sentinel's main dependency with redis-tools from
+ redis-server, necessarily moving the creating/deletion of the "redis" user
+ and associated data and log directories to redis-tools. (Closes: #884321)
+ * Add stub manpages for redis-sentinel, redis-check-aof and redis-check-rdb.
+ * Bump Standards-Version to 4.1.2.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 14 Dec 2017 10:08:30 +0000
+
+redis (5:4.0.6-1) unstable; urgency=medium
+
+ * New upstream bugfix release.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 05 Dec 2017 13:00:47 +0000
+
+redis (5:4.0.5-1) unstable; urgency=medium
+
+ * New upstream release.
+ * debian/control: Use "metapackage" over "meta-package".
+ * debian/patches:
+ - Drop 0008-CVE-2017-15047-Fix-buffer-overflows-occurring-readin.
+ - Refresh.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 02 Dec 2017 18:54:58 +0000
+
+redis (4:4.0.2-9) unstable; urgency=medium
+
+ * Also update aof.c for MAXPATHLEN issues. (Closes: #881684)
+
+ -- Chris Lamb <lamby@debian.org> Thu, 16 Nov 2017 10:21:37 +0900
+
+redis (4:4.0.2-8) unstable; urgency=medium
+
+ * Use get_current_dir_name over PATHMAX, etc. (Closes: #881684)
+ * Don't rely on taskset existing for kFreeBSD-*. (Closes: #881683)
+ * Drop "memory efficiency" tests on advice from upstream. (Closes: #881682)
+ * Correct BSD-3-clause -> BSD-2-clause for Marc Alexander Lehmann's
+ attribution in debian/copyright.
+ * Let package be bin-NMUable.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 16 Nov 2017 03:50:00 +0900
+
+redis (4:4.0.2-7) unstable; urgency=medium
+
+ * Add a "redis" metapackage. (Closes: #876475)
+ * Drop conditionally exporting FORCE_LIBC_MALLOC; upstreamed since 2.6.0-1.
+
+ -- Chris Lamb <lamby@debian.org> Sun, 12 Nov 2017 08:54:24 +0000
+
+redis (4:4.0.2-6) unstable; urgency=medium
+
+ * Correct locations of redis-sentinel pidfiles. Thanks to Nicolas Payart for
+ the patch. (Closes: #880980)
+
+ -- Chris Lamb <lamby@debian.org> Mon, 06 Nov 2017 22:02:19 +0000
+
+redis (4:4.0.2-5) unstable; urgency=medium
+
+ * CVE-2017-15047: Replace existing patch with upstream-blessed version that
+ covers another case. (Closes: #878076)
+
+ -- Chris Lamb <lamby@debian.org> Tue, 31 Oct 2017 11:13:40 +0100
+
+redis (4:4.0.2-4) unstable; urgency=medium
+
+ * CVE-2017-15047: Add input validity checking to redis cluster config slot
+ numbers. (Closes: #878076)
+ * Drop debian/bin/generate-parts script now we aren't calling it.
+ * Correct Bash-esque in NEWS.
+ * Upstream are not providing signed tarballs, so ignore the
+ "debian-watch-may-check-gpg-signature" Lintian tag,
+ * Drop trailing whitespace in debian/changelog.
+ * Use HTTPS URI in debian/watch.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 30 Oct 2017 10:32:04 +0000
+
+redis (4:4.0.2-3) unstable; urgency=medium
+
+ * Drop Debian-specific support for
+ /etc/redis/redis-{server,sentinel}.{pre,post}-{up,down}.d and remove them
+ if unchanged.
+ * Include systemd redis-server@.service and redis-sentinel@.service template
+ files to easily run multiple instances. (Closes: #877702)
+ * Patch redis.conf and sentinel.conf with quilt instead of maintaining our
+ own versions under debian/.
+ * Refresh all patches.
+ * Bump Standards-Version to 4.1.1.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 12 Oct 2017 14:54:27 -0400
+
+redis (4:4.0.2-2) unstable; urgency=medium
+
+ * Update 0004-redis-check-rdb test to ensure that redis.rdb exists before
+ testing it.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 25 Sep 2017 10:16:18 +0100
+
+redis (4:4.0.2-1) unstable; urgency=medium
+
+ * New upstream release ("Upgrade urgency HIGH: Several potentially critical
+ bugs fixed.")
+ * Bump Standards-Version to 4.1.0.
+ * Drop Build-Depends on dh-systemd (>= 1.5).
+
+ -- Chris Lamb <lamby@debian.org> Sun, 24 Sep 2017 19:46:10 +0100
+
+redis (4:4.0.1-7) unstable; urgency=medium
+
+ * Don't let sentinel tests fail the build; they use too many timers to be
+ useful and/or meaningful. (Closes: #872075)
+
+ -- Chris Lamb <lamby@debian.org> Mon, 14 Aug 2017 07:35:38 -0700
+
+redis (4:4.0.1-6) unstable; urgency=medium
+
+ * Don't install completions to
+ /usr/share/bash-completion/completions/debian/bash_completion/.
+
+ -- Chris Lamb <lamby@debian.org> Sun, 13 Aug 2017 21:29:07 -0700
+
+redis (4:4.0.1-5) unstable; urgency=medium
+
+ * Tidy debian/tests/control.
+ * Drop even more tests with timing issues.
+
+ -- Chris Lamb <lamby@debian.org> Sun, 13 Aug 2017 13:02:52 -0700
+
+redis (4:4.0.1-4) unstable; urgency=medium
+
+ * Split tests into separate files.
+ * Tighten systemd/seccomp hardening.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 12 Aug 2017 12:53:50 -0400
+
+redis (4:4.0.1-3) unstable; urgency=medium
+
+ * Drop yet more non-deterministic tests.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 05 Aug 2017 21:01:03 -0400
+
+redis (4:4.0.1-2) unstable; urgency=medium
+
+ * Skip yet more non-deterministic replication tests that rely on timing.
+ (Closes: #857855)
+
+ -- Chris Lamb <lamby@debian.org> Tue, 25 Jul 2017 18:57:39 +0100
+
+redis (4:4.0.1-1) unstable; urgency=medium
+
+ * New upstream version.
+ * Install 00-RELEASENOTES as the upstream changelog.
+ * Use "dh_auto_clean" over "clean" target.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 24 Jul 2017 16:27:51 +0100
+
+redis (4:4.0.0-3) unstable; urgency=medium
+
+ * Add -latomic to LDFLAGS to attempt to avoid FTBFS on mips{,el}.
+ * Allow ulimit calls to fail in sysvinit scripts to avoid issues when
+ running in a containerised environment. See
+ <https://github.com/travis-ci/travis-ci/issues/7941>.
+
+ -- Chris Lamb <lamby@debian.org> Sun, 23 Jul 2017 15:42:18 +0100
+
+redis (4:4.0.0-2) unstable; urgency=medium
+
+ * Make /usr/bin/redis-server in the main redis-server package a symlink to
+ /usr/bin/redis-check-rdb in the redis-tools package.
+
+ Whilst this prevents a wasteful duplication of a binary, it moreover
+ ensures there are no duplicate debug symbols which was preventing the
+ simultaneous installation of the redis-server-dbgsym and
+ redis-tools-dbgsym packages.
+
+ Note that this results in the peculiar (and possibily confusing) situation
+ where the main package does not have the main binary anymore, or indeed
+ any binaries whatsoever. See also the previous parallel attempt at a
+ symlink changes in 3.2.6-3 which was reverted in 3.2.8-3. Thanks to Adrian
+ Bunk for the report. (Closes: #868551)
+
+ -- Chris Lamb <lamby@debian.org> Sun, 16 Jul 2017 22:38:57 +0100
+
+redis (4:4.0.0-1) unstable; urgency=medium
+
+ * New upstream major release.
+ * Bump Standards-Version to 4.0.0.
+ * Refresh, renumber and reorganise patches.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 14 Jul 2017 22:00:59 +0100
+
+redis (3:3.2.9-1) unstable; urgency=medium
+
+ * New upstream minor bugfix release.
+ * Specify <!nocheck> for test-related Build-Depends.
+ * Bump debhelper compatibility level to 10.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 18 May 2017 12:32:02 +0200
+
+redis (3:3.2.8-3) unstable; urgency=medium
+
+ * Revert the creation of the redis-tools:/usr/bin/redis-check-rdb ->
+ redis-server:/usr/bin/redis-server symlink to avoid a dangling symlink if
+ only the redis-tools binary package is installed.
+
+ This was a regression since 3:3.2.6-3 where we attempted to avoid shipping
+ duplicate file; the redis-server binary changes behaviour based on the
+ contents of argv.
+
+ One alternative would be to ship a symlink in redis-server but that would
+ mean users wishing to check RDB databases would have to install the server
+ package, so reverting to shipping a duplicate file seems justified.
+ (Closes: #858519)
+
+ -- Chris Lamb <lamby@debian.org> Thu, 23 Mar 2017 12:00:22 +0000
+
+redis (3:3.2.8-2) unstable; urgency=medium
+
+ * Avoid conflict between RuntimeDirectory and tmpfiles.d(5) both attempting
+ to create /run/redis with differing permissions.
+
+ This prevents an installation error on Jessie where /run/redis was first
+ being created by the tmpfiles.d(5) mechanism and then subsequently via the
+ RuntimeDirectory directive. Due to a bug in Jessie's systemd, this caused a
+ package installation error as systemd was too strict about permissions if
+ the target already exists: <https://github.com/systemd/systemd/pull/896>
+
+ The redis-{server,sentinel} daemon would actually start successfully a few
+ milliseconds later due to the Restart=always directive.
+
+ We work around this this by dropping the tmpfiles.d(5) handling and moving
+ entirely to RuntimeDirectory{,Mode}; we are not using any special handling
+ requiring tmpfiles.d(5) and we appear to need RuntimeDirectory anyway for
+ #846350. (Closes: #856116)
+
+ -- Chris Lamb <lamby@debian.org> Sat, 11 Mar 2017 12:53:14 +0000
+
+redis (3:3.2.8-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 13 Feb 2017 10:15:53 +1300
+
+redis (3:3.2.7-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 01 Feb 2017 09:27:05 +1300
+
+redis (3:3.2.6-6) unstable; urgency=medium
+
+ * Use --cpu-list 0 (not --cpu-list 1) to ensure compilation on single-CPU
+ machines. (Closes: #852347)
+
+ -- Chris Lamb <lamby@debian.org> Tue, 24 Jan 2017 11:59:02 +1300
+
+redis (3:3.2.6-5) unstable; urgency=medium
+
+ * Re-add taskset calls to try and avoid FTBFS due to parallelism in upstream
+ test suite.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 23 Jan 2017 13:24:39 +1300
+
+redis (3:3.2.6-4) unstable; urgency=medium
+
+ * Expand the documentation in redis-server.service and redis-sentinel
+ regarding the default hardening options.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 21 Jan 2017 11:21:33 +1100
+
+redis (3:3.2.6-3) unstable; urgency=medium
+
+ * Don't ship a "duplicate" redis-server binary in redis-tools as
+ /usr/bin/redis-check-rdb (it checks argv to change its behaviour) by
+ replacing it with a symlink. Found by <https://dedup.debian.net/>.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 11 Jan 2017 17:04:33 +0000
+
+redis (3:3.2.6-2) unstable; urgency=medium
+
+ * Rename RunTimeDirectory -> RuntimeDirectory in .service files.
+ (Closes: #850534)
+ * Refresh all patches with pq import -> pq export.
+ * Tidy all patches, updating descriptions and use Pq-Topic to organise.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 07 Jan 2017 18:06:14 +0000
+
+redis (3:3.2.6-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Add debian/gbp.conf to reflect new repository layout.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 06 Dec 2016 09:23:20 +0000
+
+redis (3:3.2.5-6) unstable; urgency=medium
+
+ * Add missing Depends on lsb-base for /lib/lsb/init-functions usage in
+ redis-sentinel's initscript too. See #838966 for the parallel change to
+ redis-server's initscript.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 01 Dec 2016 12:07:51 +0000
+
+redis (3:3.2.5-5) unstable; urgency=medium
+
+ * Add RunTimeDirectory=redis to systemd .service files.
+ (Closes: #846350)
+
+ -- Chris Lamb <lamby@debian.org> Thu, 01 Dec 2016 11:48:51 +0000
+
+redis (3:3.2.5-4) unstable; urgency=medium
+
+ * Install upstream's MANIFESTO and README.md.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 23 Nov 2016 15:45:48 +0000
+
+redis (3:3.2.5-3) unstable; urgency=medium
+
+ * Also run redis-benchmark in autopkgtests to stress-test the installation
+ better.
+
+ -- Chris Lamb <lamby@debian.org> Sun, 13 Nov 2016 15:03:18 +0000
+
+redis (3:3.2.5-2) unstable; urgency=medium
+
+ * Tighten permissions of /var/{lib,log}/redis. (Closes: #842987)
+ - chmod(1) directories to 0750.
+ - Allow local administrator to override permissions with
+ dpkg-statoverride.
+ - Set UMask= in .service files, at least to match SystemV initscripts.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 03 Nov 2016 12:08:08 +0000
+
+redis (3:3.2.5-1) unstable; urgency=medium
+
+ * New upstream release.
+ - Refresh debian/patches/0003-use-system-jemalloc.patch to accomodate
+ missing -ldl flag.
+ * Refresh all patches with "pq import / pq export".
+
+ -- Chris Lamb <lamby@debian.org> Wed, 26 Oct 2016 16:36:49 +0100
+
+redis (3:3.2.4-2) unstable; urgency=medium
+
+ * Ensure that sentinel's configuration actually writes to a pidfile location
+ so that systemd can detect that the daemon has started.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 10 Oct 2016 12:05:20 +0100
+
+redis (3:3.2.4-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Sync debian/sentinel.conf.
+ * Add missing -ldl for dladdr(3).
+ * Add missing Depends on lsb-base for /lib/lsb/init-functions usage in
+ initscript. Thanks to Santiago Vila. (Closes: #838966)
+
+ -- Chris Lamb <lamby@debian.org> Tue, 27 Sep 2016 11:12:13 +0200
+
+redis (3:3.2.3-2) unstable; urgency=medium
+
+ * Call `ulimit -n 65536` by default from sysvinit scripts so behaviour is
+ consistent with systemd.
+ * Bump epoch as the "2" prefix makes it look like we are shipping version 2.x
+ of Redis itself.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 05 Sep 2016 11:23:18 +0100
+
+redis (2:3.2.3-1) unstable; urgency=medium
+
+ * New upstream release.
+ - Drop 0007-Avoid-world-readable-.rediscli_history-Closes-832460.patch as
+ was applied upstream.
+ * Add copyright-format 1.0 headers.
+ - Use "BSD-3-clause" over "BSD".
+ - Use separate ``License`` paragraphs.
+ - Ensure all wildcards in ``Files:`` sections match.
+ * Check we are running as root in LSB initscripts.
+ * Add debian/README.source regarding debian/{redis,sentinel}.conf.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 02 Aug 2016 13:40:01 -0400
+
+redis (2:3.2.2-1) unstable; urgency=medium
+
+ * New upstream release.
+ - Sync debian/redis.conf with upstream.
+ - Sync debian/sentinel.conf with upstream.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 29 Jul 2016 10:08:08 -0400
+
+redis (2:3.2.1-4) unstable; urgency=high
+
+ * Avoid race condition by setting and resetting umask(2) when
+ writing to ~/.rediscli_history. (Closes: #832460)
+ * Skip replication tests with timing issues.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 28 Jul 2016 08:35:50 -0400
+
+redis (2:3.2.1-3) unstable; urgency=medium
+
+ * Avoid world_readable ~/.rediscli_history files. Thanks to kpcyrd
+ <kpcyrd@rxv.cc>. (Closes: #832460)
+
+ -- Chris Lamb <lamby@debian.org> Tue, 26 Jul 2016 23:48:07 -0400
+
+redis (2:3.2.1-2) unstable; urgency=medium
+
+ * Avoid race conditions in upstream test suite. Thanks to Daniel Schepler
+ <dschepler@gmail.com>. (Closes: #830500)
+
+ -- Chris Lamb <lamby@debian.org> Wed, 13 Jul 2016 09:56:06 +0200
+
+redis (2:3.2.1-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Sync debian/redis.conf
+
+ -- Chris Lamb <lamby@debian.org> Sat, 18 Jun 2016 20:13:44 +0100
+
+redis (2:3.2.0-3) unstable; urgency=medium
+
+ * Skip logging tests as not all architectures support it yet.
+ * Tidy patches.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 16 May 2016 10:28:51 +0100
+
+redis (2:3.2.0-2) unstable; urgency=medium
+
+ * Update redis.conf.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 07 May 2016 11:05:52 +0100
+
+redis (2:3.2.0-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Update 03-use-system-jemalloc.diff.
+ * Install redis-check-rdb (was: redis-check-dump).
+ * Bump Standards-Version to 3.9.8.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 06 May 2016 23:55:02 +0100
+
+redis (2:3.0.7-4) unstable; urgency=medium
+
+ * Actually specify a value for LimitNOFILE.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 07 Apr 2016 11:08:34 +0100
+
+redis (2:3.0.7-3) unstable; urgency=medium
+
+ * Update .travis.yml.
+ * Update redis-benchmark manpage. Thanks to Joe Doherty (docapotamus).
+ * Add LimitNOFILE to allow a higher number of open file descriptors
+ <https://github.com/lamby/pkg-redis/issues/8>. Thanks to @alexber220.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 06 Apr 2016 15:23:06 +0100
+
+redis (2:3.0.7-2) unstable; urgency=medium
+
+ * Correct SOURCE_DATE_EPOCH patch to invert conditional. Thanks to Reiner
+ Herrmann <reiner@reiner-h.de>.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 02 Feb 2016 10:53:26 +0100
+
+redis (2:3.0.7-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Actually drop unused 05-reproducible-build.diff file.
+ * Move to https Vcs-Git URI.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 29 Jan 2016 14:56:43 +0100
+
+redis (2:3.0.6-2) unstable; urgency=medium
+
+ * Ensure that we always properly cleanup test processes (Closes: #808862)
+ * Add explicit Build-Depends on procps.
+ - Drop explicit pkill.
+ * Use SOURCE_DATE_EPOCH instead of dpkg-parsechangelog so patch can go
+ upstream.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 06 Jan 2016 11:38:14 +0000
+
+redis (2:3.0.6-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Drop 06-CVE-2015-8080-Integer-wraparound-in-lua_struct.c-cau.patch as an
+ equivalent change merged upstream.
+ * Don't fail if redis user already exists. (Closes: #774736)
+
+ -- Chris Lamb <lamby@debian.org> Sat, 19 Dec 2015 11:27:41 +0000
+
+redis (2:3.0.5-4) unstable; urgency=high
+
+ * CVE-2015-8080: Integer wraparound in lua_struct.c causing stack-based
+ buffer overflow (Closes: #804419)
+ * Correct call to /bin/kill in redis-{server,sentinel}.service to avoid
+ "kill: invalid argument T" messages when $MAINPID is not set.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 21 Nov 2015 16:22:45 +0200
+
+redis (2:3.0.5-3) unstable; urgency=medium
+
+ * Add a redis-sentinel.tmpfile matching redis-server.tmpfile.
+ * wrap-and-sort -sa
+ * Rebase all patches with `gbp pq`.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 30 Oct 2015 10:54:30 +0000
+
+redis (2:3.0.5-2) unstable; urgency=medium
+
+ * Also specify `ProtectSystem=true` over `ProtectSystem=full` in
+ redis-server.service so that it can write its own configuration file
+ when being run in cluster mode. (Closes: #803366)
+
+ -- Chris Lamb <lamby@debian.org> Fri, 30 Oct 2015 00:01:17 +0000
+
+redis (2:3.0.5-1) unstable; urgency=medium
+
+ * New upstream release.
+ - Sync ./redis.conf and ./debian/redis.conf.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 15 Oct 2015 16:12:17 +0100
+
+redis (2:3.0.4-8) unstable; urgency=medium
+
+ * Use `ProtectSystem=true` over `ProtectSystem=full` in
+ redis-sentinel.service so that it can write its own configuration file
+ under /etc. Thanks to Pete Hicks <jph@bebo.com> for the report and fix.
+ (Closes: #799696)
+
+ -- Chris Lamb <lamby@debian.org> Tue, 13 Oct 2015 20:46:23 +0100
+
+redis (2:3.0.4-7) unstable; urgency=medium
+
+ * Change the default (and commented-out) value for "unixsocket" from
+ /tmp/redis.sock -> /var/run/redis/redis.sock so that it will work even
+ under systemd's PrivateTmp=True. Thanks to
+ Chris <Fisch.666@gmx.de> (Closes: #801464)
+
+ -- Chris Lamb <lamby@debian.org> Sat, 10 Oct 2015 21:11:57 +0200
+
+redis (2:3.0.4-6) unstable; urgency=medium
+
+ * Allow redis-sentinel to actually write to its own directory;
+ ReadWriteDirectories cannot take a filename as I previously thought.
+ Thanks to Bernd Zeimetz <b.zeimetz@conova.com> for the prompt report.
+ (Closes: #799696)
+
+ -- Chris Lamb <lamby@debian.org> Tue, 29 Sep 2015 23:24:31 +0200
+
+redis (2:3.0.4-5) unstable; urgency=medium
+
+ * Don't install /etc/redis/{redis,sentinel}.conf world-readable as they may
+ contain passwords, additionally setting the ownership to ensure they can
+ read their own configuration. (Closes: #800435)
+ * Disable CAP_SYS_PTRACE in systemd service files
+ * Add Documentation= header to systemd service files.
+ * Add a "redis" systemd unit alias.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 29 Sep 2015 17:42:22 +0200
+
+redis (2:3.0.4-4) unstable; urgency=medium
+
+ * Make the parallel change in 2:30.4-3 to redis-server's initscript, not just
+ redis-sentinel's.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 14 Sep 2015 14:18:42 +0100
+
+redis (2:3.0.4-3) unstable; urgency=medium
+
+ * Specific `-s /bin/sh` in su's call to start run-parts as the redis's user's
+ shell of /bin/false was preventing it from starting under sysvinit. Thanks to
+ Michal Humpula <michal.humpula@hudrydum.cz>. (Closes: #798951)
+
+ -- Chris Lamb <lamby@debian.org> Mon, 14 Sep 2015 14:13:26 +0100
+
+redis (2:3.0.4-2) unstable; urgency=medium
+
+ * Add PIDFile= to systemd service files.
+ * Run /etc/redis/redis-server.post-up.d (etc.) under the 'redis' user, not
+ root in initscript.
+ - Document this in 00_example files.
+ * Execute run-parts files under systemd, not just under sysvinit.
+ (Closes: #798771)
+ * Add rudimentary hardening under systemd. (Closes: #798770)
+
+ -- Chris Lamb <lamby@debian.org> Sun, 13 Sep 2015 07:18:13 +0100
+
+redis (2:3.0.4-1) unstable; urgency=medium
+
+ * New upstream release.
+ - Sync debian/redis.conf.
+ * Put --system further on to avoid issues with lintian false-positive (and to
+ match the manpage).
+
+ -- Chris Lamb <lamby@debian.org> Tue, 08 Sep 2015 10:28:51 +0100
+
+redis (2:3.0.3-3) unstable; urgency=medium
+
+ * Replace ExecStop in systemd configuration with TimeoutStopSpec. Calls to
+ `redis-cli shutdown` were not reliable if the port/UNIX socket had changed
+ from the defaults (or is not accessible due to firewalling, permissions,
+ etc.)
+
+ Note that we cannot simply remove ExecStop (hence TimeoutStopSpec) as we
+ must wait for the server to fully shutdown - it may not have finished
+ writing the dump file to disk and thus we would be risking silent data loss
+ if it is SIGKILL'd.
+
+ Thanks to Chris Kuehl <ckuehl@ocf.berkeley.edu>. (Closes: #794437)
+
+ -- Chris Lamb <lamby@debian.org> Wed, 05 Aug 2015 14:40:19 +0100
+
+redis (2:3.0.3-2) unstable; urgency=medium
+
+ * Switch from RuntimeDirectory to systemd-tempfiles.
+
+ Both redis-server and redis-sentinel use the the same RuntimeDirectory
+ (/run/redis). This is wrong since systemd removes RuntimeDirectory on
+ service stop. So, stopping redis-server removes redis-sentinel.pid as well.
+
+ Using a systemd-tempfile is a more robust approach. We are also removing
+ ExecStartPre lines since directory creation is handled in a different
+ level.
+
+ Thanks to Christos Trochalakis <yatiohi@ideopolis.gr>. (Closes: #793016)
+
+ -- Chris Lamb <lamby@debian.org> Mon, 20 Jul 2015 14:52:01 +0100
+
+redis (2:3.0.3-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 17 Jul 2015 14:48:12 +0100
+
+redis (2:3.0.2-3) unstable; urgency=medium
+
+ * Add some missing tools:
+ - ./utils/lru/
+ - ./src/redis-trib.rb
+ - Don't compress redis-trib.rb
+ - Add ruby-redis to Suggests.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 11 Jul 2015 15:23:33 +0100
+
+redis (2:3.0.2-2) unstable; urgency=medium
+
+ * Create /var/run/redis with the correct permissions in systemd .service
+ files. Thanks to Sebastian Lipponer <mail@sebastianlipponer.de>.
+ (Closes: #787257)
+ * Install Bash completions to /usr/share/bash-completion/completions instead
+ of /etc/bash_completion.d (see #787257).
+
+ -- Chris Lamb <lamby@debian.org> Wed, 17 Jun 2015 15:56:52 +0100
+
+redis (2:3.0.2-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 04 Jun 2015 12:38:22 +0100
+
+redis (2:3.0.1-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 05 May 2015 16:23:59 +0100
+
+redis (2:3.0.0-2) unstable; urgency=medium
+
+ * redis-server was not able to start under systemd with default redis.conf
+ due to the absence of /var/run/redis; when RuntimeDirectory is specified in
+ *.service file, systemd creates the directory in /var/run and sets the
+ correct permissions. Thanks to Mikhael A <spir@spir.ru>.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 09 Apr 2015 13:27:08 +0100
+
+redis (2:3.0.0-1) unstable; urgency=medium
+
+ * New upstream stable release.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 01 Apr 2015 18:08:31 +0100
+
+redis (2:3.0.0~rc6-2) unstable; urgency=medium
+
+ * Don't make test failures cause a build failure - known timing issues
+ upstream.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 27 Mar 2015 13:37:18 +0000
+
+redis (2:3.0.0~rc6-1) unstable; urgency=medium
+
+ * New upstream RC release.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 25 Mar 2015 23:12:29 +0000
+
+redis (2:3.0.0~rc5-2) unstable; urgency=medium
+
+ * Upload to unstable.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 20 Mar 2015 19:16:34 +0000
+
+redis (2:3.0.0~rc5-1) experimental; urgency=medium
+
+ * New upstream RC release.
+ * wrap-and-sort entries.
+ * Tidy debian/rules.
+ * Move to debhelper compatibility level 9.
+ * Don't run tests if nocheck specified.
+ * Update debian/copyright.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 20 Mar 2015 11:36:46 +0000
+
+redis (2:3.0.0~rc4-1) experimental; urgency=medium
+
+ * New upstream RC release.
+ * wrap-and-sort.
+ * Use the latest debian/changelog date in 05-reproducible-build.diff.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 13 Feb 2015 23:33:53 +0000
+
+redis (2:3.0.0~rc3-1) experimental; urgency=medium
+
+ * New upstream RC release.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 30 Jan 2015 19:03:31 +0000
+
+redis (2:3.0.0~rc2-2) experimental; urgency=medium
+
+ * Add Build-Depends on `tcl` for tests.
+ * Add the following run-parts(8) directories that are be executed at the
+ appropriate daemon start and stop actions:
+
+ - /etc/redis/redis-server.pre-up.d
+ - /etc/redis/redis-server.pre-down.d
+ - /etc/redis/redis-server.post-up.d
+ - /etc/redis/redis-server.post-down.d
+ - /etc/redis/redis-sentinel.pre-up.d
+ - /etc/redis/redis-sentinel.pre-down.d
+ - /etc/redis/redis-sentinel.post-up.d
+ - /etc/redis/redis-sentinel.post-down.d
+
+ This is useful for loading Lua scripts which are not persisted across
+ restarts. Scripts should be idempotent so that multiple calls to (eg.)
+ "/etc/init.d/redis-server start" do not result in unintended consequences.
+ * Also run Redis Sentinel tests.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 27 Jan 2015 05:04:24 +0000
+
+redis (2:3.0.0~rc2-1) experimental; urgency=low
+
+ * New upstream RC release.
+ - Sync debian/redis.conf.
+ * Renable testsuite.
+ * Add --oknodo to initscript "start" action to ensure correct return code if
+ is already running.
+ * Split redis-sentinel into its own package (Closes: #775414)
+ - Move /usr/bin/redis-sentinel symlink to new package.
+ - Fork ./sentinel.conf -> debian/sentinel.conf for own changes.
+ - Add logrotate stanza.
+ - Override permissions of /etc/redis/sentinel.conf with dpkg-statoverride -
+ needs to be writable by Sentinel itself.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 16 Jan 2015 10:55:28 +0000
+
+redis (2:2.8.19-3) unstable; urgency=medium
+
+ * Add DEP-8 smoke test.
+
+ -- Chris Lamb <lamby@debian.org> Sun, 08 Feb 2015 19:19:42 +0000
+
+redis (2:2.8.19-2) unstable; urgency=low
+
+ * Re-enable testsuite.
+ - Add tcl to Build-Depends.
+ * Add --oknodo to initscript "start" action to ensure correct return code if
+ is already running.
+ * Use the latest debian/changelog date in 05-reproducible-build.diff.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 27 Jan 2015 04:48:25 +0000
+
+redis (2:2.8.19-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 30 Dec 2014 10:06:28 +0000
+
+redis (2:2.8.18-1) unstable; urgency=low
+
+ * New upstream release.
+ - Sync debian/redis.conf.
+ * Attempt to make build reproducible by dropping timestamp/uname name from
+ release.h.
+ * Bump Standards-Version to 3.9.6.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 11 Dec 2014 12:19:43 +0000
+
+redis (2:2.8.17-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 09 Oct 2014 11:47:32 +0100
+
+redis (2:2.8.14-1) unstable; urgency=low
+
+ * New upstream release.
+ * Guillaume Delacour:
+ - Use dpkg-buildflags CFLAGS, CPPFLAGS (patch upstream Makefile) and
+ LDFLAGS, also use pie and relro via DEB_BUILD_MAINT_OPTIONS
+ - Call make V=1 to show gcc command lines (blhc) and enable parallel build
+ * Sync debian/redis.conf and redis.conf.
+ * Refresh 02-fix-ftbfs-on-kfreebsd patch.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 05 Sep 2014 13:54:51 +0100
+
+redis (2:2.8.13-3) unstable; urgency=low
+
+ * Correct permissions of our /var directories by chowning them recursively.
+ This is necessary, at least temporarily, as systemd users were previously
+ running the daemon as root causing the files in those dirs to be owned by
+ that user. We could be clever and only chown files owned by root to
+ accomodate users who are not running as redis:redis but I think that's
+ overkill. (Closes: #756709)
+
+ -- Chris Lamb <lamby@debian.org> Tue, 05 Aug 2014 17:16:53 +0100
+
+redis (2:2.8.13-2) unstable; urgency=low
+
+ * Under systemd, run under redis:redis. (Closes: #756621)
+
+ -- Chris Lamb <lamby@debian.org> Thu, 31 Jul 2014 14:49:48 +0100
+
+redis (2:2.8.13-1) unstable; urgency=low
+
+ * New upstream release.
+ * Synchronise ./debian/redis.conf with ./redis.conf.
+ * Update 03-use-system-jemalloc.diff.
+ * Fix FTBFS under kfreebsd (Closes: #754634)
+
+ -- Chris Lamb <lamby@debian.org> Mon, 14 Jul 2014 22:49:15 +0100
+
+redis (2:2.8.12-1) unstable; urgency=low
+
+ * New upstream release.
+ - Synchronise ./debian/redis.conf with ./redis.conf.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 05 Jul 2014 17:15:01 +0100
+
+redis (2:2.8.11-1) unstable; urgency=low
+
+ * New upstream release.
+ - Synchronise ./debian/redis.conf with ./redis.conf.
+ * Drop copytruncate from logrotate stanza.
+ * Prefer status_of_proc over `start-stop-daemon --stop --signal 0 ...`
+ (Closes: #751839)
+
+ -- Chris Lamb <lamby@debian.org> Tue, 17 Jun 2014 16:36:58 +0100
+
+redis (2:2.8.8-2) unstable; urgency=low
+
+ * Add systemd support. Thanks to Wasif Malik <wmalik.ml@gmail.com>.
+ (Closes: #743750)
+
+ -- Chris Lamb <lamby@debian.org> Sun, 06 Apr 2014 11:24:36 +0100
+
+redis (2:2.8.8-1) unstable; urgency=low
+
+ * New upstream release.
+ - Sync debian/redis.conf and redis.conf.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 01 Apr 2014 19:32:15 +0100
+
+redis (2:2.8.7-2) unstable; urgency=low
+
+ * Revamp maintainer scripts. (Closes: #741216)
+
+ -- Chris Lamb <lamby@debian.org> Mon, 10 Mar 2014 22:18:29 +0000
+
+redis (2:2.8.7-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 05 Mar 2014 23:16:17 +0000
+
+redis (2:2.8.6-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 15 Feb 2014 22:47:34 +0000
+
+redis (2:2.8.5-1) unstable; urgency=low
+
+ * New upstream release.
+ * Update debian/redis.conf to include new tcp-backlog option.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 08 Feb 2014 12:01:48 +0000
+
+redis (2:2.8.4-2) unstable; urgency=low
+
+ * Symlink redis-sentinel to redis-server as it's the same binary.
+ * Install sentinel.conf.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 14 Jan 2014 12:31:14 +0000
+
+redis (2:2.8.4-1) unstable; urgency=low
+
+ * New upstream version.
+ * Sync debian/redis.conf.
+ * Also ship redis-sentinel (Closes: #735272)
+
+ -- Chris Lamb <lamby@debian.org> Tue, 14 Jan 2014 10:42:09 +0000
+
+redis (2:2.8.2-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 06 Dec 2013 14:37:54 +0000
+
+redis (2:2.8.0-1) unstable; urgency=low
+
+ * New upstream release.
+ - Update debian/patches/02-fix-ftbfs-on-kfreebsd.
+ - Update debian/patches/03-use-system-jemalloc.diff.
+ - Update debian/redis.conf
+ * Bump Standards-Version to 3.9.4.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 22 Nov 2013 16:51:55 +0000
+
+redis (2:2.6.16-3) unstable; urgency=low
+
+ * Add missing Replaces and Breaks to redis-tools. Thanks to Andreas Beckmann
+ (anbe). (Closes: #723703)
+
+ -- Chris Lamb <lamby@debian.org> Fri, 20 Sep 2013 14:35:24 +0100
+
+redis (2:2.6.16-2) unstable; urgency=low
+
+ * Completely rework and refresh debian/copyright. (Closes: #723162)
+ * Update website in debian/copyright.
+ * Drop client library references from debian/copyright (dropped in
+ 2:1.1.90~beta-1).
+ * Update main copyright year.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 17 Sep 2013 19:08:01 +0100
+
+redis (2:2.6.16-1) unstable; urgency=low
+
+ * New upstream release.
+ * Split non-server binaries into redis-tools package. (Closes: #723006)
+ * Update debian/watch.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 16 Sep 2013 09:53:49 +0100
+
+redis (2:2.6.14-2) unstable; urgency=low
+
+ * Source /lib/lsb/init-functions in initscript for systemd compatibility.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 12 Aug 2013 16:17:47 +0100
+
+redis (2:2.6.14-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 06 Aug 2013 12:14:12 +0100
+
+redis (2:2.6.13-1) unstable; urgency=low
+
+ * New upstream release.
+ - Sync debian/redis.conf.
+ - Update 02-fix-ftbfs-on-kfreebsd.diff.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 17 Jun 2013 00:49:42 +0100
+
+redis (2:2.6.7-1) unstable; urgency=low
+
+ * New upstream release.
+ * Add missing "status" command from usage. Thanks to Dererk
+ <dererk@debian.org>. (Closes: #696339)
+ * Enable building on kfreebsd-amd64 (and possibly kfreebsd-i386 and
+ hurd-i386) by not depending on 'jemalloc' which would not be used anyway.
+ Thanks to Jeff Epler <jepler@unpythonic.net>. (Closes: #696618)
+
+ -- Chris Lamb <lamby@debian.org> Fri, 28 Dec 2012 17:00:06 +0000
+
+redis (2:2.6.0-1) unstable; urgency=low
+
+ * New upstream release.
+ * Update 02-fix-ftbfs-on-kfreebsd.diff.
+ * Update 03-use-system-jemalloc.diff.
+ * Update configuration file.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 23 Oct 2012 15:04:17 +0100
+
+redis (2:2.4.17-1) unstable; urgency=low
+
+ * New upstream release.
+ * Bump Standards-Version to 3.9.3.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 10 Oct 2012 21:16:47 +0100
+
+redis (2:2.4.15-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 02 Jul 2012 10:56:28 +0100
+
+redis (2:2.4.14-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 08 Jun 2012 17:21:49 +0100
+
+redis (2:2.4.13-1) unstable; urgency=low
+
+ * New upstream release. (Closes: #673202)
+ * Sync upstream redis.conf changes with debian/redis.conf.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 17 May 2012 10:32:33 +0100
+
+redis (2:2.4.9-2) unstable; urgency=low
+
+ * Add /etc/default/redis-server option to call ``ulimit -n'' before
+ invoking Redis. (Closes: #672638)
+
+ -- Chris Lamb <lamby@debian.org> Mon, 14 May 2012 10:34:21 +0000
+
+redis (2:2.4.9-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 26 Mar 2012 12:21:29 +0100
+
+redis (2:2.4.8-1) unstable; urgency=low
+
+ * New upstream release.
+ * Fix debian/watch (Closes: #661919)
+ * Don't use jemalloc on archs not supporting it (Closes: #661354)
+
+ -- Chris Lamb <lamby@debian.org> Sun, 11 Mar 2012 22:19:51 +0000
+
+redis (2:2.4.5-1) unstable; urgency=low
+
+ * New upstream version (Closes: #655416)
+ * Use system jemalloc. (Closes: #654900, #654902)
+
+ -- Chris Lamb <lamby@debian.org> Wed, 11 Jan 2012 12:30:27 +0000
+
+redis (2:2.4.2-2) unstable; urgency=low
+
+ * Fix test suite on sparc (Closes: #647627)
+
+ -- Chris Lamb <lamby@debian.org> Wed, 07 Dec 2011 16:55:23 +0000
+
+redis (2:2.4.2-1) unstable; urgency=low
+
+ * New upstream release.
+ * /etc/init.d/redis-server fixes:
+ - Send TERM, not QUIT signal.
+ - Sleep 1 second after exiting as although the process has disappeared the
+ server socket is somehow still in use which causes the start to fail.
+ * Drop 01-fix-link-ordering patch; fixed upstream.
+ <http://code.google.com/p/redis/issues/detail?id=562>.
+ * Update 02-fix-ftbfs-on-kfreebsd.
+ * Drop redis-doc package now that upstream no longer ship documentation.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 16 Nov 2011 16:00:23 +0000
+
+redis (2:2.4.0~rc5-1) experimental; urgency=low
+
+ * New upstream RC release.
+ * Update debian/redis.conf.
+ * Drop documentation package - dropped upstream.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 29 Jul 2011 21:41:25 +0200
+
+redis (2:2.2.12-1) unstable; urgency=low
+
+ * New upstream release.
+ * Move runtime files to /var/run/redis/ and set that as default location for
+ socket file. Thanks to Sandro Tosi <morph@debian.org>. (Closes: #632931)
+ * Refresh fix-link-ordering patch.
+ * Use "defined(__linux__) || defined(__GLIBC__)" for kfreebsd compatibility.
+ Thanks to Robert Millan <rmh@debian.org>. (Closes: #632499)
+
+ -- Chris Lamb <lamby@debian.org> Wed, 27 Jul 2011 19:20:26 +0200
+
+redis (2:2.2.11-3) unstable; urgency=low
+
+ * Change default loglevel to "notice".
+ * Wait forever for redis to stop - only waiting 10 seconds could cause data
+ loss.
+ * Set a proper default location for socket file. (Closes: #632931)
+
+ -- Chris Lamb <lamby@debian.org> Mon, 18 Jul 2011 13:25:16 +0100
+
+redis (2:2.2.11-2) unstable; urgency=low
+
+ * Fix FTBFS on kfreebsd. Thanks to Christoph Egger <christoph@debian.org> for
+ the patch. (Closes: #632499)
+ * Ship redis-check-aof and redis-check-dump. (Closes: #632858)
+
+ -- Chris Lamb <lamby@debian.org> Wed, 06 Jul 2011 22:36:18 +0100
+
+redis (2:2.2.11-1) unstable; urgency=low
+
+ * New upstream release.
+ * Correct spelling of "Description" in patch system.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 02 Jul 2011 00:43:37 +0100
+
+redis (2:2.2.10-1) unstable; urgency=low
+
+ * New upstream release.
+ * Bump Standards-Version to 3.9.2.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 18 Jun 2011 14:53:41 +0100
+
+redis (2:2.2.8-1) unstable; urgency=low
+
+ * New upstream release.
+ * Add patch from Ubuntu to fix FTBFS due to --as-needed linking.
+ Thanks to Nigel Babu <nigelbabu@ubuntu.com>. (Closes: #628056)
+
+ -- Chris Lamb <lamby@debian.org> Tue, 07 Jun 2011 16:43:58 +0100
+
+redis (2:2.2.5-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Mon, 25 Apr 2011 14:04:29 +0100
+
+redis (2:2.2.4-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 22 Apr 2011 14:05:43 +0100
+
+redis (2:2.2.2-1) unstable; urgency=low
+
+ * New upstream release.
+ * Use userdel over deluser to prevent problems when purging package.
+ (Closes: #618326)
+
+ -- Chris Lamb <lamby@debian.org> Tue, 15 Mar 2011 11:13:21 +0000
+
+redis (2:2.2.1-1) unstable; urgency=low
+
+ * New upstream release. (Closes: #604076)
+ * Update install paths.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 24 Feb 2011 19:39:43 +0000
+
+redis (2:2.0.1-2) unstable; urgency=low
+
+ * Upload to unstable.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 10 Sep 2010 14:49:30 +0100
+
+redis (2:2.0.1-1) experimental; urgency=low
+
+ * New upstream release.
+ * Update debian/watch to not match old tarballs.
+ * Upstream now ships an install target; let's just ignore it for now.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 10 Sep 2010 14:40:01 +0100
+
+redis (2:2.0.0~rc4-1) experimental; urgency=low
+
+ * New upstream RC release.
+ * Bump Standards-Version to 3.9.1.
+ * Remove mkreleasehdr.sh when building to avoid debian diff - it will
+ regenerate release.h with different contents.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 29 Jul 2010 09:13:31 -0400
+
+redis (2:2.0.0~rc3-1) experimental; urgency=low
+
+ * New upstream RC release.
+ * Bump Standards-Version to 3.9.0.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 23 Jul 2010 11:59:16 +0100
+
+redis (2:2.0.0~rc2-1) experimental; urgency=low
+
+ * New upstream RC release.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 01 Jul 2010 23:15:02 +0100
+
+redis (2:2.0.0~rc1-2) experimental; urgency=low
+
+ * Add 'status' command to initscript.
+ * Add redis-benchmark (and manpage) to package. (Closes: #587395)
+
+ -- Chris Lamb <lamby@debian.org> Mon, 28 Jun 2010 11:02:31 +0100
+
+redis (2:2.0.0~rc1-1) experimental; urgency=low
+
+ * New upstream release candidate.
+ * Remove '01-dont-print-pid-on-startup.diff' patch.
+ * Update local copy of redis.conf.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 01 Jun 2010 10:51:05 +0100
+
+redis (2:1.2.6-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 30 Mar 2010 14:13:52 +0100
+
+redis (2:1.2.5-1) unstable; urgency=low
+
+ * New upstream release.
+ * Drop 02-fix-segfault-indupClientReplyValue.diff; applied upstream via
+ <http://code.google.com/p/redis/issues/detail?id=177>.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 11 Mar 2010 21:34:37 +0000
+
+redis (2:1.2.4-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 09 Mar 2010 16:18:19 +0000
+
+redis (2:1.2.3-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 02 Mar 2010 16:45:07 +0000
+
+redis (2:1.2.2-2) unstable; urgency=low
+
+ * Really fix segfault in dupClientReplyValue. (Closes: #570371)
+
+ -- Chris Lamb <lamby@debian.org> Fri, 19 Feb 2010 09:16:48 +0000
+
+redis (2:1.2.2-1) unstable; urgency=low
+
+ * New upstream release.
+ - Fixes segfault in dupClientReplyValue. Thanks to Hirling Endre
+ <endre@dawn.royalcomp.hu> (Closes: #570371)
+
+ -- Chris Lamb <lamby@debian.org> Thu, 18 Feb 2010 22:02:10 +0000
+
+redis (2:1.2.1-1) unstable; urgency=low
+
+ * New upstream release.
+ * Add Bash completion script for redis-cli by Steve Kemp <skx@debian.org>.
+ (Closes: #565358)
+ * Bump Standards-Version to 3.8.4.
+ * Add $remote_fs to LSB "Required-{Start,Stop}" initscript headers.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 09 Feb 2010 14:37:32 +0000
+
+redis (2:1.2.0-1) unstable; urgency=low
+
+ * New upstream stable release.
+ * Switch to dpkg-source 3.0 (quilt) format.
+ * Patch out printing of pid on startup.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 14 Jan 2010 15:50:36 +0000
+
+redis (2:1.1.95~beta-2) unstable; urgency=low
+
+ * Set source section to "database" from "misc".
+ * Add redis-cli binary to "redis-server" package.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 13 Jan 2010 23:36:30 +0000
+
+redis (2:1.1.95~beta-1) unstable; urgency=low
+
+ * New upstream release.
+ * Sync debian/redis.conf with upstream version (new "rdbcompression" and
+ "masterauth" commands).
+
+ -- Chris Lamb <lamby@debian.org> Sun, 10 Jan 2010 22:59:06 +0000
+
+redis (2:1.1.90~beta-1) unstable; urgency=low
+
+ * New upstream release:
+ - Bump the epoch as dpkg considers 1.1.90 to be less than 1.02.
+ - Sync redis.conf
+ * Don't build client libraries anymore; not part of the upstream tarball
+ anymore.
+ * Don't export CFLAGS from debian/rules to prevent FTBFS when dpkg-provided
+ CFLAGS does not include --std=c99.
+ * Modify debian/watch to consider "-beta" the same as "~beta" for correct
+ dpkg ordering.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 05 Dec 2009 22:10:32 +0000
+
+redis (1:1.02-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Fri, 23 Oct 2009 16:26:45 +0100
+
+redis (1:1.01-1) unstable; urgency=low
+
+ * New upstream release.
+ - "maxmemory now works well on 64bit systems with > 4GB of RAM"
+
+ -- Chris Lamb <lamby@debian.org> Tue, 22 Sep 2009 21:53:48 +0100
+
+redis (1:1.0-1) unstable; urgency=low
+
+ * New upstream release.
+ * Bump Standards-Version to 3.8.3.
+ * Drop patch system:
+ - 01-recommend-sysctl-conf.diff; applied upstream.
+ - 02-warn-after-daemonising.diff; applied upstream.
+ - 03-only-mangle-trace-on-ia64-and-x86.diff; applied upstream.
+ - Drop quilt Build-Depends and remove patches/series.
+ * Use "override_dh_auto_clean" instead of "clean" target.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 08 Sep 2009 22:09:19 +0100
+
+redis (1:0.900-3) unstable; urgency=low
+
+ * Actually add architecture patch introducted in 1:0.900-2 to quilt 'series'
+ (Closes: #533763)
+ * Correct "/proc/sys/vm/overcommit_memory" message to print the correct
+ string to add to sysctl.conf.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 25 Jun 2009 12:13:02 +0100
+
+redis (1:0.900-2) unstable; urgency=low
+
+ * Add patch to avoid mangling the stacktrace on SIGSEGV using X86-specific
+ ucontext struct, etc. (Closes: #533763)
+ * Bump Standards-Version to 3.8.2.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 24 Jun 2009 23:54:42 +0100
+
+redis (1:0.900-1) unstable; urgency=low
+
+ * New upstream release.
+ - Update debian/redis.conf
+ * Update versionmangle in debian/watch.
+ * "/proc/sys/vm/overcommit_memory" message:
+ - Recommend modifying /etc/sysctl.conf instead of using "boot scripts"
+ - Warn after daemonising to avoid message being spammed on every boot.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 17 Jun 2009 10:39:57 +0100
+
+redis (1:0.100-1) unstable; urgency=low
+
+ * New upstream release.
+ - Update debian/redis.conf
+
+ -- Chris Lamb <lamby@debian.org> Thu, 28 May 2009 00:31:37 +0100
+
+redis (1:0.096-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 09 May 2009 22:16:13 +0100
+
+redis (1:0.095-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Chris Lamb <lamby@debian.org> Sat, 09 May 2009 12:50:26 +0100
+
+redis (1:0.094-3) unstable; urgency=low
+
+ * Really upload to unstable - I give "debchange -r" less credit than it
+ deserves.
+
+ -- Chris Lamb <lamby@debian.org> Thu, 07 May 2009 22:02:24 +0100
+
+redis (1:0.094-2) experimental; urgency=low
+
+ * Upload to unstable.
+ * Add libredis-perl package.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 06 May 2009 00:19:35 +0100
+
+redis (1:0.094-1) experimental; urgency=low
+
+ * New upstream release.
+ * Place libphp-redis package into 'php' section.
+ * Update debian/copyright with new libraries.
+ * Correct Vcs-Browser location.
+
+ -- Chris Lamb <lamby@debian.org> Wed, 06 May 2009 00:08:26 +0100
+
+redis (1.0~beta8-1) experimental; urgency=low
+
+ * New upstream release.
+
+ -- Chris Lamb <lamby@debian.org> Tue, 24 Mar 2009 22:30:02 +0000
+
+redis (1.0~beta7-1) experimental; urgency=low
+
+ * Initial release. (Closes: #518700)
+
+ -- Chris Lamb <lamby@debian.org> Fri, 20 Mar 2009 00:37:15 +0000
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..39f620f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,89 @@
+Source: redis
+Section: database
+Priority: optional
+Maintainer: Chris Lamb <lamby@debian.org>
+Build-Depends:
+ debhelper-compat (= 13),
+ dpkg-dev (>= 1.17.14),
+ libhiredis-dev (>= 0.14.0),
+ libjemalloc-dev [linux-any],
+ liblua5.1-dev,
+ liblzf-dev,
+ libssl-dev,
+ libsystemd-dev,
+ lua-bitop-dev,
+ lua-cjson-dev,
+ openssl <!nocheck>,
+ pkg-config,
+ procps <!nocheck>,
+ tcl <!nocheck>,
+ tcl-tls <!nocheck>,
+Standards-Version: 4.6.2
+Homepage: https://redis.io/
+Vcs-Git: https://salsa.debian.org/lamby/pkg-redis.git -b debian/experimental
+Vcs-Browser: https://salsa.debian.org/lamby/pkg-redis
+Rules-Requires-Root: no
+
+Package: redis
+Architecture: all
+Depends:
+ redis-server (<< ${binary:Version}.1~),
+ redis-server (>= ${binary:Version}),
+ ${misc:Depends},
+Description: Persistent key-value database with network interface (metapackage)
+ Redis is a key-value database in a similar vein to memcache but the dataset
+ is non-volatile. Redis additionally provides native support for atomically
+ manipulating and querying data structures such as lists and sets.
+ .
+ The dataset is stored entirely in memory and periodically flushed to disk.
+ .
+ This package depends on the redis-server package.
+
+Package: redis-sentinel
+Architecture: any
+Pre-Depends:
+ ${misc:Pre-Depends},
+Depends:
+ lsb-base (>= 3.2-14),
+ redis-tools (= ${binary:Version}),
+ ${misc:Depends},
+Description: Persistent key-value database with network interface (monitoring)
+ Redis is a key-value database in a similar vein to memcache but the dataset
+ is non-volatile. Redis additionally provides native support for atomically
+ manipulating and querying data structures such as lists and sets.
+ .
+ This package contains the Redis Sentinel monitoring software.
+
+Package: redis-server
+Architecture: any
+Pre-Depends:
+ ${misc:Pre-Depends},
+Depends:
+ lsb-base (>= 3.2-14),
+ redis-tools (= ${binary:Version}),
+ ${misc:Depends},
+Description: Persistent key-value database with network interface
+ Redis is a key-value database in a similar vein to memcache but the dataset
+ is non-volatile. Redis additionally provides native support for atomically
+ manipulating and querying data structures such as lists and sets.
+ .
+ The dataset is stored entirely in memory and periodically flushed to disk.
+
+Package: redis-tools
+Architecture: any
+Depends:
+ adduser,
+ ${misc:Depends},
+ ${shlibs:Depends},
+Suggests:
+ ruby-redis,
+Replaces:
+ redis-server (<< 2:2.6.16-1),
+Breaks:
+ redis-server (<< 2:2.6.16-1),
+Description: Persistent key-value database with network interface (client)
+ Redis is a key-value database in a similar vein to memcache but the dataset
+ is non-volatile. Redis additionally provides native support for atomically
+ manipulating and querying data structures such as lists and sets.
+ .
+ This package contains the command line client and other tools.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..e12d269
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,133 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Contact: Salvatore Sanfilippo <antirez@gmail.com>
+Upstream-Name: redis
+Source: https://github.com/antirez/redis
+
+Files: *
+Copyright: © 2006-2014 Salvatore Sanfilippo <antirez@gmail.com>
+License: BSD-3-clause
+
+Files:
+ src/rio.*
+ src/t_zset.c
+ src/ziplist.h
+ src/intset.*
+ src/redis-check-aof.c
+ deps/hiredis/*
+ deps/linenoise/*
+Copyright:
+ © 2009-2012 Pieter Noordhuis <pcnoordhuis@gmail.com>
+ © 2009-2012 Salvatore Sanfilippo <antirez@gmail.com>
+License: BSD-3-clause
+
+Files:
+ src/lzf.h
+ src/lzfP.h
+ src/lzf_d.c
+ src/lzf_c.c
+Copyright:
+ © 2000-2007 Marc Alexander Lehmann <schmorp@schmorp.de>
+ © 2009-2012 Salvatore Sanfilippo <antirez@gmail.com>
+License: BSD-2-clause
+
+Files: src/setproctitle.c
+Copyright:
+ © 2010 William Ahern
+ © 2013 Salvatore Sanfilippo
+ © 2013 Stam He
+License: BSD-3-clause
+
+Files: src/ae_evport.c
+Copyright: © 2012 Joyent, Inc.
+License: BSD-3-clause
+
+Files: src/ae_kqueue.c
+Copyright: © 2009 Harish Mallipeddi <harish.mallipeddi@gmail.com>
+License: BSD-3-clause
+
+Files: utils/install_server.sh
+Copyright: © 2011 Dvir Volk <dvirsk@gmail.com>
+License: BSD-3-clause
+
+Files: deps/jemalloc/*
+Copyright:
+ © 2002-2012 Jason Evans <jasone@canonware.com>
+ © 2007-2012 Mozilla Foundation
+ © 2009-2012 Facebook, Inc.
+License: BSD-3-clause
+
+Files: src/pqsort.*
+Copyright: © 1992-1993 The Regents of the University of California
+License: BSD-3-clause
+
+Files: deps/lua/*
+Copyright: © 1994-2012 Lua.org, PUC-Ri
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+
+Files: debian/*
+Copyright: © 2009—2022 Chris Lamb <lamby@debian.org>
+License: BSD-3-clause
+
+License: BSD-2-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.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT HOLDER 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.
+
+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:
+ .
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * 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.
+ * Neither the name of Redis 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 COPYRIGHT HOLDERS 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 COPYRIGHT OWNER 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.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..14717f8
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,3 @@
+[DEFAULT]
+debian-branch=debian/bookworm
+upstream-branch=upstream/bookworm
diff --git a/debian/gitlab-ci.yml b/debian/gitlab-ci.yml
new file mode 100644
index 0000000..62aa4ec
--- /dev/null
+++ b/debian/gitlab-ci.yml
@@ -0,0 +1,11 @@
+include:
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml
+
+piuparts:
+ allow_failure: true
+
+lintian:
+ allow_failure: true
+
+test-crossbuild-arm64:
+ allow_failure: true
diff --git a/debian/patches/0001-Fix-FTBFS-on-kFreeBSD.patch b/debian/patches/0001-Fix-FTBFS-on-kFreeBSD.patch
new file mode 100644
index 0000000..a256471
--- /dev/null
+++ b/debian/patches/0001-Fix-FTBFS-on-kFreeBSD.patch
@@ -0,0 +1,21 @@
+From: Chris Lamb <lamby@debian.org>
+Date: Fri, 30 Oct 2015 10:53:42 +0000
+Subject: Fix FTBFS on kFreeBSD
+
+---
+ src/fmacros.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/fmacros.h b/src/fmacros.h
+index a97d21a..4b2d895 100644
+--- a/src/fmacros.h
++++ b/src/fmacros.h
+@@ -41,7 +41,7 @@
+ #define _ALL_SOURCE
+ #endif
+
+-#if defined(__linux__) || defined(__OpenBSD__)
++#if defined(__linux__) || defined(__OpenBSD__) || defined(__GLIBC__)
+ #define _XOPEN_SOURCE 700
+ /*
+ * On NetBSD, _XOPEN_SOURCE undefines _NETBSD_SOURCE and
diff --git a/debian/patches/0002-Add-CPPFLAGS-to-upstream-makefiles.patch b/debian/patches/0002-Add-CPPFLAGS-to-upstream-makefiles.patch
new file mode 100644
index 0000000..0130606
--- /dev/null
+++ b/debian/patches/0002-Add-CPPFLAGS-to-upstream-makefiles.patch
@@ -0,0 +1,49 @@
+From: Chris Lamb <lamby@debian.org>
+Date: Fri, 30 Oct 2015 10:53:42 +0000
+Subject: Add CPPFLAGS to upstream makefiles
+
+---
+ deps/hdr_histogram/Makefile | 2 +-
+ deps/linenoise/Makefile | 2 +-
+ src/Makefile | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/deps/hdr_histogram/Makefile b/deps/hdr_histogram/Makefile
+index 28dd93e..3a6413e 100644
+--- a/deps/hdr_histogram/Makefile
++++ b/deps/hdr_histogram/Makefile
+@@ -2,7 +2,7 @@ STD= -std=c99
+ WARN= -Wall
+ OPT= -Os
+
+-R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) -DHDR_MALLOC_INCLUDE=\"hdr_redis_malloc.h\"
++R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(CPPFLAGS) -DHDR_MALLOC_INCLUDE=\"hdr_redis_malloc.h\"
+ R_LDFLAGS= $(LDFLAGS)
+ DEBUG= -g
+
+diff --git a/deps/linenoise/Makefile b/deps/linenoise/Makefile
+index 1dd894b..12ada21 100644
+--- a/deps/linenoise/Makefile
++++ b/deps/linenoise/Makefile
+@@ -6,7 +6,7 @@ R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS)
+ R_LDFLAGS= $(LDFLAGS)
+ DEBUG= -g
+
+-R_CC=$(CC) $(R_CFLAGS)
++R_CC=$(CC) $(R_CFLAGS) $(CPPFLAGS)
+ R_LD=$(CC) $(R_LDFLAGS)
+
+ linenoise.o: linenoise.h linenoise.c
+diff --git a/src/Makefile b/src/Makefile
+index e4f7d90..391fdbc 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -296,7 +296,7 @@ else
+ endef
+ endif
+
+-REDIS_CC=$(QUIET_CC)$(CC) $(FINAL_CFLAGS)
++REDIS_CC=$(QUIET_CC)$(CC) $(FINAL_CFLAGS) $(CPPFLAGS)
+ REDIS_LD=$(QUIET_LINK)$(CC) $(FINAL_LDFLAGS)
+ REDIS_INSTALL=$(QUIET_INSTALL)$(INSTALL)
+
diff --git a/debian/patches/0003-Use-get_current_dir_name-over-PATHMAX.patch b/debian/patches/0003-Use-get_current_dir_name-over-PATHMAX.patch
new file mode 100644
index 0000000..0b97ebd
--- /dev/null
+++ b/debian/patches/0003-Use-get_current_dir_name-over-PATHMAX.patch
@@ -0,0 +1,53 @@
+From: Chris Lamb <lamby@debian.org>
+Date: Wed, 24 Jan 2018 22:06:35 +1100
+Subject: Use get_current_dir_name over PATHMAX, etc.
+
+---
+ src/rdb.c | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/src/rdb.c b/src/rdb.c
+index 710e04f..4039954 100644
+--- a/src/rdb.c
++++ b/src/rdb.c
+@@ -1392,7 +1392,6 @@ werr: /* Write error. */
+ /* Save the DB on disk. Return C_ERR on error, C_OK on success. */
+ int rdbSave(int req, char *filename, rdbSaveInfo *rsi) {
+ char tmpfile[256];
+- char cwd[MAXPATHLEN]; /* Current working dir path for error messages. */
+ FILE *fp = NULL;
+ rio rdb;
+ int error = 0;
+@@ -1402,13 +1401,14 @@ int rdbSave(int req, char *filename, rdbSaveInfo *rsi) {
+ fp = fopen(tmpfile,"w");
+ if (!fp) {
+ char *str_err = strerror(errno);
+- char *cwdp = getcwd(cwd,MAXPATHLEN);
++ char *cwdp = get_current_dir_name();
+ serverLog(LL_WARNING,
+ "Failed opening the temp RDB file %s (in server root dir %s) "
+ "for saving: %s",
+ tmpfile,
+ cwdp ? cwdp : "unknown",
+ str_err);
++ zfree(cwdp);
+ return C_ERR;
+ }
+
+@@ -1434,7 +1434,7 @@ int rdbSave(int req, char *filename, rdbSaveInfo *rsi) {
+ * if the generate DB file is ok. */
+ if (rename(tmpfile,filename) == -1) {
+ char *str_err = strerror(errno);
+- char *cwdp = getcwd(cwd,MAXPATHLEN);
++ char *cwdp = get_current_dir_name();
+ serverLog(LL_WARNING,
+ "Error moving temp DB file %s on the final "
+ "destination %s (in server root dir %s): %s",
+@@ -1444,6 +1444,7 @@ int rdbSave(int req, char *filename, rdbSaveInfo *rsi) {
+ str_err);
+ unlink(tmpfile);
+ stopSaving(0);
++ zfree(cwdp);
+ return C_ERR;
+ }
+ if (fsyncFileDir(filename) == -1) { err_op = "fsyncFileDir"; goto werr; }
diff --git a/debian/patches/0004-Add-support-for-USE_SYSTEM_JEMALLOC-flag.patch b/debian/patches/0004-Add-support-for-USE_SYSTEM_JEMALLOC-flag.patch
new file mode 100644
index 0000000..f23031c
--- /dev/null
+++ b/debian/patches/0004-Add-support-for-USE_SYSTEM_JEMALLOC-flag.patch
@@ -0,0 +1,139 @@
+From: Chris Lamb <lamby@debian.org>
+Date: Sat, 25 Aug 2018 17:52:13 +0200
+Subject: Add support for USE_SYSTEM_JEMALLOC flag.
+
+Forwarded: https://github.com/antirez/redis/pull/5279
+---
+ deps/Makefile | 2 ++
+ src/Makefile | 5 +++++
+ src/debug.c | 4 ++++
+ src/object.c | 5 +++++
+ src/sds.c | 4 ++++
+ src/zmalloc.c | 10 ++++++++++
+ src/zmalloc.h | 4 ++++
+ 7 files changed, 34 insertions(+)
+
+diff --git a/deps/Makefile b/deps/Makefile
+index 83ac557..5542a6c 100644
+--- a/deps/Makefile
++++ b/deps/Makefile
+@@ -39,7 +39,9 @@ distclean:
+ -(cd hiredis && $(MAKE) clean) > /dev/null || true
+ -(cd linenoise && $(MAKE) clean) > /dev/null || true
+ -(cd lua && $(MAKE) clean) > /dev/null || true
++ifneq ($(USE_SYSTEM_JEMALLOC),yes)
+ -(cd jemalloc && [ -f Makefile ] && $(MAKE) distclean) > /dev/null || true
++endif
+ -(cd hdr_histogram && $(MAKE) clean) > /dev/null || true
+ -(rm -f .make-*)
+
+diff --git a/src/Makefile b/src/Makefile
+index 391fdbc..4d81df9 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -262,10 +262,15 @@ ifeq ($(MALLOC),tcmalloc_minimal)
+ endif
+
+ ifeq ($(MALLOC),jemalloc)
++ifeq ($(USE_SYSTEM_JEMALLOC),yes)
++ FINAL_CFLAGS+= -DUSE_JEMALLOC -I/usr/include/jemalloc/include
++ FINAL_LIBS := -ljemalloc $(FINAL_LIBS)
++else
+ DEPENDENCY_TARGETS+= jemalloc
+ FINAL_CFLAGS+= -DUSE_JEMALLOC -I../deps/jemalloc/include
+ FINAL_LIBS := ../deps/jemalloc/lib/libjemalloc.a $(FINAL_LIBS)
+ endif
++endif
+
+ ifeq ($(BUILD_TLS),yes)
+ FINAL_CFLAGS+=-DUSE_OPENSSL $(OPENSSL_CFLAGS)
+diff --git a/src/debug.c b/src/debug.c
+index dffa986..294d46f 100644
+--- a/src/debug.c
++++ b/src/debug.c
+@@ -72,6 +72,10 @@ void printCrashReport(void);
+ void bugReportEnd(int killViaSignal, int sig);
+ void logStackTrace(void *eip, int uplevel);
+
++#if defined(USE_JEMALLOC) && (USE_SYSTEM_JEMALLOC == yes)
++#define je_mallctl mallctl
++#endif
++
+ /* ================================= Debugging ============================== */
+
+ /* Compute the sha1 of string at 's' with 'len' bytes long.
+diff --git a/src/object.c b/src/object.c
+index 1a21579..5bd4144 100644
+--- a/src/object.c
++++ b/src/object.c
+@@ -37,6 +37,11 @@
+ #define strtold(a,b) ((long double)strtod((a),(b)))
+ #endif
+
++#if defined(USE_JEMALLOC) && (USE_SYSTEM_JEMALLOC == yes)
++#define je_mallctl mallctl
++#define je_malloc_stats_print malloc_stats_print
++#endif
++
+ /* ===================== Creation and parsing of objects ==================== */
+
+ robj *createObject(int type, void *ptr) {
+diff --git a/src/sds.c b/src/sds.c
+index 71490d5..fbff91e 100644
+--- a/src/sds.c
++++ b/src/sds.c
+@@ -39,6 +39,10 @@
+ #include "sds.h"
+ #include "sdsalloc.h"
+
++#if USE_SYSTEM_JEMALLOC == yes
++#define je_nallocx nallocx
++#endif
++
+ const char *SDS_NOINIT = "SDS_NOINIT";
+
+ static inline int sdsHdrSize(char type) {
+diff --git a/src/zmalloc.c b/src/zmalloc.c
+index 0ace61f..fec8478 100644
+--- a/src/zmalloc.c
++++ b/src/zmalloc.c
+@@ -79,6 +79,15 @@ void zlibc_free(void *ptr) {
+ #define realloc(ptr,size) tc_realloc(ptr,size)
+ #define free(ptr) tc_free(ptr)
+ #elif defined(USE_JEMALLOC)
++#if USE_SYSTEM_JEMALLOC == yes
++#define malloc(size) malloc(size)
++#define calloc(count,size) calloc(count,size)
++#define realloc(ptr,size) realloc(ptr,size)
++#define free(ptr) free(ptr)
++#define mallocx(size,flags) mallocx(size,flags)
++#define dallocx(ptr,flags) dallocx(ptr,flags)
++#define je_mallctl mallctl
++#else
+ #define malloc(size) je_malloc(size)
+ #define calloc(count,size) je_calloc(count,size)
+ #define realloc(ptr,size) je_realloc(ptr,size)
+@@ -86,6 +95,7 @@ void zlibc_free(void *ptr) {
+ #define mallocx(size,flags) je_mallocx(size,flags)
+ #define dallocx(ptr,flags) je_dallocx(ptr,flags)
+ #endif
++#endif
+
+ #define update_zmalloc_stat_alloc(__n) atomicIncr(used_memory,(__n))
+ #define update_zmalloc_stat_free(__n) atomicDecr(used_memory,(__n))
+diff --git a/src/zmalloc.h b/src/zmalloc.h
+index efab1a1..7826053 100644
+--- a/src/zmalloc.h
++++ b/src/zmalloc.h
+@@ -50,7 +50,11 @@
+ #include <jemalloc/jemalloc.h>
+ #if (JEMALLOC_VERSION_MAJOR == 2 && JEMALLOC_VERSION_MINOR >= 1) || (JEMALLOC_VERSION_MAJOR > 2)
+ #define HAVE_MALLOC_SIZE 1
++#if USE_SYSTEM_JEMALLOC == yes
++#define zmalloc_size(p) malloc_usable_size(p)
++#else
+ #define zmalloc_size(p) je_malloc_usable_size(p)
++#endif
+ #else
+ #error "Newer version of jemalloc required"
+ #endif
diff --git a/debian/patches/debian-packaging/0001-Set-Debian-configuration-defaults.patch b/debian/patches/debian-packaging/0001-Set-Debian-configuration-defaults.patch
new file mode 100644
index 0000000..dffad10
--- /dev/null
+++ b/debian/patches/debian-packaging/0001-Set-Debian-configuration-defaults.patch
@@ -0,0 +1,93 @@
+From: Chris Lamb <lamby@debian.org>
+Date: Tue, 10 Oct 2017 09:56:42 +0100
+Subject: Set Debian configuration defaults
+
+Forwarded: not-needed
+---
+ redis.conf | 10 +++++-----
+ sentinel.conf | 8 ++++----
+ 2 files changed, 9 insertions(+), 9 deletions(-)
+
+diff --git a/redis.conf b/redis.conf
+index 0431c37..f0491a3 100644
+--- a/redis.conf
++++ b/redis.conf
+@@ -152,7 +152,7 @@ tcp-backlog 511
+ # incoming connections. There is no default, so Redis will not listen
+ # on a unix socket when not specified.
+ #
+-# unixsocket /run/redis.sock
++# unixsocket /run/redis/redis-server.sock
+ # unixsocketperm 700
+
+ # Close the connection after a client is idle for N seconds (0 to disable)
+@@ -306,7 +306,7 @@ tcp-keepalive 300
+ # By default Redis does not run as a daemon. Use 'yes' if you need it.
+ # Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
+ # When Redis is supervised by upstart or systemd, this parameter has no impact.
+-daemonize no
++daemonize yes
+
+ # If you run Redis from upstart or systemd, Redis can interact with your
+ # supervision tree. Options:
+@@ -338,7 +338,7 @@ daemonize no
+ #
+ # Note that on modern Linux systems "/run/redis.pid" is more conforming
+ # and should be used instead.
+-pidfile /var/run/redis_6379.pid
++pidfile /run/redis/redis-server.pid
+
+ # Specify the server verbosity level.
+ # This can be one of:
+@@ -351,7 +351,7 @@ loglevel notice
+ # Specify the log file name. Also the empty string can be used to force
+ # Redis to log on the standard output. Note that if you use standard
+ # output for logging but daemonize, logs will be sent to /dev/null
+-logfile ""
++logfile /var/log/redis/redis-server.log
+
+ # To enable logging to the system logger, just set 'syslog-enabled' to yes,
+ # and optionally update the other syslog parameters to suit your needs.
+@@ -501,7 +501,7 @@ rdb-del-sync-files no
+ # The Append Only File will also be created inside this directory.
+ #
+ # Note that you must specify a directory here, not a file name.
+-dir ./
++dir /var/lib/redis
+
+ ################################# REPLICATION #################################
+
+diff --git a/sentinel.conf b/sentinel.conf
+index bba9b92..8070b24 100644
+--- a/sentinel.conf
++++ b/sentinel.conf
+@@ -12,17 +12,17 @@ port 26379
+ # By default Redis Sentinel does not run as a daemon. Use 'yes' if you need it.
+ # Note that Redis will write a pid file in /var/run/redis-sentinel.pid when
+ # daemonized.
+-daemonize no
++daemonize yes
+
+ # When running daemonized, Redis Sentinel writes a pid file in
+ # /var/run/redis-sentinel.pid by default. You can specify a custom pid file
+ # location here.
+-pidfile /var/run/redis-sentinel.pid
++pidfile /run/sentinel/redis-sentinel.pid
+
+ # Specify the log file name. Also the empty string can be used to force
+ # Sentinel to log on the standard output. Note that if you use standard
+ # output for logging but daemonize, logs will be sent to /dev/null
+-logfile ""
++logfile /var/log/redis/redis-sentinel.log
+
+ # sentinel announce-ip <ip>
+ # sentinel announce-port <port>
+@@ -51,7 +51,7 @@ logfile ""
+ # For Redis Sentinel to chdir to /tmp at startup is the simplest thing
+ # for the process to don't interfere with administrative tasks such as
+ # unmounting filesystems.
+-dir /tmp
++dir /var/lib/redis
+
+ # sentinel monitor <master-name> <ip> <redis-port> <quorum>
+ #
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4dba69b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,5 @@
+debian-packaging/0001-Set-Debian-configuration-defaults.patch
+0001-Fix-FTBFS-on-kFreeBSD.patch
+0002-Add-CPPFLAGS-to-upstream-makefiles.patch
+0003-Use-get_current_dir_name-over-PATHMAX.patch
+0004-Add-support-for-USE_SYSTEM_JEMALLOC-flag.patch
diff --git a/debian/redis-benchmark.1 b/debian/redis-benchmark.1
new file mode 100644
index 0000000..fce1d2d
--- /dev/null
+++ b/debian/redis-benchmark.1
@@ -0,0 +1,68 @@
+.TH REDIS-BENCHMARK 1 "June 28, 2010"
+.SH NAME
+redis-benchmark \- Benechmark a Redis instance
+.SH SYNOPSIS
+.B redis-benchmark
+[\-h <host>] [\-p <port>] [\-c <clients>] [\-n <requests]> [\-k <boolean>]
+.SH DESCRIPTION
+Redis is a key-value database. It is similar to memcached but the dataset is
+not volatile and other datatypes (such as lists and sets) are natively
+supported.
+.SH OPTIONS
+.TP
+\-h hostname
+Server hostname (default 127.0.0.1)
+.TP
+\-p port
+Server port (default 6379)
+.TP
+\-s socket
+Server socket (overrides host and port)
+.TP
+\-a password
+Password for Redis Auth
+.TP
+\-c clients
+Number of parallel connections (default 50)
+.TP
+\-n requests
+Total number of requests (default 100000)
+.TP
+\-d size
+Data size of SET/GET value in bytes (default 2)
+.TP
+\-dbnum db
+SELECT the specified db number (default 0)
+.TP
+\-k boolean
+1=keep alive 0=reconnect (default 1)
+.TP
+\-r keyspacelen
+Use random keys for SET/GET/INCR, random values for SADD Using this option the
+benchmark will get/set keys in the form mykey_rand000000012456 instead of
+constant keys, the <keyspacelen> argument determines the max number of values
+for the random number. For instance if set to 10 only rand000000000000 -
+rand000000000009 range will be allowed.
+.TP
+\-P numreq
+Pipeline <numreq> requests. Default 1 (no pipeline).
+.TP
+\-q
+Quiet. Just show query/sec values
+.TP
+\-\-csv
+Ourput in CSV format
+.TP
+\-l
+Loop. Run the tests forever
+.TP
+\-I
+Idle mode. Just open N idle connections and wait.
+.TP
+\-D
+Debug mode. more verbose.
+.SH AUTHOR
+\fBredis-benchmark\fP was written by Salvatore Sanfilippo.
+.PP
+This manual page was written by Chris Lamb <lamby@debian.org> for the Debian
+project (but may be used by others).
diff --git a/debian/redis-check-aof.1 b/debian/redis-check-aof.1
new file mode 100644
index 0000000..b214da5
--- /dev/null
+++ b/debian/redis-check-aof.1
@@ -0,0 +1,17 @@
+.TH REDIS-CHECK-AOF 1 "December 13, 2018"
+.SH NAME
+redis-check-aof \- Check integrity of a Redis .AOF file
+.SH SYNOPSIS
+.B redis-check-aof
+filename
+.SH DESCRIPTION
+Redis is a key-value database. It is similar to memcached but the dataset is
+not volatile and other datatypes (such as lists and sets) are natively
+supported.
+.PP
+This utility checks the integrity of a dumped .AOF file.
+.SH AUTHOR
+\fBredis-check-aof\fP was written by Salvatore Sanfilippo.
+.PP
+This manual page was written by Chris Lamb <lamby@debian.org> for the Debian
+project (but may be used by others).
diff --git a/debian/redis-check-rdb.1 b/debian/redis-check-rdb.1
new file mode 100644
index 0000000..40f1f69
--- /dev/null
+++ b/debian/redis-check-rdb.1
@@ -0,0 +1,17 @@
+.TH REDIS-CHECK-RDB 1 "December 13, 2018"
+.SH NAME
+redis-check-rdb \- Check integrity of Redis dumped database file
+.SH SYNOPSIS
+.B redis-check-rdb
+filename
+.SH DESCRIPTION
+Redis is a key-value database. It is similar to memcached but the dataset is
+not volatile and other datatypes (such as lists and sets) are natively
+supported.
+.PP
+This utility checks the integrity of a dumped database file.
+.SH AUTHOR
+\fBredis-check-rdb\fP was written by Salvatore Sanfilippo.
+.PP
+This manual page was written by Chris Lamb <lamby@debian.org> for the Debian
+project (but may be used by others).
diff --git a/debian/redis-cli.1 b/debian/redis-cli.1
new file mode 100644
index 0000000..75f7a2e
--- /dev/null
+++ b/debian/redis-cli.1
@@ -0,0 +1,19 @@
+.TH REDIS-CLI 1 "January 13, 2010"
+.SH NAME
+redis-cli \- Command-line client to redis-server
+.SH SYNOPSIS
+.B redis-cli
+.RI [options]
+.SH DESCRIPTION
+Redis is a key-value database. It is similar to memcached but the dataset is
+not volatile and other datatypes (such as lists and sets) are natively
+supported.
+.PP
+\fBredis-cli\fP provides a simple command-line interface to a Redis server.
+.SH OPTIONS
+See \fBredis-doc\fP for more information on the commands Redis accepts.
+.SH AUTHOR
+\fBredis-cli\fP was written by Salvatore Sanfilippo.
+.PP
+This manual page was written by Chris Lamb <lamby@debian.org> for the Debian
+project (but may be used by others).
diff --git a/debian/redis-sentinel.1 b/debian/redis-sentinel.1
new file mode 100644
index 0000000..7f9a6b6
--- /dev/null
+++ b/debian/redis-sentinel.1
@@ -0,0 +1,23 @@
+.TH REDIS-SENTINEL 1 "March 20, 2009"
+.SH NAME
+redis-sentinel \- Persistent key-value database (cluster mode)
+.SH SYNOPSIS
+.B redis-sentinel
+.RI configfile
+.SH DESCRIPTION
+Redis is a key-value database. It is similar to memcached but the dataset is
+not volatile and other datatypes (such as lists and sets) are natively
+supported.
+.PP
+.SH OPTIONS
+.IP "configfile"
+Read options from specified configuration file.
+.SH NOTES
+On Debian GNU/Linux systems, \fBredis-sentinel\fP is typically started via the
+\fB/etc/init.d/redis-sentinel\fP initscript, not manually. This defaults to using
+\fB/etc/redis/sentinel.conf\fP as a configuration file.
+.SH AUTHOR
+\fBredis-sentinel\fP was written by Salvatore Sanfilippo.
+.PP
+This manual page was written by Chris Lamb <lamby@debian.org> for the Debian
+project (but may be used by others).
diff --git a/debian/redis-sentinel.default b/debian/redis-sentinel.default
new file mode 100755
index 0000000..b46f5e6
--- /dev/null
+++ b/debian/redis-sentinel.default
@@ -0,0 +1,8 @@
+# redis-sentinel configure options
+
+# ULIMIT: Call ulimit -n with this argument prior to invoking Redis Sentinel
+# itself. This may be required for high-concurrency environments. Redis
+# Sentinel itself cannot alter its limits as it is not being run as root.
+# (default: 65536)
+#
+ULIMIT=65536
diff --git a/debian/redis-sentinel.init b/debian/redis-sentinel.init
new file mode 100755
index 0000000..06777c5
--- /dev/null
+++ b/debian/redis-sentinel.init
@@ -0,0 +1,89 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: redis-sentinel
+# Required-Start: $syslog $remote_fs
+# Required-Stop: $syslog $remote_fs
+# Should-Start: $local_fs
+# Should-Stop: $local_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: redis-sentinel - Persistent key-value db monitor
+# Description: redis-sentinel - Persistent key-value db monitor
+### END INIT INFO
+
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/bin/redis-sentinel
+DAEMON_ARGS=/etc/redis/sentinel.conf
+NAME=redis-sentinel
+DESC=redis-sentinel
+
+RUNDIR=/run/sentinel
+PIDFILE=$RUNDIR/redis-sentinel.pid
+
+test -x $DAEMON || exit 0
+
+if [ -r /etc/default/$NAME ]
+then
+ . /etc/default/$NAME
+fi
+
+. /lib/lsb/init-functions
+
+set -e
+
+if [ "$(id -u)" != "0" ]
+then
+ log_failure_msg "Must be run as root."
+ exit 1
+fi
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: "
+ mkdir -p $RUNDIR
+ touch $PIDFILE
+ chown redis:redis $RUNDIR $PIDFILE
+ chmod 755 $RUNDIR
+
+ if [ -n "$ULIMIT" ]
+ then
+ ulimit -n $ULIMIT || true
+ fi
+
+ if start-stop-daemon --start --quiet --oknodo --umask 007 --pidfile $PIDFILE --chuid redis:redis --exec $DAEMON -- $DAEMON_ARGS
+ then
+ echo "$NAME."
+ else
+ echo "failed"
+ fi
+ ;;
+ stop)
+ echo -n "Stopping $DESC: "
+
+ if start-stop-daemon --stop --retry forever/TERM/1 --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON
+ then
+ echo "$NAME."
+ else
+ echo "failed"
+ fi
+ rm -f $PIDFILE
+ sleep 1
+ ;;
+
+ restart|force-reload)
+ ${0} stop
+ ${0} start
+ ;;
+
+ status)
+ status_of_proc -p ${PIDFILE} ${DAEMON} ${NAME}
+ ;;
+
+ *)
+ echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload|status}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/debian/redis-sentinel.install b/debian/redis-sentinel.install
new file mode 100644
index 0000000..14a7061
--- /dev/null
+++ b/debian/redis-sentinel.install
@@ -0,0 +1 @@
+sentinel.conf /etc/redis
diff --git a/debian/redis-sentinel.links b/debian/redis-sentinel.links
new file mode 100644
index 0000000..3d1f298
--- /dev/null
+++ b/debian/redis-sentinel.links
@@ -0,0 +1 @@
+usr/bin/redis-check-rdb usr/bin/redis-sentinel
diff --git a/debian/redis-sentinel.logrotate b/debian/redis-sentinel.logrotate
new file mode 100644
index 0000000..7eabf2a
--- /dev/null
+++ b/debian/redis-sentinel.logrotate
@@ -0,0 +1,8 @@
+/var/log/redis/redis-sentinel*.log {
+ weekly
+ missingok
+ rotate 12
+ compress
+ notifempty
+ delaycompress
+}
diff --git a/debian/redis-sentinel.maintscript b/debian/redis-sentinel.maintscript
new file mode 100644
index 0000000..f3b1a42
--- /dev/null
+++ b/debian/redis-sentinel.maintscript
@@ -0,0 +1,4 @@
+rm_conffile /etc/redis/redis-sentinel.post-down.d/00_example 4:4.0.2-3~
+rm_conffile /etc/redis/redis-sentinel.post-up.d/00_example 4:4.0.2-3~
+rm_conffile /etc/redis/redis-sentinel.pre-down.d/00_example 4:4.0.2-3~
+rm_conffile /etc/redis/redis-sentinel.pre-up.d/00_example 4:4.0.2-3~
diff --git a/debian/redis-sentinel.manpages b/debian/redis-sentinel.manpages
new file mode 100644
index 0000000..e90a830
--- /dev/null
+++ b/debian/redis-sentinel.manpages
@@ -0,0 +1 @@
+debian/redis-sentinel.1
diff --git a/debian/redis-sentinel.postinst b/debian/redis-sentinel.postinst
new file mode 100644
index 0000000..96a7bf7
--- /dev/null
+++ b/debian/redis-sentinel.postinst
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -eu
+
+USER="redis"
+GROUP="$USER"
+CONFFILE="/etc/redis/sentinel.conf"
+
+if [ "$1" = "configure" ]
+then
+ if ! dpkg-statoverride --list ${CONFFILE} >/dev/null 2>&1
+ then
+ dpkg-statoverride --update --add ${USER} ${GROUP} 640 ${CONFFILE}
+ fi
+fi
+
+#DEBHELPER#
+
+if [ "$1" = "configure" ]
+then
+ find /etc/redis -maxdepth 1 -type d -name 'redis-sentinel.*.d' -empty -delete
+fi
+
+exit 0
diff --git a/debian/redis-sentinel.postrm b/debian/redis-sentinel.postrm
new file mode 100644
index 0000000..6c9d422
--- /dev/null
+++ b/debian/redis-sentinel.postrm
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -eu
+
+CONFFILE="/etc/redis/sentinel.conf"
+
+if [ "$1" = "purge" ]
+then
+ dpkg-statoverride --remove ${CONFFILE} || test $? -eq 2
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/redis-server.1 b/debian/redis-server.1
new file mode 100644
index 0000000..180dc60
--- /dev/null
+++ b/debian/redis-server.1
@@ -0,0 +1,23 @@
+.TH REDIS-SERVER 1 "March 20, 2009"
+.SH NAME
+redis-server \- Persistent key-value database
+.SH SYNOPSIS
+.B redis-server
+.RI configfile
+.SH DESCRIPTION
+Redis is a key-value database. It is similar to memcached but the dataset is
+not volatile and other datatypes (such as lists and sets) are natively
+supported.
+.PP
+.SH OPTIONS
+.IP "configfile"
+Read options from specified configuration file.
+.SH NOTES
+On Debian GNU/Linux systems, \fBredis-server\fP is typically started via the
+\fB/etc/init.d/redis-server\fP initscript, not manually. This defaults to using
+\fB/etc/redis/redis.conf\fP as a configuration file.
+.SH AUTHOR
+\fBredis-server\fP was written by Salvatore Sanfilippo.
+.PP
+This manual page was written by Chris Lamb <lamby@debian.org> for the Debian
+project (but may be used by others).
diff --git a/debian/redis-server.default b/debian/redis-server.default
new file mode 100755
index 0000000..f98f6c1
--- /dev/null
+++ b/debian/redis-server.default
@@ -0,0 +1,7 @@
+# redis-server configure options
+
+# ULIMIT: Call ulimit -n with this argument prior to invoking Redis itself.
+# This may be required for high-concurrency environments. Redis itself cannot
+# alter its limits as it is not being run as root. (default: 65536)
+#
+ULIMIT=65536
diff --git a/debian/redis-server.docs b/debian/redis-server.docs
new file mode 100644
index 0000000..6ebd10a
--- /dev/null
+++ b/debian/redis-server.docs
@@ -0,0 +1,2 @@
+MANIFESTO
+README.md
diff --git a/debian/redis-server.init b/debian/redis-server.init
new file mode 100755
index 0000000..6217553
--- /dev/null
+++ b/debian/redis-server.init
@@ -0,0 +1,89 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: redis-server
+# Required-Start: $syslog $remote_fs
+# Required-Stop: $syslog $remote_fs
+# Should-Start: $local_fs
+# Should-Stop: $local_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: redis-server - Persistent key-value db
+# Description: redis-server - Persistent key-value db
+### END INIT INFO
+
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/bin/redis-server
+DAEMON_ARGS=/etc/redis/redis.conf
+NAME=redis-server
+DESC=redis-server
+
+RUNDIR=/run/redis
+PIDFILE=$RUNDIR/redis-server.pid
+
+test -x $DAEMON || exit 0
+
+if [ -r /etc/default/$NAME ]
+then
+ . /etc/default/$NAME
+fi
+
+. /lib/lsb/init-functions
+
+set -e
+
+if [ "$(id -u)" != "0" ]
+then
+ log_failure_msg "Must be run as root."
+ exit 1
+fi
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: "
+ mkdir -p $RUNDIR
+ touch $PIDFILE
+ chown redis:redis $RUNDIR $PIDFILE
+ chmod 755 $RUNDIR
+
+ if [ -n "$ULIMIT" ]
+ then
+ ulimit -n $ULIMIT || true
+ fi
+
+ if start-stop-daemon --start --quiet --oknodo --umask 007 --pidfile $PIDFILE --chuid redis:redis --exec $DAEMON -- $DAEMON_ARGS
+ then
+ echo "$NAME."
+ else
+ echo "failed"
+ fi
+ ;;
+ stop)
+ echo -n "Stopping $DESC: "
+
+ if start-stop-daemon --stop --retry forever/TERM/1 --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON
+ then
+ echo "$NAME."
+ else
+ echo "failed"
+ fi
+ rm -f $PIDFILE
+ sleep 1
+ ;;
+
+ restart|force-reload)
+ ${0} stop
+ ${0} start
+ ;;
+
+ status)
+ status_of_proc -p ${PIDFILE} ${DAEMON} ${NAME}
+ ;;
+
+ *)
+ echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload|status}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/debian/redis-server.install b/debian/redis-server.install
new file mode 100644
index 0000000..14a9ca5
--- /dev/null
+++ b/debian/redis-server.install
@@ -0,0 +1 @@
+redis.conf /etc/redis
diff --git a/debian/redis-server.links b/debian/redis-server.links
new file mode 100644
index 0000000..a591b9e
--- /dev/null
+++ b/debian/redis-server.links
@@ -0,0 +1 @@
+usr/bin/redis-check-rdb usr/bin/redis-server
diff --git a/debian/redis-server.logrotate b/debian/redis-server.logrotate
new file mode 100644
index 0000000..34c1beb
--- /dev/null
+++ b/debian/redis-server.logrotate
@@ -0,0 +1,8 @@
+/var/log/redis/redis-server*.log {
+ weekly
+ missingok
+ rotate 12
+ compress
+ notifempty
+ delaycompress
+}
diff --git a/debian/redis-server.maintscript b/debian/redis-server.maintscript
new file mode 100644
index 0000000..4f78c94
--- /dev/null
+++ b/debian/redis-server.maintscript
@@ -0,0 +1,4 @@
+rm_conffile /etc/redis/redis-server.post-down.d/00_example 4:4.0.2-3~
+rm_conffile /etc/redis/redis-server.post-up.d/00_example 4:4.0.2-3~
+rm_conffile /etc/redis/redis-server.pre-down.d/00_example 4:4.0.2-3~
+rm_conffile /etc/redis/redis-server.pre-up.d/00_example 4:4.0.2-3~
diff --git a/debian/redis-server.manpages b/debian/redis-server.manpages
new file mode 100644
index 0000000..8165b8a
--- /dev/null
+++ b/debian/redis-server.manpages
@@ -0,0 +1 @@
+debian/redis-server.1
diff --git a/debian/redis-server.postinst b/debian/redis-server.postinst
new file mode 100644
index 0000000..93e38be
--- /dev/null
+++ b/debian/redis-server.postinst
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -eu
+
+USER="redis"
+GROUP="$USER"
+CONFFILE="/etc/redis/redis.conf"
+
+if [ "$1" = "configure" ]
+then
+ if ! dpkg-statoverride --list ${CONFFILE} >/dev/null 2>&1
+ then
+ dpkg-statoverride --update --add ${USER} ${GROUP} 640 ${CONFFILE}
+ fi
+fi
+
+#DEBHELPER#
+
+if [ "$1" = "configure" ]
+then
+ find /etc/redis -maxdepth 1 -type d -name 'redis-server.*.d' -empty -delete
+fi
+
+exit 0
diff --git a/debian/redis-server.postrm b/debian/redis-server.postrm
new file mode 100644
index 0000000..8375368
--- /dev/null
+++ b/debian/redis-server.postrm
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -eu
+
+CONFFILE="/etc/redis/redis.conf"
+
+if [ "${1}" = "purge" ]
+then
+ dpkg-statoverride --remove ${CONFFILE} || test $? -eq 2
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/redis-tools.examples b/debian/redis-tools.examples
new file mode 100644
index 0000000..7f796a1
--- /dev/null
+++ b/debian/redis-tools.examples
@@ -0,0 +1,2 @@
+src/redis-trib.rb
+utils/lru
diff --git a/debian/redis-tools.install b/debian/redis-tools.install
new file mode 100644
index 0000000..46dc3f1
--- /dev/null
+++ b/debian/redis-tools.install
@@ -0,0 +1,5 @@
+debian/bash_completion.d/* /usr/share/bash-completion/completions
+src/redis-benchmark /usr/bin
+src/redis-check-aof /usr/bin
+src/redis-check-rdb /usr/bin
+src/redis-cli /usr/bin
diff --git a/debian/redis-tools.manpages b/debian/redis-tools.manpages
new file mode 100644
index 0000000..ece17d3
--- /dev/null
+++ b/debian/redis-tools.manpages
@@ -0,0 +1,4 @@
+debian/redis-benchmark.1
+debian/redis-check-aof.1
+debian/redis-check-rdb.1
+debian/redis-cli.1
diff --git a/debian/redis-tools.postinst b/debian/redis-tools.postinst
new file mode 100644
index 0000000..cf61403
--- /dev/null
+++ b/debian/redis-tools.postinst
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+set -eu
+
+USER="redis"
+
+Setup_dir () {
+ DIR="${1}"
+ MODE="${2}"
+ GROUP="${3}"
+
+ mkdir -p ${DIR}
+
+ if ! dpkg-statoverride --list ${DIR} >/dev/null 2>&1
+ then
+ chown ${USER}:${GROUP} ${DIR}
+ chmod ${MODE} ${DIR}
+ fi
+}
+
+if [ "$1" = "configure" ]
+then
+ adduser \
+ --system \
+ --home /var/lib/redis \
+ --quiet \
+ --group \
+ ${USER} || true
+
+ Setup_dir /var/log/redis 2750 adm
+ Setup_dir /var/lib/redis 750 ${USER}
+ Setup_dir /etc/redis 2770 ${USER}
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/redis-tools.postrm b/debian/redis-tools.postrm
new file mode 100644
index 0000000..5d1f6e1
--- /dev/null
+++ b/debian/redis-tools.postrm
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -eu
+
+if [ "${1}" = "purge" ]
+then
+ userdel redis || true
+ rm -rf /var/lib/redis /var/log/redis /etc/redis
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b3510b9
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,50 @@
+#!/usr/bin/make -f
+
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
+export BUILD_TLS = yes
+export CFLAGS CPPFLAGS LDFLAGS
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_CFLAGS_MAINT_APPEND = -I/usr/include/liblzf
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,-no-as-needed -ldl -latomic -llzf
+
+# Build jemelloc in parallel
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ MAKEFLAGS += -j$(NUMJOBS)
+ export MAKEFLAGS
+endif
+
+%:
+ dh $@
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -f src/release.h debian/*.service
+
+override_dh_auto_build:
+ dh_auto_build -- V=1 USE_SYSTEM_JEMALLOC=yes USE_SYSTEMD=yes USE_JEMALLOC=yes
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ # Generate a root CA and server certificate for testing
+ ./utils/gen-test-certs.sh
+ # Avoid race conditions in upstream testsuite
+ ./runtest --clients 1 --verbose --dump-logs --tls || true
+ timeout 30m ./runtest-cluster --tls || true
+ ./runtest-sentinel || true
+ # Clean up after gen-test-certs.sh
+ rm -rf tests/tls || true
+ # Other cleanup
+ find tests/tmp ! -name .gitignore -type f -exec rm -rfv {} +
+endif
+
+override_dh_auto_install:
+ debian/bin/generate-systemd-service-files
+
+override_dh_compress:
+ dh_compress -Xredis-trib.rb
+
+override_dh_installchangelogs:
+ dh_installchangelogs --keep 00-RELEASENOTES
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..3fd4726
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,4 @@
+# Upstream do not provide signed tarballs.
+redis source: debian-watch-does-not-check-openpgp-signature
+redis source: maintainer-manual-page
+redis source: very-long-line-length-in-source-file
diff --git a/debian/tests/0001-redis-cli b/debian/tests/0001-redis-cli
new file mode 100755
index 0000000..1e4a051
--- /dev/null
+++ b/debian/tests/0001-redis-cli
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# Show the INFO from "redis-cli"
+
+set -eu
+
+service redis-server restart
+
+sleep 5
+
+redis-cli INFO
+redis-cli LOLWUT
diff --git a/debian/tests/0002-benchmark b/debian/tests/0002-benchmark
new file mode 100755
index 0000000..87b769b
--- /dev/null
+++ b/debian/tests/0002-benchmark
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# Run the benchmarking
+
+set -eu
+
+service redis-server restart
+
+sleep 5
+
+redis-benchmark -P 10
diff --git a/debian/tests/0003-redis-check-aof b/debian/tests/0003-redis-check-aof
new file mode 100755
index 0000000..fab3330
--- /dev/null
+++ b/debian/tests/0003-redis-check-aof
@@ -0,0 +1,5 @@
+#!/bin/sh
+#
+# Smoke test redis-check-aof
+
+redis-check-aof 2>&1 | grep -qsi usage:
diff --git a/debian/tests/0004-redis-check-rdb b/debian/tests/0004-redis-check-rdb
new file mode 100755
index 0000000..73d5de1
--- /dev/null
+++ b/debian/tests/0004-redis-check-rdb
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Test redis-check-rdb
+
+set -eu
+
+service redis-server restart
+
+sleep 5
+
+# Perform a synchronous save to ensure .rdb file eixsts
+redis-cli SAVE
+
+redis-check-rdb /var/lib/redis/dump.rdb
diff --git a/debian/tests/0005-cjson b/debian/tests/0005-cjson
new file mode 100755
index 0000000..cc07c3c
--- /dev/null
+++ b/debian/tests/0005-cjson
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# Check we can load/use the cjson extension.
+
+set -eu
+
+service redis-server restart
+
+sleep 5
+
+redis-cli EVAL 'cjson.decode("{}")' 0
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..8161a2d
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,14 @@
+Tests: 0001-redis-cli
+Restrictions: needs-root
+
+Tests: 0002-benchmark
+Restrictions: needs-root
+
+Tests: 0003-redis-check-aof
+Restrictions: needs-root
+
+Tests: 0004-redis-check-rdb
+Restrictions: needs-root
+
+Tests: 0005-cjson
+Restrictions: needs-root
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..5bca1ec
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,5 @@
+---
+Bug-Database: https://github.com/redis/redis/issues
+Bug-Submit: https://github.com/redis/redis/issues/new
+Repository: https://github.com/redis/redis.git
+Repository-Browse: https://github.com/redis/redis
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..e5073ee
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=4
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*@ARCHIVE_EXT@)%@PACKAGE@-$1%" \
+ https://github.com/redis/redis/tags \
+ (?:.*?/)?v?(7\.0\.\d+)@ARCHIVE_EXT@