Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.15 2015/08/13 07:43:40 fhajny Exp $
# $NetBSD: Makefile,v 1.23 2016/09/26 13:35:42 fhajny Exp $
DISTNAME= redis-3.0.3
DISTNAME= redis-3.2.4
CATEGORIES= databases
MASTER_SITES= http://download.redis.io/releases/
@@ -18,7 +18,7 @@ RCD_SCRIPTS+= redis
RCD_SCRIPT_SRC.redis= ${FILESDIR}/redis.sh
DOCDIR= share/doc/redis
DOCFILES+= 00-RELEASENOTES BUGS COPYING README
DOCFILES+= 00-RELEASENOTES BUGS COPYING README.md
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
INSTALLATION_DIRS+= bin ${DOCDIR} ${EGDIR} ${EGDIR}/utils ${EGDIR}/tests
CONF_FILES= ${EGDIR}/redis.conf.example ${PKG_SYSCONFDIR}/redis.conf

View File

@@ -1,14 +1,14 @@
@comment $NetBSD: PLIST,v 1.8 2015/06/09 12:17:56 fhajny Exp $
@comment $NetBSD: PLIST,v 1.11 2016/08/09 09:11:53 fhajny Exp $
bin/redis-benchmark
bin/redis-check-aof
bin/redis-check-dump
bin/redis-check-rdb
bin/redis-cli
bin/redis-sentinel
bin/redis-server
share/doc/redis/00-RELEASENOTES
share/doc/redis/BUGS
share/doc/redis/COPYING
share/doc/redis/README
share/doc/redis/README.md
share/examples/redis/redis.conf.example
share/examples/redis/tests/assets/default.conf
share/examples/redis/tests/assets/encodings.rdb
@@ -27,6 +27,7 @@ share/examples/redis/tests/cluster/tests/08-update-msg.tcl
share/examples/redis/tests/cluster/tests/09-pubsub.tcl
share/examples/redis/tests/cluster/tests/10-manual-failover.tcl
share/examples/redis/tests/cluster/tests/11-manual-takeover.tcl
share/examples/redis/tests/cluster/tests/12-replica-migration-2.tcl
share/examples/redis/tests/cluster/tests/helpers/onlydots.tcl
share/examples/redis/tests/cluster/tests/includes/init-tests.tcl
share/examples/redis/tests/cluster/tmp/.gitignore
@@ -52,6 +53,7 @@ share/examples/redis/tests/sentinel/tests/03-runtime-reconf.tcl
share/examples/redis/tests/sentinel/tests/04-slave-selection.tcl
share/examples/redis/tests/sentinel/tests/05-manual.tcl
share/examples/redis/tests/sentinel/tests/06-ckquorum.tcl
share/examples/redis/tests/sentinel/tests/07-down-conditions.tcl
share/examples/redis/tests/sentinel/tests/includes/init-tests.tcl
share/examples/redis/tests/sentinel/tmp/.gitignore
share/examples/redis/tests/support/cluster.tcl
@@ -64,12 +66,15 @@ share/examples/redis/tests/test_helper.tcl
share/examples/redis/tests/tmp/.gitignore
share/examples/redis/tests/unit/aofrw.tcl
share/examples/redis/tests/unit/auth.tcl
share/examples/redis/tests/unit/basic.tcl
share/examples/redis/tests/unit/bitfield.tcl
share/examples/redis/tests/unit/bitops.tcl
share/examples/redis/tests/unit/dump.tcl
share/examples/redis/tests/unit/expire.tcl
share/examples/redis/tests/unit/geo.tcl
share/examples/redis/tests/unit/hyperloglog.tcl
share/examples/redis/tests/unit/introspection-2.tcl
share/examples/redis/tests/unit/introspection.tcl
share/examples/redis/tests/unit/keyspace.tcl
share/examples/redis/tests/unit/latency-monitor.tcl
share/examples/redis/tests/unit/limits.tcl
share/examples/redis/tests/unit/maxmemory.tcl
@@ -86,28 +91,36 @@ share/examples/redis/tests/unit/scripting.tcl
share/examples/redis/tests/unit/slowlog.tcl
share/examples/redis/tests/unit/sort.tcl
share/examples/redis/tests/unit/type/hash.tcl
share/examples/redis/tests/unit/type/incr.tcl
share/examples/redis/tests/unit/type/list-2.tcl
share/examples/redis/tests/unit/type/list-3.tcl
share/examples/redis/tests/unit/type/list-common.tcl
share/examples/redis/tests/unit/type/list.tcl
share/examples/redis/tests/unit/type/set.tcl
share/examples/redis/tests/unit/type/string.tcl
share/examples/redis/tests/unit/type/zset.tcl
share/examples/redis/utils/build-static-symbols.tcl
share/examples/redis/utils/cluster_fail_time.tcl
share/examples/redis/utils/corrupt_rdb.c
share/examples/redis/utils/create-cluster/.gitignore
share/examples/redis/utils/create-cluster/README
share/examples/redis/utils/create-cluster/create-cluster
share/examples/redis/utils/generate-command-help.rb
share/examples/redis/utils/hashtable/README
share/examples/redis/utils/hashtable/rehashing.c
share/examples/redis/utils/hyperloglog/.gitignore
share/examples/redis/utils/hyperloglog/hll-err.rb
share/examples/redis/utils/hyperloglog/hll-gnuplot-graph.rb
share/examples/redis/utils/install_server.sh
share/examples/redis/utils/lru/README
share/examples/redis/utils/lru/test-lru.rb
share/examples/redis/utils/mkrelease.sh
share/examples/redis/utils/redis-copy.rb
share/examples/redis/utils/redis-sha1.rb
share/examples/redis/utils/redis_init_script
share/examples/redis/utils/redis_init_script.tpl
share/examples/redis/utils/releasetools/01_create_tarball.sh
share/examples/redis/utils/releasetools/02_upload_tarball.sh
share/examples/redis/utils/releasetools/03_test_release.sh
share/examples/redis/utils/releasetools/04_release_hash.sh
share/examples/redis/utils/speed-regression.tcl
share/examples/redis/utils/whatisdoing.sh

View File

@@ -1,10 +1,10 @@
$NetBSD: distinfo,v 1.14 2015/08/13 07:43:40 fhajny Exp $
$NetBSD: distinfo,v 1.25 2016/09/26 13:35:42 fhajny Exp $
SHA1 (redis-3.0.3.tar.gz) = 0e2d7707327986ae652df717059354b358b83358
RMD160 (redis-3.0.3.tar.gz) = dcd7dab26a58a217e05f033c00beb00873b81428
Size (redis-3.0.3.tar.gz) = 1360959 bytes
SHA1 (redis-3.2.4.tar.gz) = f0fe685cbfdb8c2d8c74613ad8a5a5f33fba40c9
RMD160 (redis-3.2.4.tar.gz) = 4f150ab4c41a113ce0c32ca695e654d82ba45348
SHA512 (redis-3.2.4.tar.gz) = de32ad9283102ee7d877cae8ea736d5876e4304b8ed46362f131e8b6dfb7aafa4ba3f9481c5f432f47633c9b3b0209797aa1b0976041f081db1924b93ed8ac96
Size (redis-3.2.4.tar.gz) = 1543743 bytes
SHA1 (patch-ab) = 21754f59e9f1013095fe47ccf7411b438385d558
SHA1 (patch-ac) = 5cd23cef32a010a07ae59fce283891b9f9722c05
SHA1 (patch-ac) = 1d848860a39af7a93a06eb8f3001fe89cb1bb3ad
SHA1 (patch-deps_hiredis_fmacros.h) = b9d7d0a82e6794078d997769db6e5572f981b445
SHA1 (patch-src_cluster.c) = 8efb650773412764449a49c4bc1d8f4924352e47
SHA1 (patch-src_object.c) = 30ffaec9c7e6135e3a5576cd1a35d7bcec668299

View File

@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest" name="@SMF_NAME@">
<service_bundle type="manifest" name="export">
<service name="@SMF_PREFIX@/@SMF_NAME@" type="service" version="1">
<create_default_instance enabled="false" />
<single_instance />
@@ -22,7 +22,6 @@
<property_group name="application" type="application">
<propval name="config_file" type="astring" value="@PKG_SYSCONFDIR@/redis.conf" />
</property_group>
<stability value="Evolving" />
<template>
<common_name>
<loctext xml:lang="C">Redis server</loctext>

View File

@@ -1,23 +1,27 @@
$NetBSD: patch-ac,v 1.4 2015/04/13 11:33:35 fhajny Exp $
$NetBSD: patch-ac,v 1.6 2016/06/19 21:28:58 fhajny Exp $
Sane defaults for the config file.
--- redis.conf.orig 2015-04-01 14:01:44.000000000 +0000
--- redis.conf.orig 2016-06-17 13:15:21.000000000 +0000
+++ redis.conf
@@ -34,11 +34,11 @@
@@ -125,7 +125,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.
-daemonize no
+daemonize yes
# When running daemonized, Redis writes a pid file in /var/run/redis.pid by
# default. You can specify a custom pid file location here.
-pidfile /var/run/redis.pid
# If you run Redis from upstart or systemd, Redis can interact with your
# supervision tree. Options:
@@ -147,7 +147,7 @@ supervised no
#
# Creating a pid file is best effort: if Redis is not able to create it
# nothing bad happens, the server will start and run normally.
-pidfile /var/run/redis_6379.pid
+pidfile @REDIS_PIDDIR@/redis.pid
# Accept connections on the specified port, default is 6379.
# If port 0 is specified Redis will not listen on a TCP socket.
@@ -100,7 +100,7 @@ loglevel notice
# Specify the server verbosity level.
# This can be one of:
@@ -160,7 +160,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
@@ -26,7 +30,7 @@ Sane defaults for the config file.
# To enable logging to the system logger, just set 'syslog-enabled' to yes,
# and optionally update the other syslog parameters to suit your needs.
@@ -184,7 +184,7 @@ dbfilename dump.rdb
@@ -244,7 +244,7 @@ dbfilename dump.rdb
# The Append Only File will also be created inside this directory.
#
# Note that you must specify a directory here, not a file name.

View File

@@ -1,26 +0,0 @@
$NetBSD: patch-src_cluster.c,v 1.1 2015/04/13 11:33:35 fhajny Exp $
Add fcntl support on SunOS.
--- src/cluster.c.orig 2015-04-01 14:01:44.000000000 +0000
+++ src/cluster.c
@@ -369,8 +369,19 @@ int clusterLockConfig(char *filename) {
return REDIS_ERR;
}
+#ifdef __sun
+ struct flock lock;
+ lock.l_start = 0;
+ lock.l_len = 0;
+ lock.l_type = F_WRLCK;
+ lock.l_whence = SEEK_SET;
+
+ if (fcntl(fd,F_SETLK,&lock) == -1) {
+ if (errno == EAGAIN) {
+#else
if (flock(fd,LOCK_EX|LOCK_NB) == -1) {
if (errno == EWOULDBLOCK) {
+#endif
redisLog(REDIS_WARNING,
"Sorry, the cluster configuration file %s is already used "
"by a different Redis Cluster node. Please make sure that "