pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/redis/patches redis: ... and new patches



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9752f539ffbc
branches:  trunk
changeset: 388738:9752f539ffbc
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Dec 13 19:35:12 2018 +0000

description:
redis: ... and new patches

diffstat:

 databases/redis/patches/patch-redis.conf   |  42 ++++++++++++++++++++++++++++++
 databases/redis/patches/patch-src_Makefile |  36 +++++++++++++++++++++++++
 2 files changed, 78 insertions(+), 0 deletions(-)

diffs (86 lines):

diff -r 4676d7fca823 -r 9752f539ffbc databases/redis/patches/patch-redis.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/redis/patches/patch-redis.conf  Thu Dec 13 19:35:12 2018 +0000
@@ -0,0 +1,42 @@
+$NetBSD: patch-redis.conf,v 1.1 2018/12/13 19:35:12 adam Exp $
+
+Sane defaults for the config file.
+
+--- redis.conf.orig    2018-12-12 12:25:58.000000000 +0000
++++ redis.conf
+@@ -133,7 +133,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
+ 
+ # If you run Redis from upstart or systemd, Redis can interact with your
+ # supervision tree. Options:
+@@ -155,7 +155,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
+ 
+ # Specify the server verbosity level.
+ # This can be one of:
+@@ -168,7 +168,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 @REDIS_LOGDIR@/redis.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.
+@@ -260,7 +260,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.
+-dir ./
++dir @REDIS_DATADIR@ 
+ 
+ ################################# REPLICATION #################################
+ 
diff -r 4676d7fca823 -r 9752f539ffbc databases/redis/patches/patch-src_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/redis/patches/patch-src_Makefile        Thu Dec 13 19:35:12 2018 +0000
@@ -0,0 +1,36 @@
+$NetBSD: patch-src_Makefile,v 1.1 2018/12/13 19:35:12 adam Exp $
+
+Add DESTDIR support. Fix NetBSD support.
+
+--- src/Makefile.orig  2018-12-12 12:25:58.000000000 +0000
++++ src/Makefile
+@@ -30,8 +30,8 @@ WARN=-Wall -W -Wno-missing-field-initial
+ OPT=$(OPTIMIZATION)
+ 
+ PREFIX?=/usr/local
+-INSTALL_BIN=$(PREFIX)/bin
+-INSTALL=install
++INSTALL_BIN=$(DESTDIR)$(PREFIX)/bin
++INSTALL=$(BSD_INSTALL_PROGRAM)
+ 
+ # Default allocator defaults to Jemalloc if it's not an ARM
+ MALLOC=libc
+@@ -109,6 +109,10 @@ ifeq ($(uname_S),OpenBSD)
+       endif
+ 
+ else
++ifeq ($(uname_S),NetBSD)
++      # NetBSD
++      FINAL_LIBS+= -lpthread
++else
+ ifeq ($(uname_S),FreeBSD)
+       # FreeBSD
+       FINAL_LIBS+= -lpthread -lexecinfo
+@@ -126,6 +130,7 @@ endif
+ endif
+ endif
+ endif
++endif
+ # Include paths to dependencies
+ FINAL_CFLAGS+= -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src
+ 



Home | Main Index | Thread Index | Old Index