summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2019-12-19 22:11:27 +0000
committerjoerg <joerg@pkgsrc.org>2019-12-19 22:11:27 +0000
commit7bf67b4ef3d874dfba93cb9c5bce701ad0c76de7 (patch)
tree8a9b0428c47febf59abfa178d7deefbc2a64765a
parenta6b0e0a635edabbe03bd062010d3bedfc19a3b92 (diff)
downloadpkgsrc-7bf67b4ef3d874dfba93cb9c5bce701ad0c76de7.tar.gz
Don't depend on TRUE/FALSE, they are gone in newer PostgreSQL.
-rw-r--r--databases/postgresql-redislog/distinfo3
-rw-r--r--databases/postgresql-redislog/patches/patch-redislog.c33
2 files changed, 35 insertions, 1 deletions
diff --git a/databases/postgresql-redislog/distinfo b/databases/postgresql-redislog/distinfo
index be59f00aab2..9572e456e07 100644
--- a/databases/postgresql-redislog/distinfo
+++ b/databases/postgresql-redislog/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2017/11/10 15:07:02 fhajny Exp $
+$NetBSD: distinfo,v 1.2 2019/12/19 22:11:27 joerg Exp $
SHA1 (redislog-0.2.tar.gz) = 080c1327996f3ff36416e6efe4481af005e49b00
RMD160 (redislog-0.2.tar.gz) = 6bbba7d732dc22ff4bef50c830afb654941e91e4
SHA512 (redislog-0.2.tar.gz) = 8e6c93147e95f69340ccb20965294a83411ada685cd75ba4a7a0be9380298f93f627f07acd8744b4ea65f3d905dba772b68e495ded3836e3a850ffbaec146553
Size (redislog-0.2.tar.gz) = 11684 bytes
+SHA1 (patch-redislog.c) = 0fe6ff78e30b6ef9c2a85b62092d796decb82732
diff --git a/databases/postgresql-redislog/patches/patch-redislog.c b/databases/postgresql-redislog/patches/patch-redislog.c
new file mode 100644
index 00000000000..df6993399e3
--- /dev/null
+++ b/databases/postgresql-redislog/patches/patch-redislog.c
@@ -0,0 +1,33 @@
+$NetBSD: patch-redislog.c,v 1.1 2019/12/19 22:11:27 joerg Exp $
+
+--- redislog.c.orig 2019-12-19 19:52:09.231017694 +0000
++++ redislog.c
+@@ -65,8 +65,8 @@ int Redislog_timeout = 1000;
+ char *Redislog_key = NULL;
+ int Redislog_min_error_statement = ERROR;
+ int Redislog_min_messages = WARNING;
+-bool Redislog_ship_to_redis_only = TRUE;
+-bool Redislog_shuffle_hosts = TRUE;
++bool Redislog_ship_to_redis_only = true;
++bool Redislog_shuffle_hosts = true;
+ char *Redislog_fields = NULL;
+
+ static MemoryContext redislog_cfg_memory_context;
+@@ -1353,7 +1353,7 @@ _PG_init(void)
+ "in case no Redis service is available. "
+ "By default it is set to false.",
+ &Redislog_ship_to_redis_only,
+- FALSE,
++ false,
+ PGC_SUSET,
+ GUC_NOT_IN_SAMPLE,
+ NULL,
+@@ -1365,7 +1365,7 @@ _PG_init(void)
+ "Shuffle the list of available Redis server in order to"
+ "balance events servers",
+ &Redislog_shuffle_hosts,
+- TRUE,
++ true,
+ PGC_SUSET,
+ GUC_NOT_IN_SAMPLE,
+ NULL,