summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Hall <mhall119@ubuntu.com>2017-03-20 10:41:40 -0400
committerMichael Hall <mhall119@ubuntu.com>2017-03-20 10:41:40 -0400
commit10db0e3310b8d9f404b1c9745748f772c682dbeb (patch)
tree3a3cb6e86c3fd534b6297d80f58e0d34173bcecb /configure
parent6d44bb0ac1b36f23edabb938f29493f44b1e92af (diff)
downloadcouchdb-10db0e3310b8d9f404b1c9745748f772c682dbeb.tar.gz
Change snap packaging to build from source
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure88
1 files changed, 0 insertions, 88 deletions
diff --git a/configure b/configure
index 60ccd1a69..4a8a352c0 100755
--- a/configure
+++ b/configure
@@ -25,7 +25,6 @@ PACKAGE_AUTHOR_NAME="The Apache Software Foundation"
WITH_CURL="false"
WITH_FAUXTON=1
WITH_DOCS=1
-WITH_SNAP=1
SKIP_DEPS=0
COUCHDB_USER=`whoami`
@@ -47,7 +46,6 @@ Options:
-c | --with-curl request that couchjs is linked to cURL (default false)
--disable-fauxton do not build Fauxton
--disable-docs do not build any documentation or manpages
- --disable-snap do not build snap package config
--skip-deps do not update erlang dependencies
--rebar=PATH use rebar by specified path (version >=2.6.0 && <3.0 required)
EOF
@@ -79,12 +77,6 @@ parse_opts() {
continue
;;
- --disable-snap)
- WITH_SNAP=0
- shift
- continue
- ;;
-
--skip-deps)
SKIP_DEPS=1
shift
@@ -195,86 +187,6 @@ EOF
cat > $rootdir/config.erl << EOF
{with_curl, $WITH_CURL}.
EOF
-
-if [ "${WITH_SNAP}" -eq "1" ]; then
-echo "==> configuring snapcraft config"
-cat > rel/snapcraft.yaml << EOF
-name: couchdb
-version: $COUCHDB_VERSION
-summary: Document based database
-description: CouchDB is a database that completely embraces the web. Store your data with JSON documents. Access your documents and query your indexes with your web browser, via HTTP. Index, combine, and transform your documents with JavaScript.
-confinement: strict
-grade: stable
-
-apps:
- couchdb:
- daemon: simple
- command: snap_run
- plugs: [network-bind, browser-support, mount-observe]
- run:
- command: snap_run
- plugs: [network-bind, browser-support, mount-observe]
-parts:
- couchdb:
- plugin: dump
- source: .
- organize:
- snap.ini: couchdb/etc/snap.ini
- snap_run: bin/snap_run
- stage:
- - couchdb
- - bin
- snap:
- - couchdb
- - bin
- erlang:
- plugin: nil
- stage-packages:
- - erlang-base-hipe
- - erlang-crypto
- - erlang-eunit
- - erlang-inets
- - erlang-os-mon
- - erlang-public-key
- - erlang-ssl
- - erlang-syntax-tools
- - erlang-tools
- - erlang-xmerl
- - libc6
- - libcurl3
- - libgcc1
- - libicu55
- - libmozjs185-1.0
- - libstdc++6
-EOF
-
-cat > rel/snap.ini << EOF
-; Snap-specific Configuration Settings
-
-[couchdb]
-database_dir = /var/snap/couchdb/common/data
-view_index_dir = /var/snap/couchdb/common/data
-
-[log]
-writer = file
-file = /var/snap/couchdb/current/couchdb.log
-;level = info
-EOF
-
-cat > rel/snap_run << EOF
-#!/bin/sh
-
-export HOME=$SNAP_DATA
-export ERL_FLAGS="-couch_ini \${SNAP}/couchdb/etc/default.ini \${SNAP}/couchdb/etc/snap.ini \${SNAP_DATA}/local.ini"
-if [ ! -e \${SNAP_DATA}/local.ini ]; then
- touch \${SNAP_DATA}/local.ini
-fi
-
-exec \${SNAP}/couchdb/bin/couchdb
-EOF
-chmod +x rel/snap_run
-fi
-
install_local_rebar() {
if [ ! -x "${rootdir}/bin/rebar" ]; then