Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] couchdb: update to 3.0.0
@ 2020-04-09 12:30 pullmoll
  2020-04-09 12:58 ` [PR PATCH] [Updated] [WIP] " pullmoll
                   ` (29 more replies)
  0 siblings, 30 replies; 31+ messages in thread
From: pullmoll @ 2020-04-09 12:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 311 bytes --]

There is a new pull request by pullmoll against master on the void-packages repository

https://github.com/pullmoll/void-packages couchdb
https://github.com/void-linux/void-packages/pull/20792

couchdb: update to 3.0.0


A patch file from https://github.com/void-linux/void-packages/pull/20792.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-couchdb-20792.patch --]
[-- Type: text/x-diff, Size: 3086 bytes --]

From 7af1dfa01fd708ea746f8322690b6cea26fd5285 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= <pullmoll@t-online.de>
Date: Thu, 9 Apr 2020 14:30:24 +0200
Subject: [PATCH] couchdb: update to 3.0.0

---
 srcpkgs/couchdb/files/couchdb/run |  2 +-
 srcpkgs/couchdb/template          | 34 ++++++++++++++++++-------------
 2 files changed, 21 insertions(+), 15 deletions(-)

diff --git a/srcpkgs/couchdb/files/couchdb/run b/srcpkgs/couchdb/files/couchdb/run
index 25d1abb8272..9754364240a 100755
--- a/srcpkgs/couchdb/files/couchdb/run
+++ b/srcpkgs/couchdb/files/couchdb/run
@@ -2,5 +2,5 @@
 export HOME=/var/lib/couchdb
 mkdir -p /var/run/couchdb
 chown couchdb /var/run/couchdb
-exec chpst -u couchdb:couchdb couchdb -r 5 -o /dev/null  -e /dev/null
+exec chpst -u couchdb:couchdb couchdb -o /dev/null  -e /dev/null
 
diff --git a/srcpkgs/couchdb/template b/srcpkgs/couchdb/template
index 5ca5eacbaab..8bbf852187b 100644
--- a/srcpkgs/couchdb/template
+++ b/srcpkgs/couchdb/template
@@ -1,9 +1,11 @@
 # Template file for 'couchdb'
 pkgname=couchdb
-version=1.7.1
-revision=2
+version=3.0.0
+revision=1
 wrksrc="apache-couchdb-${version}"
-build_style=gnu-configure
+build_style=gnu-makefile
+make_build_args="V=1"
+configure_args="--user couchdb --with-curl"
 conf_files="/etc/couchdb/default.ini /etc/couchdb/local.ini"
 hostmakedepends="erlang pkg-config"
 makedepends="libressl-devel icu-devel js-devel libcurl-devel"
@@ -12,9 +14,8 @@ short_desc="A document-oriented database"
 maintainer="Gerardo Di Iorio <arete74@gmail.com>"
 license="Apache-2.0"
 homepage="http://couchdb.apache.org/"
-distfiles="https://dist.apache.org/repos/dist/release/couchdb/source/${version}/apache-couchdb-${version}.tar.gz"
-checksum=91200aa6fbc6fa5e2f3d78ef40e39d8c1ec7c83ea1c2cd730d270658735b2cad
-broken="unsupported version upstream, broken distfiles"
+distfiles="https://downloads.apache.org/couchdb/source/${version}/apache-couchdb-${version}.tar.gz"
+checksum=d109bb1a70fe746c04a9bf79a2bb1096cb949c750c29dbd196e9c2efd4167fd9
 
 system_accounts="couchdb"
 couchdb_homedir="/var/lib/couchdb"
@@ -23,18 +24,23 @@ make_dirs="
 	/var/log/couchdb 0750 couchdb couchdb"
 
 if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" js-devel"
 	makedepends+=" erlang"
-	configure_args="--with-erlang=${XBPS_CROSS_BASE}/usr/lib/erlang/usr/include"
+	ERL_CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/js -I${XBPS_CROSS_BASE}/usr/lib/erlang/usr/include"
 fi
 
-pre_configure() {
-	sed -i 's|-Werror|-pie -fPIE|g' src/couchdb/priv/Makefile.*
-if [ "$CROSS_BUILD" ]; then
-	sed -i '/FLAGS.*\(usr\|opt\)/s/.*/:/' configure
-fi
+do_configure() {
+	echo "ERL_CFLAGS     : $ERL_CFLAGS"
+	echo "ERL_LDFLAGS    : $ERL_LDFLAGS"
+	./configure ${configure_args} ERL_CFLAGS="${ERL_CFLAGS}"
 }
 
-
-post_install() {
+do_install() {
+	vmkdir usr/lib/couchdb
+	vcopy "rel/*" usr/lib/couchdb
+	vinstall rel/overlay/etc/default.ini 644 etc/couchdb
+	vinstall rel/overlay/etc/local.ini 644 etc/couchdb
+	vmkdir usr/bin
+	ln -srv ${DESTDIR}/usr/lib/couchdb/overlay/bin/remsh ${DESTDIR}/usr/bin/couchdb
 	vsv couchdb
 }

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2020-04-20 21:18 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-09 12:30 [PR PATCH] couchdb: update to 3.0.0 pullmoll
2020-04-09 12:58 ` [PR PATCH] [Updated] [WIP] " pullmoll
2020-04-10 16:26 ` jnbr
2020-04-11  1:44 ` [PR PATCH] [Updated] " pullmoll
2020-04-11  4:51 ` pullmoll
2020-04-11  4:52 ` [PR PATCH] [Updated] " pullmoll
2020-04-12 18:09 ` pullmoll
2020-04-13  5:18 ` pullmoll
2020-04-13  8:49 ` pullmoll
2020-04-13 13:39 ` pullmoll
2020-04-13 14:12 ` pullmoll
2020-04-13 18:10 ` pullmoll
2020-04-13 18:12 ` pullmoll
2020-04-16  8:03 ` pullmoll
2020-04-16  8:12 ` pullmoll
2020-04-16  8:12 ` pullmoll
2020-04-17  5:53 ` [PR PATCH] [Updated] " pullmoll
2020-04-17  7:07 ` pullmoll
2020-04-17  7:31 ` [PR PATCH] [Updated] " pullmoll
2020-04-17  7:32 ` pullmoll
2020-04-17  8:35 ` [PR PATCH] [Updated] " pullmoll
2020-04-17  8:39 ` pullmoll
2020-04-17 10:40 ` pullmoll
2020-04-17 11:08 ` pullmoll
2020-04-17 16:59 ` pullmoll
2020-04-20  7:11 ` pullmoll
2020-04-20  9:04 ` [PR PATCH] [Updated] " pullmoll
2020-04-20  9:11 ` pullmoll
2020-04-20  9:23 ` pullmoll
2020-04-20 21:18 ` [PR PATCH] [Closed]: " pullmoll
2020-04-20 21:18 ` pullmoll

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).