summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2020-11-03 22:59:35 +0000
committertnn <tnn@pkgsrc.org>2020-11-03 22:59:35 +0000
commit05b3a65bb982af9acfc3e387a5acc9893745cddb (patch)
tree8a6b1c87faaa0ccaa790d92e9b23257ed9b9d0aa /databases
parentae0d04faddd5cd336fd48a366fc5a9fe8de8419a (diff)
downloadpkgsrc-05b3a65bb982af9acfc3e387a5acc9893745cddb.tar.gz
databases/postgresql-promscale_extension: import postgresql12-promscale_extension-0.1.1
This PostgreSQL extension contains support functions to improve the performance of Promscale. While Promscale will run without it, adding this extension will cause it to perform better.
Diffstat (limited to 'databases')
-rw-r--r--databases/postgresql-promscale_extension/DESCR3
-rw-r--r--databases/postgresql-promscale_extension/Makefile36
-rw-r--r--databases/postgresql-promscale_extension/PLIST6
-rw-r--r--databases/postgresql-promscale_extension/cargo-depends.mk27
-rw-r--r--databases/postgresql-promscale_extension/distinfo111
-rw-r--r--databases/postgresql-promscale_extension/patches/patch-Cargo.toml21
6 files changed, 204 insertions, 0 deletions
diff --git a/databases/postgresql-promscale_extension/DESCR b/databases/postgresql-promscale_extension/DESCR
new file mode 100644
index 00000000000..37dd563fcda
--- /dev/null
+++ b/databases/postgresql-promscale_extension/DESCR
@@ -0,0 +1,3 @@
+This PostgreSQL extension contains support functions to improve the performance
+of Promscale. While Promscale will run without it, adding this extension will
+cause it to perform better.
diff --git a/databases/postgresql-promscale_extension/Makefile b/databases/postgresql-promscale_extension/Makefile
new file mode 100644
index 00000000000..37d3b626b9e
--- /dev/null
+++ b/databases/postgresql-promscale_extension/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1 2020/11/03 22:59:35 tnn Exp $
+
+DISTNAME= promscale_extension-0.1.1
+PKGNAME= postgresql${PGSQL_VERSION}-${DISTNAME}
+CATEGORIES= databases
+MASTER_SITES= ${MASTER_SITE_GITHUB:=timescale/}
+GITHUB_PROJECT= promscale_extension
+
+# Depends on an unpublished crate. Can't use cargo.mk to fetch it.
+DISTFILES= ${DEFAULT_DISTFILES}
+DISTFILES+= timescale-extension-utils-rs-098962027183e1cd36acd6e1a47390f1cadbd33.tar.gz
+SITES.timescale-extension-utils-rs-098962027183e1cd36acd6e1a47390f1cadbd33.tar.gz+= -${MASTER_SITE_GITHUB:=timescale/}timescale-extension-utils-rs/archive/098962027183e1cd36acd6e1a47390f1caedbd33.tar.gz
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/timescale/timescaledb
+COMMENT= The Promscale extension for PostgreSQL
+LICENSE= apache-2.0
+
+DEPENDS+= postgresql${PGSQL_VERSION}-server>=0:../../databases/postgresql${PGSQL_VERSION}-server
+.include "cargo-depends.mk"
+
+PGSQL_VERSIONS_ACCEPTED= 12 11
+
+USE_TOOLS+= gmake
+
+post-extract:
+ mv ${WRKDIR}/*/timescale-extension-utils ${WRKSRC}
+ mv ${WRKDIR}/*/postgres-headers-rs ${WRKSRC}
+
+do-build: do-cargo-build
+ cd ${WRKSRC} && ${BUILD_MAKE_CMD}
+
+.include "../../lang/clang/buildlink3.mk"
+.include "../../lang/rust/cargo.mk"
+.include "../../mk/pgsql.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/postgresql-promscale_extension/PLIST b/databases/postgresql-promscale_extension/PLIST
new file mode 100644
index 00000000000..94757a60b32
--- /dev/null
+++ b/databases/postgresql-promscale_extension/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1 2020/11/03 22:59:35 tnn Exp $
+lib/postgresql/promscale.so
+share/postgresql/extension/promscale--0.1--${PKGVERSION}.sql
+share/postgresql/extension/promscale--${PKGVERSION}.sql
+share/postgresql/extension/promscale--0.1.sql
+share/postgresql/extension/promscale.control
diff --git a/databases/postgresql-promscale_extension/cargo-depends.mk b/databases/postgresql-promscale_extension/cargo-depends.mk
new file mode 100644
index 00000000000..149a8868f3d
--- /dev/null
+++ b/databases/postgresql-promscale_extension/cargo-depends.mk
@@ -0,0 +1,27 @@
+# $NetBSD: cargo-depends.mk,v 1.1 2020/11/03 22:59:35 tnn Exp $
+
+CARGO_CRATE_DEPENDS+= bindgen-0.54.0
+CARGO_CRATE_DEPENDS+= bitflags-1.2.1
+CARGO_CRATE_DEPENDS+= cc-1.0.57
+CARGO_CRATE_DEPENDS+= cexpr-0.4.0
+CARGO_CRATE_DEPENDS+= cfg-if-0.1.10
+CARGO_CRATE_DEPENDS+= clang-sys-0.29.3
+CARGO_CRATE_DEPENDS+= glob-0.3.0
+CARGO_CRATE_DEPENDS+= lazy_static-1.4.0
+CARGO_CRATE_DEPENDS+= lazycell-1.2.1
+CARGO_CRATE_DEPENDS+= libc-0.2.71
+CARGO_CRATE_DEPENDS+= libloading-0.5.2
+CARGO_CRATE_DEPENDS+= memchr-2.3.3
+CARGO_CRATE_DEPENDS+= nom-5.1.2
+CARGO_CRATE_DEPENDS+= peeking_take_while-0.1.2
+CARGO_CRATE_DEPENDS+= proc-macro2-1.0.18
+CARGO_CRATE_DEPENDS+= quote-1.0.7
+CARGO_CRATE_DEPENDS+= regex-1.3.9
+CARGO_CRATE_DEPENDS+= regex-syntax-0.6.18
+CARGO_CRATE_DEPENDS+= rustc-hash-1.1.0
+CARGO_CRATE_DEPENDS+= shlex-0.1.1
+CARGO_CRATE_DEPENDS+= unicode-xid-0.2.1
+CARGO_CRATE_DEPENDS+= version_check-0.9.2
+CARGO_CRATE_DEPENDS+= winapi-0.3.9
+CARGO_CRATE_DEPENDS+= winapi-i686-pc-windows-gnu-0.4.0
+CARGO_CRATE_DEPENDS+= winapi-x86_64-pc-windows-gnu-0.4.0
diff --git a/databases/postgresql-promscale_extension/distinfo b/databases/postgresql-promscale_extension/distinfo
new file mode 100644
index 00000000000..15260fc90c4
--- /dev/null
+++ b/databases/postgresql-promscale_extension/distinfo
@@ -0,0 +1,111 @@
+$NetBSD: distinfo,v 1.1 2020/11/03 22:59:35 tnn Exp $
+
+SHA1 (bindgen-0.54.0.crate) = 4165698210d42a3415c9c8cabfe5d62d40631511
+RMD160 (bindgen-0.54.0.crate) = d9dd6dc8395a7268a218d0b5de74e94fd7577134
+SHA512 (bindgen-0.54.0.crate) = 17053d27fc54cf905c2ec481f7e236352fca4e676c4dfaa260f36a357f4b54bec2a6a5983ca036055df236aa21e80f6650635462ce9e700cde4ca119a80c5da1
+Size (bindgen-0.54.0.crate) = 192585 bytes
+SHA1 (bitflags-1.2.1.crate) = b7d3a9b30a05e14231cb55271c6ffa45cc1279cd
+RMD160 (bitflags-1.2.1.crate) = 186b1893055eb415978ca547b0775aaa617a00fd
+SHA512 (bitflags-1.2.1.crate) = ad89b3798845e23737a620bba581c2ff1ff3e15bac12555c765e201d2c0b90ecea0cdbc5b5b1a3fa9858c385e8e041f8226f5acfae5bbbe9925643fff2bf3f0b
+Size (bitflags-1.2.1.crate) = 16745 bytes
+SHA1 (cc-1.0.57.crate) = bfcca21efb202b39200f00753a8f58aeb8ebbe00
+RMD160 (cc-1.0.57.crate) = 33c8dbf7333f9a84babb0500ab8f5f59eafa7ea2
+SHA512 (cc-1.0.57.crate) = 2613adbc4383d722f227789d190f93032907c03e93dd2f281e516ccbb782a739f166239a79478ec270682da6e28d1116ae68ea7eeb0c2ea85a6c0ef9128bb0bb
+Size (cc-1.0.57.crate) = 52820 bytes
+SHA1 (cexpr-0.4.0.crate) = 1cfb90442a1d597864ae85b71e8cf9414cc37359
+RMD160 (cexpr-0.4.0.crate) = fbdf7aba00f7e0bcc872896ed5ff0cc7c75824cc
+SHA512 (cexpr-0.4.0.crate) = 31592e38d80414cd07b25f7460775eafce1f91570abc1b94af7452961604574d1ca2374c0177875569b644f615a2b6fede273f37a6ee137f9adc9c0315c59b37
+Size (cexpr-0.4.0.crate) = 18023 bytes
+SHA1 (cfg-if-0.1.10.crate) = 3bd865df56c1f9266444b96351a1c30ffa5d9d75
+RMD160 (cfg-if-0.1.10.crate) = 896cd2fb2bb15582a174cb08c5e5ace6cc0be1c8
+SHA512 (cfg-if-0.1.10.crate) = 9d22616bfb4a75770a828a0a3cddac6787297a5fdc53eb17e25811cc94de717f2de8bd66d53c5d65ba1c83d8892aefee5ae758cf56a1ef0a0c3120f70b244339
+Size (cfg-if-0.1.10.crate) = 7933 bytes
+SHA1 (clang-sys-0.29.3.crate) = 04938a0f054bf93d87f1ac96bf7d1469c11223d2
+RMD160 (clang-sys-0.29.3.crate) = f26d7f2d53937228845e056f778a802ac486555c
+SHA512 (clang-sys-0.29.3.crate) = a34ae3e1963e64e3d5e28e2d665aca7caea1c0b604ffa184eaec8824d2fd8f8b4f48a6bf4721be8355411163a521e273218217deaac7adf1e4f8542244277bec
+Size (clang-sys-0.29.3.crate) = 36660 bytes
+SHA1 (glob-0.3.0.crate) = 3d1e2bea7c5711a9d015beb6d0ac102a0b9e9357
+RMD160 (glob-0.3.0.crate) = 398b7fbdd9080b51499c70494b5d654942da3a80
+SHA512 (glob-0.3.0.crate) = 87098ffdbc518442995c422120cef71f83069c8f88a1970ecec5105b0f284ddd92bcee929f5c230d5b90ae1ead7e1214c3eea26f4a8b26715a00c1ab8b09bc46
+Size (glob-0.3.0.crate) = 18724 bytes
+SHA1 (lazy_static-1.4.0.crate) = 3e8852a6967dc257753fe75a13112a04bc03dfc0
+RMD160 (lazy_static-1.4.0.crate) = 6c74661c140113ff3b1d660bba095259398bbb55
+SHA512 (lazy_static-1.4.0.crate) = e124c0521ec7c950f3c4a066821918da7a9c6e711115d98009ae7c351928fdddead852e7596fea5937a9c30e4e4ce8eee7099b20248b5d6e3b2494b6a6d88cb8
+Size (lazy_static-1.4.0.crate) = 10443 bytes
+SHA1 (lazycell-1.2.1.crate) = cdd694abd50b27e4d5d908cbaa6600e2cc159ab3
+RMD160 (lazycell-1.2.1.crate) = aa0807dc6f3190c61f6525b601ade584e5f55cfa
+SHA512 (lazycell-1.2.1.crate) = de74ccd6a3c32c360a12a51ba1d51d6530130396b37d63350a960956ae0ba13e9ac31e2bb70b61ddf055fdfbe7e559b20a38415cac3906839684905a01256ff2
+Size (lazycell-1.2.1.crate) = 11691 bytes
+SHA1 (libc-0.2.71.crate) = a8b5a882e9109e1b77fcffec400925e6a3e04a08
+RMD160 (libc-0.2.71.crate) = 71ad061fc54f0ccf5876c2ae14e4bf41d70196e6
+SHA512 (libc-0.2.71.crate) = b6f6eebc42817107aa2f94d426154c2449a2558646414464a31ee9d9dcf714e641fe6613b95ecf9e751d77102c0cedb74b35ca1f76c6df2231a5bad168de5e16
+Size (libc-0.2.71.crate) = 474209 bytes
+SHA1 (libloading-0.5.2.crate) = 60bedb03bc1643b1141f2942a07372467f2ea2c4
+RMD160 (libloading-0.5.2.crate) = 12169024c9c941f2989c91f3c07a5cf22af9b1b0
+SHA512 (libloading-0.5.2.crate) = d04cb1bb220c9364c02da4f360593907c875951fc0f6de5da1455bac4e96a470128409f77b21194fd6a87550f3ba00abe3b7a3426e7637acb62b80d61da46be4
+Size (libloading-0.5.2.crate) = 16420 bytes
+SHA1 (memchr-2.3.3.crate) = 281ad18584db887d60891187ddc121450deb8b90
+RMD160 (memchr-2.3.3.crate) = 631a407c058ed7be0319e86fd6dcd5ad8e9c15dc
+SHA512 (memchr-2.3.3.crate) = 922e05da920d0d94226857788878ee5e31518cd80d95ae57e1d7ecd233942c37d01565525db2f1dfdfd5b3b1f81b2c73eee058cbfd745cb4e1519518318df248
+Size (memchr-2.3.3.crate) = 22566 bytes
+SHA1 (nom-5.1.2.crate) = cb7257c087e9de88445ebacce5a0e3201da73a66
+RMD160 (nom-5.1.2.crate) = 79b87f8269fd92339c60568474436e1f259ca849
+SHA512 (nom-5.1.2.crate) = 53b8ddab62475588efae46c78b5fd086a14c0fa505c84e625fbedd6dc74d4ac047e9fbed7312b797f126e9ca1f056458d8ffe0ab13f0117de685ef8b43f86aca
+Size (nom-5.1.2.crate) = 136174 bytes
+SHA1 (peeking_take_while-0.1.2.crate) = 055d3f21641986c5380504c5b1e288a29408a8a5
+RMD160 (peeking_take_while-0.1.2.crate) = a2d2aea7037c02ab61b3d49a9db34b94423d3615
+SHA512 (peeking_take_while-0.1.2.crate) = 7bf8721987c3e2e1986683dd897746592a909382f02b840b777effec7d8b0a864c1a83b03c73d555e359f22c423168a54b75448a7e7b996b739527ce8c88b721
+Size (peeking_take_while-0.1.2.crate) = 6697 bytes
+SHA1 (proc-macro2-1.0.18.crate) = f2af370d3eece8a7b28eff8d81d1ba1f50910ebb
+RMD160 (proc-macro2-1.0.18.crate) = 4d9b7a8d30c9a470d960b6e293dc145754a20975
+SHA512 (proc-macro2-1.0.18.crate) = 3e7cf577bc3548e03a2f1bee620e3ef484dcaa45fbaf7858a8ea04f79d82d636b527584765ef43c92624e1a1afac50e60ad3f9dd8efc34e8e6b84cda20c864ef
+Size (proc-macro2-1.0.18.crate) = 36252 bytes
+SHA1 (promscale_extension-0.1.1.tar.gz) = 5bc139dfe62e6bca370074f8bffa5911a971c8d6
+RMD160 (promscale_extension-0.1.1.tar.gz) = c8197fa82678cdd258e4ebe7b67b928dd0fd1497
+SHA512 (promscale_extension-0.1.1.tar.gz) = 873d9b76c1df956c86febe7f5c8d582d083a37779fdb71bad2244b2525befdf0048704bc0a71af649201348751df5b6b128220a269d8b573cd07ea31f3cb0553
+Size (promscale_extension-0.1.1.tar.gz) = 10716 bytes
+SHA1 (quote-1.0.7.crate) = 63ef7b19865840266f1e4a2cb3e83be884c3fd09
+RMD160 (quote-1.0.7.crate) = f6637701a383ef477c2fbddb0268b0c2590c1e89
+SHA512 (quote-1.0.7.crate) = b7cb576c07419854f71072a88e4216f50d78196703d3d8a1068dfd0f2ccb1e417c3a865ec3be613b46e74e46654f64378f527800701f74d50352cb766a885953
+Size (quote-1.0.7.crate) = 25170 bytes
+SHA1 (regex-1.3.9.crate) = ae7ea9d74b10384c07d4842ba3a4d7de90f293a7
+RMD160 (regex-1.3.9.crate) = bb9b8e01a0bfec688d02d6d2834ea0e5596d3c83
+SHA512 (regex-1.3.9.crate) = 425713d3eeb4132d4056e6c1a08bc2fa5032b9971987c531b5707a9b5670ae15f037bd68921f1545580801957d1ea283eff87e533477364c7f76823800202f74
+Size (regex-1.3.9.crate) = 236683 bytes
+SHA1 (regex-syntax-0.6.18.crate) = f63f9b1009fe790dff7bd4115522526ebd2ff57f
+RMD160 (regex-syntax-0.6.18.crate) = f34cd311d7aedb64398b2b67118b62085fe17509
+SHA512 (regex-syntax-0.6.18.crate) = 9cd999837890a87d0cc6bc351029a422bd52e5c621763e5c11ae9dcf1ba5edebabcd9e6d70db0b1656072a6109d439101412b3aab0d6ad357ae02ee7039a010e
+Size (regex-syntax-0.6.18.crate) = 294440 bytes
+SHA1 (rustc-hash-1.1.0.crate) = d787ac995dbe7c8059910fc43aa11446dc010e1c
+RMD160 (rustc-hash-1.1.0.crate) = 70f260b3856e6849c4c11182357491c5222ca77d
+SHA512 (rustc-hash-1.1.0.crate) = 84e673ea9b046f7b989d47f2c4505557fbd5de991e6fc9f56a03605d40e0b4ba5427cd566954890153cc033ccbec6c984306634571935bfe0d4cdfbe56f39544
+Size (rustc-hash-1.1.0.crate) = 9331 bytes
+SHA1 (shlex-0.1.1.crate) = 41294bd209003e7ab6c6e388d73c07b8b6f27904
+RMD160 (shlex-0.1.1.crate) = f69a4dee22edd6b0ca503ccaab6c0ab0ac1b2d35
+SHA512 (shlex-0.1.1.crate) = a4d202897861ca7955a3561dc1b0fd0307d77948c9b97aa0f8b9caff2b9721d2836a08760d308675973b0e9c7bae92e4d5fbd2a2497cba9e5aeefbe31075e069
+Size (shlex-0.1.1.crate) = 5687 bytes
+SHA1 (timescale-extension-utils-rs-098962027183e1cd36acd6e1a47390f1cadbd33.tar.gz) = 55a6442a93250cd96591252d0534c1a438cc4078
+RMD160 (timescale-extension-utils-rs-098962027183e1cd36acd6e1a47390f1cadbd33.tar.gz) = 1ba3cc364346b8e4f11eee3508bf656ba775455c
+SHA512 (timescale-extension-utils-rs-098962027183e1cd36acd6e1a47390f1cadbd33.tar.gz) = fa57e4b644f631606886c7d7efd4514d26c8acc4d6ff94c50c649bbab404969c9d96752fd1d2e8bfa7a68a9bc0cf400fbcf3be2dcbdcaace0b3cfa683e736bde
+Size (timescale-extension-utils-rs-098962027183e1cd36acd6e1a47390f1cadbd33.tar.gz) = 446324 bytes
+SHA1 (unicode-xid-0.2.1.crate) = c9132224bdc93872dd5b4d8099f5318ba15f2dfd
+RMD160 (unicode-xid-0.2.1.crate) = f22de16f57fe27fc9e88639f3a86310f8fd27ee7
+SHA512 (unicode-xid-0.2.1.crate) = 91e862137e837baea82829431cfed36634fdb05339f00c756eb5a4b429ef0bb871f5133d11adf9a023fa22168c8a0cf194ff3669779f04f219d48fc4fac339d2
+Size (unicode-xid-0.2.1.crate) = 14392 bytes
+SHA1 (version_check-0.9.2.crate) = 8e3589a8a3def4d51890213461a38df9d6afae4f
+RMD160 (version_check-0.9.2.crate) = 7dd20a9323a2607d7d94c7cd52391b2fcbd3ca35
+SHA512 (version_check-0.9.2.crate) = b88a9d545ef103fe6d0eebe7ddcf328fc21fcb02c60828b347cfc35afd957669e652a94d880ef992450c167df3505838bc649e0d83896542fa13a149875acf26
+Size (version_check-0.9.2.crate) = 11979 bytes
+SHA1 (winapi-0.3.9.crate) = 25c427fe8e3df07658e2552d2585d2f167ba3125
+RMD160 (winapi-0.3.9.crate) = 37e72db32b20588d61821e9bc5e72fb31b1ed089
+SHA512 (winapi-0.3.9.crate) = ff8b7b78065f3d8999ec03c725a0460ebc059771bf071c7a3df3f0ecd733edf3b0a2450024d4e24e1aedddaecd9038ce1376c0d8bbf45132068cf45cf4a53a97
+Size (winapi-0.3.9.crate) = 1200382 bytes
+SHA1 (winapi-i686-pc-windows-gnu-0.4.0.crate) = cf2bc857823de6008e6da350ad2c97c7be564322
+RMD160 (winapi-i686-pc-windows-gnu-0.4.0.crate) = a7d1e9e7f940d2e376a1b6dede7f0a50ad191ab8
+SHA512 (winapi-i686-pc-windows-gnu-0.4.0.crate) = a672ccefd0730a8166fef1d4e39f9034d9ae426a3f5e28d1f4169fa5c5790767693f281d890e7804773b34acdb0ae1febac33cde8c50c0044a5a6152c7209ec2
+Size (winapi-i686-pc-windows-gnu-0.4.0.crate) = 2918815 bytes
+SHA1 (winapi-x86_64-pc-windows-gnu-0.4.0.crate) = eadfdb146024d37b6887b5b9cb6a69f61473ed8a
+RMD160 (winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 300417853d251d91cadb9650992a6aa98248619f
+SHA512 (winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 4a654af6a5d649dc87e00497245096b35a2894ae66f155cb62389902c3b93ddcc5cf7d0d8b9dd97b291d2d80bc686af2298e80abef6ac69883f4a54e79712513
+Size (winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 2947998 bytes
+SHA1 (patch-Cargo.toml) = df6db0f7ec1dbdc9f14d2c4d7be9c7455e3cc9ae
diff --git a/databases/postgresql-promscale_extension/patches/patch-Cargo.toml b/databases/postgresql-promscale_extension/patches/patch-Cargo.toml
new file mode 100644
index 00000000000..e2c161a0de8
--- /dev/null
+++ b/databases/postgresql-promscale_extension/patches/patch-Cargo.toml
@@ -0,0 +1,21 @@
+$NetBSD: patch-Cargo.toml,v 1.1 2020/11/03 22:59:35 tnn Exp $
+
+Provide unpublished crate manually rather than fetch with git.
+
+--- Cargo.toml.orig 2020-09-28 18:57:02.000000000 +0000
++++ Cargo.toml
+@@ -8,12 +8,11 @@ edition = "2018"
+ crate-type = ["staticlib"]
+
+ [dependencies.timescale-extension-utils]
+-git = "https://github.com/timescale/timescale-extension-utils"
+-branch = "master"
++path = "timescale-extension-utils"
+
+ [profile.release]
+ lto = true
+
+ [features]
+-default = []
++default = ["parse_headers"]
+ parse_headers = ["timescale-extension-utils/parse_headers"]