You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by gi...@git.apache.org on 2017/03/20 14:50:09 UTC

[GitHub] kxepal commented on a change in pull request #460: Change snap packaging to build from source

kxepal commented on a change in pull request #460: Change snap packaging to build from source
URL: https://github.com/apache/couchdb/pull/460#discussion_r106920400
 
 

 ##########
 File path: snapcraft.yaml
 ##########
 @@ -0,0 +1,81 @@
+name: couchdb
+version: 2.0
+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:
+    server:
+        daemon: simple
+        command: rel/couchdb/bin/snap_run
+        plugs: [network-bind, process-control, mount-observe]
+    couchdb:
+        command: rel/couchdb/bin/snap_run
+        plugs: [network-bind]
+parts:
+    couchdb: 
+        plugin: make
+        source: .
+        prepare: |
+          ./configure --disable-docs
+        build: |
+          make release
+          cp -ra ./rel $SNAPCRAFT_PART_INSTALL
+          cp -ra ./bin $SNAPCRAFT_PART_INSTALL
+        build-packages:
+          - binutils
+          - libc6-dev
+          - gcc
+          - g++
+          - make
+          - erlang-dev
+          - erlang-base-hipe
+          - erlang-reltool
+          - libcurl4-openssl-dev
+          - libmozjs185-dev
+          - libnspr4-dev
+          - libicu-dev
+          - icu-devtools
+          # For erlang/rebar processing
+          - erlang-nox
+          - erlang-os-mon
+          - erlang-syntax-tools
+          # For fauxton
+          - nodejs-dev
+          - nodejs-legacy
 
 Review comment:
   Wonder why two nodejs here.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services