diff options
author | adam <adam@pkgsrc.org> | 2018-12-13 19:35:12 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2018-12-13 19:35:12 +0000 |
commit | bddd923be7a06d53ef89cbbcd8a65717210e05c1 (patch) | |
tree | 3a26e7e375fb7bf09b65c033af9ec4ccda12b067 /databases | |
parent | 883d1e9a70ac4fa68c26f87eca506ac7ca17a5ed (diff) | |
download | pkgsrc-bddd923be7a06d53ef89cbbcd8a65717210e05c1.tar.gz |
redis: ... and new patches
Diffstat (limited to 'databases')
-rw-r--r-- | databases/redis/patches/patch-redis.conf | 42 | ||||
-rw-r--r-- | databases/redis/patches/patch-src_Makefile | 36 |
2 files changed, 78 insertions, 0 deletions
diff --git a/databases/redis/patches/patch-redis.conf b/databases/redis/patches/patch-redis.conf new file mode 100644 index 00000000000..fdda8739318 --- /dev/null +++ b/databases/redis/patches/patch-redis.conf @@ -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 --git a/databases/redis/patches/patch-src_Makefile b/databases/redis/patches/patch-src_Makefile new file mode 100644 index 00000000000..a6ce90c1338 --- /dev/null +++ b/databases/redis/patches/patch-src_Makefile @@ -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 + |