summaryrefslogtreecommitdiff
path: root/databases/couchdb/patches/patch-aa
blob: 694e812d85286133caf78ad4522761740832cec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$NetBSD: patch-aa,v 1.10 2017/11/07 15:33:27 fhajny Exp $

Set pkgsrc standard paths. Portability.

--- configure.orig	2017-11-01 02:52:10.000000000 +0000
+++ configure
@@ -85,7 +85,7 @@ parse_opts() {
 
             --rebar)
                 if [ -x "$2" ]; then
-                    version=`$2 --version 2> /dev/null | grep -o "2\.[6-9]\.[0-9]"`
+                    version=`$2 --version 2> /dev/null | grep -w "2\.[6-9]\.[0-9]"`
                     if [ $? -ne 0 ]; then
                         printf 'Rebar >=2.6.0 and <3.0.0 required' >&2
                         exit 1
@@ -150,11 +150,11 @@ cat > rel/couchdb.config << EOF
 % The contents of this file are auto-generated by configure
 %
 {package_author_name, "$PACKAGE_AUTHOR_NAME"}.
-{prefix, "."}.
-{data_dir, "./data"}.
-{view_index_dir, "./data"}.
-{log_file, "$LOG_FILE"}.
-{fauxton_root, "./share/www"}.
+{prefix, "@PREFIX@/couchdb"}.
+{data_dir, "@COUCH_DBDIR@"}.
+{view_index_dir, "@COUCH_DBDIR@"}.
+{log_file, "@COUCH_LOGDIR@/couch.log"}.
+{fauxton_root, "@PREFIX@/couchdb/share/www"}.
 {user, "$COUCHDB_USER"}.
 {node_name, "-name couchdb@127.0.0.1"}.
 {cluster_port, 5984}.