Permalink
Browse files

add packaging

  • Loading branch information...
1 parent d6ca306 commit 6bb48553bf6774bfa5fb2fe282b609ffcecbd0e2 @benoitc benoitc committed Sep 27, 2011
View
3 .gitignore
@@ -17,6 +17,7 @@ build-aux
.DS_Store
*.dSYM
*.sw*
+*.gz
# relase
rel/refuge
@@ -35,3 +36,5 @@ apps/couch/share/server/main-coffee.js
# other
deps
ebin
+distdir
+package/osxbuild
View
46 Makefile
@@ -1,3 +1,8 @@
+REPO=refuge
+REFUGE_TAG= $(shell git describe --tags)
+REVISION?= $(shell echo $(REFUGE_TAG) | sed -e 's/^$(REPO)-//')
+PKG_VERSION?= $(shell echo $(REVISION) | tr - .)
+
DESTDIR?=
DISTDIR= rel/archive
@@ -17,7 +22,7 @@ clean: devclean
distclean: clean devclean relclean
@./rebar delete-deps
-rel: deps
+rel: relclean deps
@./rebar compile generate
relclean:
@@ -39,3 +44,42 @@ dev1 dev2 dev3:
devclean:
@rm -rf dev
+
+##
+## release tarbals
+##
+
+archive = git archive --format=tar --prefix=$(1)/ HEAD | (cd $(2) && tar xf -)
+
+buildtar = mkdir distdir && \
+ git clone . distdir/refuge-clone && \
+ cd distdir/refuge-clone && \
+ git checkout $(REFUGE_TAG) && \
+ $(call archive,$(REFUGE_TAG),..) && \
+ mkdir ../$(REFUGE_TAG)/deps && \
+ make deps; \
+ for dep in deps/*; do \
+ cd $${dep} && \
+ $(call archive,$${dep},../../../$(REFUGE_TAG)) && \
+ mkdir -p ../../../$(REFUGE_TAG)/$${dep}/priv && \
+ git rev-list --max-count=1 HEAD > ../../../$(REFUGE_TAG)/$${dep}/priv/git.vsn && \
+ cd ../..; done
+
+distdir:
+ $(if $(REFUGE_TAG), $(call buildtar), $(error "You can't generate a release tarball from a non-tagged revision. Run 'git checkout <tag>', then 'make dist'"))
+
+dist $(REFUGE_TAG).tar.gz: distdir
+ cd distdir; \
+ tar czf ../$(REFUGE_TAG).tar.gz $(REFUGE_TAG)
+
+
+package: dist
+ $(MAKE) -C package package
+
+pkgclean:
+ $(MAKE) -C package pkgclean
+
+.PHONY: package
+
+export PKG_VERSION REPO REVISION REFUGE_TAG
+
View
0 package/.keep_dir
No changes.
View
45 package/Makefile
@@ -0,0 +1,45 @@
+OS = $(shell uname -s)
+KERNEL = $(shell uname -r)
+ERLANG_BIN = $(shell dirname $(shell which erl))
+ifeq ($(OS),Linux)
+PKGER = $(shell cat /etc/redhat-release 2> /dev/null)
+ifeq ($(PKGER),)
+PKGER = debuild
+PKGERDIR = deb
+else
+PKGER = rpmbuild
+PKGERDIR = rpm
+endif
+endif
+ifeq ($(OS),SunOS)
+PKGER = make
+PKGERDIR = solaris
+DISTRO = $(shell head -1 /etc/release|awk \
+ '{if ($$1 == "OpenSolaris") {print $$1} else {print "Solaris"}}')
+endif
+ifeq ($(OS),Darwin)
+PKGER = make
+PKGERDIR = osx
+BUILDDIR = osxbuild
+endif
+
+APP = $(shell echo "$(REPO)" | sed -e 's/_/-/g')
+# Assumes CURDIR is .../$(APP)/package/$(APP)/
+REFUGE_PATH ?= ..
+RELEASE ?=
+
+$(APP)-$(REVISION).tar.gz: ../$(REFUGE_TAG).tar.gz
+ ln -s $< $@
+
+pkgclean: $(PKGERDIR)/pkgclean
+ rm -rf $(APP)-$(REVISION).tar.gz working rpmbuild debuild packages osxbuild
+
+pkgcheck:
+ $(if $(REFUGE_TAG),,$(error "You can't generate a release tarball from a non-tagged revision. Run 'git checkout <tag>', then 'make dist'"))
+ $(if $(RELEASE),,$(error "You must provide a package release number via RELEASE= on the command line"))
+ @echo "Packaging \"$(REFUGE_TAG)\""
+
+# The heavy lifting is done by the individual packager Makefiles
+package: pkgcheck build
+
+include $(PKGERDIR)/Makefile
View
33 package/deb/Makefile
@@ -0,0 +1,33 @@
+BUILDPATH = debuild/$(APP)-$(REVISION)
+
+build: $(BUILDPATH)/debian \
+ debuild/$(APP)_$(REVISION).orig.tar.gz
+ export DEBFULLNAME="refuge Buildbot Packager"; \
+ export DEBEMAIL="contact@refuge.io"; \
+ dch --noquery -c $(BUILDPATH)/debian/changelog \
+ -b -v "$(REVISION)-$(RELEASE)" "pants on head"
+ cd $(BUILDPATH) && debuild --no-lintian \
+ --prepend-path=$(ERLANG_BIN) \
+ -e REVISION=$(REVISION) \
+ -e RELEASE=$(RELEASE) \
+ -uc -us
+ mkdir -p packages
+ mv debuild/$(APP)_$(REVISION)-$(RELEASE)_*.deb packages
+ cd packages && \
+ for debfile in `ls *.deb`; do \
+ sha256sum $${debfile} > $${debfile}.sha \
+ ; done
+
+$(BUILDPATH): $(APP)-$(REVISION).tar.gz
+ mkdir -p debuild
+ tar xz -C debuild -f $^
+
+$(BUILDPATH)/debian: $(BUILDPATH)
+ cp -a $(PKGERDIR) $@
+ rm -rf $@/.hg $@/Makefile $@/.*.swp
+
+debuild/$(APP)_$(REVISION).orig.tar.gz: $(APP)-$(REVISION).tar.gz
+ cp $^ $@
+
+$(PKGERDIR)/pkgclean:
+ @echo
View
5 package/deb/changelog
@@ -0,0 +1,5 @@
+refuge (0.3.0-1) unstable; urgency=low
+
+ * Initial release of Refuge in binary form for deb based systems
+
+ -- benoitc <benoitc@refuge.io> Tue, 27 Sept 2009 14:47:00 +0200
View
1 package/deb/compat
@@ -0,0 +1 @@
+7
View
14 package/deb/control
@@ -0,0 +1,14 @@
+Source: refuge
+Section: net
+Priority: extra
+Maintainer: Benoit Chesneau <benoitc@refuge.io>
+Build-Depends: debhelper (>= 7)
+Standards-Version: 3.8.3
+Homepage: http://refuge.io/
+
+Package: refuge
+Architecture: any
+Depends: adduser, logrotate, ${shlibs:Depends}, ${misc:Depends}
+Description: Decentralized data platform
+ The Refuge Project aims to provide a fully decentralized and opensource
+platform based on apacje CouchDB to share, collect and render data.
View
32 package/deb/copyright
@@ -0,0 +1,32 @@
+This package was debianized by grant <grant@basho.com> on
+Fri, 19 Feb 2010 21:48:05 -0600.
+
+It was downloaded from <url://example.com>
+
+Upstream Author(s):
+
+
+Copyright:
+ 2007-2010 Basho Technologies
+
+License:
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+The Debian packaging is:
+
+ 2007-2010 Basho Technologies
+
+and is licensed under the Apache License, Version 2.0
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
View
156 package/deb/debian_refuge_init
@@ -0,0 +1,156 @@
+#! /bin/bash
+### BEGIN INIT INFO
+# Provides: refuge
+# Required-Start: $remote_fs $syslog
+# Required-Stop: $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: A distributed key value store
+# Description: Basho Technologies's refuge distributed key value store
+### END INIT INFO
+
+# Original Author: Vladimir Osintsev <osintsev@gmail.com>
+# Modified for Ubuntu by: Matt Heitzenroder <mheitzenroder@gmail.com>
+# Modified for refuge by: Grant Schofield <grant@basho.com>
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC="a decentralized data platform"
+NAME=refuge
+ERTS_PATH=/usr/lib/refuge/erts-5.7.5/bin
+DAEMON=/usr/sbin/$NAME
+RUNNER_LOG_DIR=/var/log/$NAME
+RUNNER_USR_DIR=/usr
+DAEMON_CONFDIR=/etc/$NAME
+DAEMON_BASEDIR=/var/lib/$NAME
+DAEMON_SHAREDIR=/usr/share/$NAME
+DAEMON_ARGS='start'
+SCRIPTNAME=/etc/init.d/$NAME
+
+
+# Exit if the package is not installed
+#[ -x "$RUNNER_USR_DIR/sbin/$NAME" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Load the VERBOSE setting and other rcS variables
+. /lib/init/vars.sh
+. /lib/lsb/init-functions
+# Setup command to control the node
+NODETOOL="$ERTS_PATH/escript $ERTS_PATH/nodetool $NAME_ARG $COOKIE_ARG"
+
+#
+# Function that starts the daemon/service
+#
+do_start()
+{
+ # Return
+ # 0 if daemon has been started
+ # 1 if daemon was already running
+ # 2 if daemon could not be started
+
+ RETVAL=`$DAEMON ping`
+ [ "$RETVAL" = "pong" ] && return 1
+
+#
+# --chuid just doesn't seem to work at all
+#
+# start-stop-daemon --start \
+# --name refuge \
+# --chdir /var/lib/refuge \
+# --chuid refuge \
+# --user refuge \
+# --exec $DAEMON -- $DAEMON_ARGS \
+# || return 2
+
+ su - refuge -c "$DAEMON $DAEMON_ARGS" || return 2
+}
+
+#
+# Function that stops the daemon/service
+#
+do_stop()
+{
+ # Try to stop via "refuge stop" first
+ RETVAL=`su - refuge -c "$DAEMON ping"`
+ [ "$RETVAL" = "pong" ] && su - refuge -c "$DAEMON stop"
+ sleep 2
+ RETVAL=`pidof $ERTS_PATH/beam.smp`
+ [ "$RETVAL" = "" ] && return 0
+ #
+ # It didn't exit nicely, be mean.
+ #
+ # Return
+ # 0 if daemon has been stopped
+ # 1 if daemon was already stopped
+ # 2 if daemon could not be stopped
+ # other if a failure occurred
+ start-stop-daemon --stop \
+ --quiet \
+ --retry=TERM/30/KILL/5 \
+ --user refuge \
+ --exec $ERTS_PATH/beam.smp
+ return $?
+}
+
+#
+# Function that graceful reload the daemon/service
+#
+do_reload() {
+ # Restart the VM without exiting the process
+ su - refuge -c "$DAEMON restart" && return $? || return 2
+}
+
+
+case "$1" in
+ start)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+ do_start
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ stop)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ ping)
+ # See if the VM is alive
+ $DAEMON ping || exit $?
+ ;;
+ reload|force-reload)
+ log_daemon_msg "Reloading $DESC" "$NAME"
+ do_reload
+ log_end_msg $?
+ ;;
+ restart)
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1)
+ do_start
+ case "$?" in
+ 0) log_end_msg 0 ;;
+ 1) log_end_msg 1 ;; # Old process is still running
+ *) log_end_msg 1 ;; # Failed to start
+ esac
+ ;;
+ *)
+ # Failed to stop
+ log_end_msg 1
+ ;;
+ esac
+ ;;
+ *)
+ echo "Usage: $SCRIPTNAME {start|stop|ping|restart|force-reload}" >&2
+ exit 3
+ ;;
+esac
+
+:
+
View
10 package/deb/dirs
@@ -0,0 +1,10 @@
+etc/init.d
+etc/refuge
+etc/logrotate.d
+usr/lib/refuge
+usr/sbin
+usr/share/refuge
+var/run/refuge
+var/lib/refuge
+var/log/refuge
+var/log/refuge/sasl
View
1 package/deb/files
@@ -0,0 +1 @@
+refuge_0.3.0-1_amd64.deb net extra
View
46 package/deb/postinst
@@ -0,0 +1,46 @@
+#!/bin/sh
+# postinst script for refuge
+#
+# see: dh_installdeb(1)
+
+set -e
+
+
+# create refuge group
+if ! getent group refuge >/dev/null; then
+ addgroup --system refuge
+fi
+
+# create raiak user
+if ! getent passwd refuge >/dev/null; then
+ adduser --ingroup refuge --home /var/lib/refuge --disabled-password \
+ --system --shell /bin/bash --no-create-home \
+ --gecos "Refuge platform" refuge
+fi
+
+chown -R refuge:refuge /var/lib/refuge
+chown -R refuge:refuge /var/run/refuge
+chown -R refuge:refuge /var/log/refuge
+chmod 0755 /var/run/refuge /etc/refuge
+chown -R refuge:refuge /usr/share/refuge
+
+case "$1" in
+ configure)
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
View
64 package/deb/postrm
@@ -0,0 +1,64 @@
+#!/bin/sh
+# postrm script for refuge
+#
+# see: dh_installdeb(1)
+
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <overwriter>
+# <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ purge)
+ rm -f /etc/default/refuge
+ if [ -d /var/lib/refuge ]; then
+ rm -r /var/lib/refuge
+ fi
+ if [ -d /var/log/refuge ]; then
+ rm -r /var/log/refuge
+ fi
+ if [ -d /var/run/refuge ]; then
+ rm -r /var/run/refuge
+ fi
+ if [ -d /etc/refuge ]; then
+ rm -r /etc/refuge
+ fi
+ if [ -e /usr/sbin/refuge ]; then
+ rm /usr/sbin/refuge
+ fi
+ if [ -e /etc/init.d/refuge ]; then
+ rm /etc/init.d/refuge
+ fi
+ if getent passwd refuge >/dev/null; then
+ deluser refuge
+ fi
+ if getent group refuge >/dev/null; then
+ delgroup refuge
+ fi
+ ;;
+
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
View
7 package/deb/refuge.debhelper.log
@@ -0,0 +1,7 @@
+dh_prep
+dh_installdirs
+dh_strip
+dh_compress
+dh_installdeb
+dh_gencontrol
+dh_builddeb
View
1 package/deb/refuge.substvars
@@ -0,0 +1 @@
+misc:Depends=
View
58 package/deb/rules
@@ -0,0 +1,58 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+package=refuge
+
+CFLAGS=
+LDFLAGS=
+
+
+build:
+ cp -f debian/vars.config rel/vars.config
+ unset CC CFLAGS CPPFLAGS LDFLAGS CXX CXXFLAGS \
+ && make rel
+ touch build
+
+clean:
+ dh_clean
+ rm -f build
+ make clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_prep --exclude ./deps/erlang_js/Makefile.orig
+ dh_installdirs
+ cp -R rel/refuge/lib debian/$(package)/usr/lib/refuge
+ cp -R rel/refuge/releases debian/$(package)/usr/lib/refuge
+ cp -R rel/refuge/erts* debian/$(package)/usr/lib/refuge
+ cp -R rel/refuge/share debian/$(package)/usr/lib/share
+ chmod 0755 debian/$(package)/usr/lib/refuge/erts*/bin/*
+ install -p -D -m 0755 rel/refuge/bin/refuge \
+ debian/$(package)/usr/sbin/refuge
+ install -m644 rel/$(package)/etc/app.config \
+ debian/$(package)/etc/refuge/app.config
+ install -m644 rel/$(package)/etc/vm.args \
+ debian/$(package)/etc/refuge/vm.args
+ install -m755 debian/debian_refuge_init debian/$(package)/etc/init.d/refuge
+
+binary-indep: install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: install
+ dh_strip -a
+ dh_compress -a
+ dh_installdeb
+ dh_gencontrol
+ dh_builddeb
+
+binary: binary-indep binary-arch
View
30 package/deb/vars.config
@@ -0,0 +1,30 @@
+% Platform-specific installation paths
+{platform_bin_dir, "/usr/sbin"}.
+{platform_data_dir, "/var/lib/refuge"}.
+{platform_view_dir, "/var/lib/refuge"}.
+{platform_etc_dir, "/etc/refuge"}.
+{platform_lib_dir, "/usr/lib/refuge"}.
+{platform_log_dir, "/var/log/refuge"}.
+{platform_run_dir, "/var/run/refuge"}.
+{platform_share_dir, "/usr/share/refuge"}.
+
+
+%% app config
+{couchdb_ip, "0.0.0.0"}.
+{couchdb_port, 15984}.
+{ssl_port, 16986}.
+{sasl_error_log, "{{platform_log_dir}}/sasl-error.log"}.
+{sasl_log_dir, "{{platform_log_dir}}/sasl"}.
+
+% vm.args
+{node, "refuge@127.0.0.1"}.
+{crash_dump, "{{platform_log_dir}}/erl_crash.dump"}.
+
+% bin/refuge*
+{runner_script_dir, "/usr/sbin"}.
+{runner_base_dir, "{{platform_lib_dir}}"}.
+{runner_etc_dir, "{{platform_etc_dir}}"}.
+{runner_log_dir, "{{platform_log_dir}}"}.
+{pipe_dir, "/tmp/refuge/"}.
+{runner_user, "refuge"}.
+
View
27 package/osx/Makefile
@@ -0,0 +1,27 @@
+ARCH = $(shell uname -m)
+PKGNAME = $(APP)-$(REVISION)-osx-$(ARCH).tar.gz
+
+# simply tar up the rel directory and sha the file
+build: buildrel
+ @echo "Building package $(PKGNAME)"
+ mkdir -p packages
+ cd $(BUILDDIR)/$(APP)-$(REVISION) && \
+ cp -R rel/refuge $(APP)-$(REVISION) && \
+ tar -czf ../../packages/$(PKGNAME) $(APP)-$(REVISION)
+ cd packages && \
+ for tarfile in `ls *.gz`; do \
+ shasum -a 256 $${tarfile} > $${tarfile}.sha \
+ ; done
+
+# Build the release we need to package
+buildrel: $(BUILDDIR)/$(APP)-$(REVISION)
+ cd $^ && $(MAKE) deps compile rel
+
+$(BUILDDIR)/$(APP)-$(REVISION): $(BUILDDIR) $(APP)-$(REVISION).tar.gz
+ tar xz -C $(BUILDDIR) -f $(APP)-$(REVISION).tar.gz
+
+$(BUILDDIR):
+ mkdir -p $@
+
+$(PKGERDIR)/pkgclean:
+ @echo
View
38 package/rpm/Makefile
@@ -0,0 +1,38 @@
+
+DISTRO = $(shell head -1 /etc/redhat-release| awk \
+ '{if ($$0 ~ /CentOS/) { print ".el5."} else { print "." }} ')
+
+build: $(PKGERDIR)/SOURCES/$(APP)-$(REVISION).tar.gz rpmbuild
+ @echo "DISTRO = $(DISTRO)"
+ @echo "RIAK_TAG = $(RIAK_TAG)"
+ @echo "REVISION = $(REVISION)"
+ @echo "RELEASE = $(RELEASE)"
+ rpmbuild --define "_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}$(DISTRO)%%{ARCH}.rpm" \
+ --define '_topdir $(CURDIR)/rpmbuild' \
+ --define '_sourcedir $(CURDIR)/$(PKGERDIR)/SOURCES' \
+ --define '_specdir $(CURDIR)/$(PKGERDIR)/SPECS' \
+ --define '_rpmdir $(CURDIR)/packages' \
+ --define '_srcrpmdir $(CURDIR)/packages' \
+ --define "_revision $(REVISION)" \
+ --define "_version $(PKG_VERSION)" \
+ --define "_release $(RELEASE)" \
+ -ba $(PKGERDIR)/SPECS/$(APP).spec
+ cd packages && \
+ for rpmfile in `ls *.rpm`; do \
+ sha256sum $${rpmfile} > $${rpmfile}.sha \
+ ; done
+
+rpmbuild:
+ @mkdir -p rpmbuild/BUILD
+ @mkdir -p packages
+
+# In case it doesn't exist because there aren't any patches to apply
+$(PKGERDIR)/SOURCES:
+ @mkdir -m 0755 -p $(PKGERDIR)/SOURCES
+
+$(PKGERDIR)/SOURCES/$(APP)-$(REVISION).tar.gz: $(APP)-$(REVISION).tar.gz \
+ $(PKGERDIR)/SOURCES
+ cp $(APP)-$(REVISION).tar.gz $(PKGERDIR)/SOURCES
+
+$(PKGERDIR)/pkgclean:
+ @echo
View
93 package/rpm/SOURCES/refuge_init
@@ -0,0 +1,93 @@
+#!/bin/bash
+#
+# refuge Distributed Data Store
+#
+# chkconfig: 2345 80 30
+# description: refuge is a distrubuted data store.
+# processname: beam
+# config: /etc/refuge/app.config
+# config: /etc/refuge/vm.args
+#
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+#check for script,config, and data dirs
+[ -x /usr/sbin/refuge ] || exit 0
+[ -d /etc/refuge ] || exit 0
+[ -d /var/lib/refuge ] || exit 0
+[ -d /var/run/refuge ] || exit 0
+
+RETVAL=0
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC="a decentralized data platform"
+NAME=refuge
+DAEMON=/usr/sbin/$NAME
+
+
+start() {
+ #Check if refuge is running
+ RETVAL=`$DAEMON ping`
+ [ "$RETVAL" = "pong" ] && echo "refuge is already running" && return 1
+
+ # Start daemons.
+ echo -n $"Starting refuge: "
+ su - refuge -c "$DAEMON start" && success || failure $"$NAME start"
+ RETVAL=$?
+ [ $RETVAL -eq 0 ]
+ echo
+ return $RETVAL
+}
+
+stop() {
+ # Stop daemon.
+ echo -n $"Stopping refuge: "
+ RETVAL=`su - refuge -c "$DAEMON ping"`
+ [ "$RETVAL" = "pong" ] && su - refuge -c "$DAEMON stop 2>/dev/null 1>&2"
+ sleep 2
+ RETVAL=`pidof beam.smp`
+ [ "$RETVAL" = "" ] && success && echo && return 0 || failure $"$NAME stop"
+ sleep 10
+ RETVAL=`pidof beam.smp`
+ [ "$RETVAL" = "" ] && success && echo && return 0 || failure $"$NAME failed to stop"
+ echo
+ return 1
+
+}
+
+reload() {
+ # Restart the VM without exiting the process
+ echo -n $"Reloading refuge: "
+ RETVAL=`su - refuge -c "$DAEMON ping"`
+ [ "$RETVAL" = "pong" ] && su - refuge -c "$DAEMON restart 2>/dev/null 1>&2" \
+ && success && echo && return 0 || failure $"$NAME restart"
+ echo
+ return $RETVAL
+}
+
+
+# See how we were called.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart)
+ stop
+ start
+ ;;
+ reload)
+ reload
+ ;;
+ ping)
+ su - refuge -c "$DAEMON ping" || exit $?
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|reload|restart|ping}"
+ exit 1
+esac
+
+exit $?
View
137 package/rpm/SPECS/refuge.spec
@@ -0,0 +1,137 @@
+# _revision, _release, and _version should be defined on the rpmbuild command
+# line like so:
+#
+# --define "_version 0.9.1" --define "_release 7" \
+# --define "_revision 0.9.1-19-abcdef"
+
+Name: refuge
+Version: %{_version}
+Release: %{_release}%{?dist}
+License: Apache License
+Group: Development/Libraries
+Source: http://github.org/downloads/refuge/refuge/%{name}-%{_revision}.tar.gz
+Source1: refuge_init
+URL: http://refuge.io
+Vendor: The Refuge project
+Packager: Refuge <refuge@lists.refuge.io>>
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+Summary: Refuge, The decentralized data platform
+
+%description
+Riak is a distributed data store.
+
+%define refuge_lib %{_libdir}/%{name}
+%define init_script %{_sysconfdir}/init.d/%{name}
+
+%define __prelink_undo_cmd /bin/cat prelink library
+%define debug_package %{nil}
+
+%define platform_bin_dir %{_sbindir}
+%define platform_data_dir %{_localstatedir}/lib/%{name}
+%define platform_etc_dir %{_sysconfdir}/%{name}
+%define platform_lib_dir %{refuge_lib}
+%define platform_log_dir %{_localstatedir}/log/%{name}
+
+%prep
+%setup -q -n %{name}-%{_revision}
+cat > rel/vars.config <<EOF
+% Platform-specific installation paths
+{platform_bin_dir, "/usr/sbin"}.
+{platform_data_dir, "%{platform_data_dir}"}.
+{platform_view_dir, "%{platform_data_dir}"}.
+{platform_etc_dir, "%{platform_etc_dir}"}.
+{platform_lib_dir, "%{platform_lib_dir}"}.
+{platform_log_dir, "%{platform_log_dir}""}.
+{platform_run_dir, "%{_localstatedir}/run/%{name}/"}.
+{platform_share_dir, "%{_datadir}/%{name}/"}.
+
+%% app config
+{couchdb_ip, "0.0.0.0"}.
+{couchdb_port, 15984}.
+{ssl_port, 16986}.
+{sasl_error_log, ""%{platform_log_dir}/sasl-error.log"}.
+{sasl_log_dir, ""%{platform_log_dir}/sasl"}.
+
+% vm.args
+{node, "refuge@127.0.0.1"}.
+{crash_dump, ""%{platform_log_dir}/erl_crash.dump"}.
+
+% bin/refuge*
+{runner_script_dir, "%{platform_bin_dir}"}.
+{runner_base_dir, "%{platform_lib_dir}"}.
+{runner_etc_dir, "%{platform_etc_dir}"}.
+{runner_log_dir, "%{platform_log_dir}"}.
+{pipe_dir, "%{_localstatedir}/run/%{name}/"}.
+{runner_user, "%{name}"}.
+EOF
+
+%build
+mkdir %{name}
+make rel
+
+%install
+mkdir -p %{buildroot}%{platform_etc_dir}
+mkdir -p %{buildroot}%{platform_lib_dir}
+mkdir -p %{buildroot}%{_datadir}/%{name}
+mkdir -p %{buildroot}%{platform_log_dir}
+mkdir -p %{buildroot}%{platform_log_dir}/sasl
+mkdir -p %{buildroot}%{_localstatedir}/run/%{name}
+mkdir -p %{buildroot}%{platform_data_dir}/mr_queue
+
+#Copy all necessary lib files etc.
+cp -r $RPM_BUILD_DIR/%{name}-%{_revision}/rel/%{name}/lib %{buildroot}%{platform_lib_dir}
+cp -r $RPM_BUILD_DIR/%{name}-%{_revision}/rel/%{name}/erts-* \
+ %{buildroot}%{platform_lib_dir}
+cp -r $RPM_BUILD_DIR/%{name}-%{_revision}/rel/%{name}/releases \
+ %{buildroot}%{platform_lib_dir}
+cp -r $RPM_BUILD_DIR/%{name}-%{_revision}/share \
+ %{buildroot}%{_datadir}/%{name}
+install -p -D -m 0644 \
+ $RPM_BUILD_DIR/%{name}-%{_revision}/rel/%{name}/etc/app.config \
+ %{buildroot}%{platform_etc_dir}/
+install -p -D -m 0644 \
+ $RPM_BUILD_DIR/%{name}-%{_revision}/rel/%{name}/etc/vm.args \
+ %{buildroot}%{platform_etc_dir}/
+install -p -D -m 0755 \
+ $RPM_BUILD_DIR/%{name}-%{_revision}/rel/%{name}/bin/%{name} \
+ %{buildroot}/%{platform_bin_dir}/%{name}
+install -p -D -m 0755 %{SOURCE1} %{buildroot}/%{init_script}
+
+# Needed to work around check-rpaths which seems to be hardcoded into recent
+# RPM releases
+export QA_RPATHS=3
+
+
+%pre
+# create refuge group only if it doesn't already exist
+if ! getent group refuge >/dev/null 2>&1; then
+ groupadd -r refuge
+fi
+
+# create refuge user only if it doesn't already exist
+if ! getent passwd refuge >/dev/null 2>&1; then
+ useradd -r -g refuge --home %{platform_data_dir} refuge
+ usermod -c "Refuge"
+fi
+
+%post
+# Fixup perms for SELinux
+find %{platform_lib_dir} -name "*.so" -exec chcon -t textrel_shlib_t {} \;
+
+%files
+%defattr(-,refuge,refuge)
+%attr(-,root,root) %{_libdir}/*
+%dir %{platform_etc_dir}
+%config(noreplace) %{platform_etc_dir}/*
+%attr(0755,root,root) %{init_script}
+%attr(0755,root,root) %{platform_bin_dir}/%{name}
+%attr(0755,root,root) %{platform_bin_dir}/%{name}-admin
+%attr(0755,root,root) %{platform_bin_dir}/search-cmd
+%attr(0644,root,root) %{_datadir}/%{name}/www/*
+%attr(0644,root,root) %{_datadir}/%{name}/server/*
+%{platform_data_dir}
+%{platform_log_dir}
+%{_localstatedir}/run/%{name}
+
+%clean
+rm -rf %{buildroot}
View
60 package/solaris/Makefile
@@ -0,0 +1,60 @@
+# requires GNU make
+PKG = $(APP)
+# possible ARCH values are i386, sparc, all
+ARCH = $(shell uname -p)
+SOLARIS_VER ?= $(shell echo "$(KERNEL)" | sed -e 's/^5\.//')
+PKGFILE = $(PKG)-$(REVISION)-$(RELEASE)-$(DISTRO)$(SOLARIS_VER)-$(ARCH).pkg
+
+build: buildrel depend pkginfo prototype
+ cp $(PKGERDIR)/copyright $(PKGERDIR)/preinstall $(PKGERDIR)/*.preserve .
+ mkdir -p pkgbuild packages
+ pkgmk -o -d pkgbuild -a $(ARCH)
+ touch packages/$(PKGFILE)
+ pkgtrans -s pkgbuild packages/$(PKGFILE) $(PKG)
+ rm -r pkgbuild/$(PKG)
+ gzip packages/$(PKGFILE)
+ chmod 0644 $(CURDIR)/packages/$(PKGFILE).gz
+ @echo
+ @echo Wrote: $(CURDIR)/packages/$(PKGFILE).gz
+ @echo
+ cd packages && echo "`digest -a sha256 $(PKGFILE).gz` $(PKGFILE).gz" > $(PKGFILE).gz.sha
+
+# Build the release we need to package
+buildrel:
+ @# Make sure we set our EUID properly
+ echo "" >> $(REFUGE_PATH)/rel/vars.config
+ echo '{runner_user, "refuge"}.' >> $(REFUGE_PATH)/rel/refuge.config
+ @# Ye Olde Bourne Shell on Solaris means we have to do it old school
+ echo "Using `which erl` to build"; \
+ $(MAKE) -C $(REFUGE_PATH) deps rel
+ chmod 0755 $(REFUGE_PATH)/rel/refuge/bin/* \
+ $(REFUGE_PATH)/rel/refuge/erts-*/bin/*
+
+depend:
+ cp $(PKGERDIR)/depend .
+ if [ $(DISTRO) = "OpenSolaris" ]; then \
+ echo "P SUNWgawk GNU implementation of awk" >> depend; \
+ fi
+
+pkginfo:
+ sed -e 's/@@VERSION@@/$(REVISION)-$(RELEASE)/g' \
+ -e 's/@@PKG@@/$(PKG)/g' \
+ -e 's/@@PKGNAME@@/$(APP)/g' \
+ < $(PKGERDIR)/pkginfo.tmpl > pkginfo
+
+# NOTE! The instances of refuge below shouldn't change
+prototype:
+ echo "i pkginfo" > prototype
+ echo "i copyright" >> prototype
+ echo "i depend" >> prototype
+ echo "i preinstall" >> prototype
+ echo "i i.preserve" >> prototype
+ echo "i r.preserve" >> prototype
+ echo '' >> prototype
+ pkgproto $(REFUGE_PATH)/rel/refuge=refuge >> prototype
+ sed -e "s/ $(LOGNAME) .*$$/ refuge refuge/" \
+ -e 's/f none refuge\/etc/e preserve refuge\/etc/' prototype > prototype.tmp && mv prototype.tmp prototype
+
+$(PKGERDIR)/pkgclean:
+ rm -rf copyright depend pkgbuild pkginfo prototype
+
View
178 package/solaris/copyright
@@ -0,0 +1,178 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
View
5 package/solaris/depend
@@ -0,0 +1,5 @@
+# Same dependencies as Erlang
+P SUNWlibmsr Math & Microtasking Libraries (Root)
+P SUNWlibms Math & Microtasking Libraries (Usr)
+P SUNWopensslr OpenSSL (Root)
+P SUNWopenssl-libraries OpenSSL Libraries (Usr)
View
19 package/solaris/i.preserve
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# Copyright (C) 2010 by Basho Technologies, Inc.
+#
+
+#
+# If files are marked as "preserve" we want to simple install the new files
+# along side the original with a unique-ish name
+#
+
+while read src dest; do
+ if [ ! -f $dest ] ; then
+ cp $src $dest
+ else
+ format=`date '+%Y-%m-%d-%H:%M'`
+ cp $src $dest.$format
+ echo "$dest exists, not replacing. Saving as $dest.$format instead."
+ fi
+done
View
13 package/solaris/pkginfo.tmpl
@@ -0,0 +1,13 @@
+# Set this for the default basedir for relocatable packages
+BASEDIR=/opt
+CLASSES=none preserve
+TZ=EST
+PATH=/sbin:/usr/sbin:/usr/bin:/usr/sadm/install/bin
+PKG=@@PKG@@
+NAME=@@PKGNAME@@
+VERSION=@@VERSION@@
+CATEGORY=application
+DESC=A distributed, highly available data store
+VENDOR=Basho Technologies
+EMAIL=riak@basho.com
+PKGSAV=/var/sadm/pkg/@@PKG@@/save
View
15 package/solaris/preinstall
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# create refuge group only if it doesn't already exist
+getent group refuge >/dev/null 2>&1
+if [ $? -ne 0 ]; then
+ groupadd refuge
+fi
+
+# create refuge user only if it doesn't already exist
+getent passwd refuge >/dev/null 2>&1
+if [ $? -ne 0 ]; then
+ useradd -g refuge -d /opt/refuge refuge
+ usermod -c "refuge server" refuge
+fi
+
View
19 package/solaris/r.preserve
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+PKGBASE=/var/sadm/pkg/refuge
+RELOC=$PKGBASE/save/pspool/refuge/reloc
+
+while read dest
+do
+ orig=$RELOC/`echo $dest | cut -d / -f 3-`
+
+ dsum=`sum $dest | cut -d ' ' -f 1`
+ osum=`sum $orig | cut -d ' ' -f 1`
+
+ if [ "$dsum" = "$osum" ] ; then
+ # The file is the same as the original, just remove it
+ rm -f $dest
+ else
+ echo "Not removing changed file $dest"
+ fi
+done
View
4 rel/files/app.config
@@ -9,9 +9,9 @@
%% SASL config
{sasl, [
- {sasl_error_logger, {file, "log/sasl-error.log"}},
+ {sasl_error_logger, {file, "{{sasl_error_log}}"}},
{errlog_type, error},
- {error_logger_mf_dir, "log/sasl"}, % Log directory
+ {error_logger_mf_dir, "{{sasl_log_dir}}"}, % Log directory
{error_logger_mf_maxbytes, 10485760}, % 10 MB max file size
{error_logger_mf_maxfiles, 5} % 5 files max
]}
View
2 rel/files/default.ini
@@ -30,7 +30,7 @@ keyvalue_buffer_size = 2097152 ; value in bytes
[httpd]
port = {{couchdb_port}}
-bind_address = 0.0.0.0
+bind_address = {{couchdb_ip}}
authentication_handlers = {couch_httpd_oauth, oauth_authentication_handler}, {couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, default_authentication_handler}
default_handler = {couch_httpd_db, handle_request}
secure_rewrites = true
View
3 rel/refuge.config
@@ -13,8 +13,11 @@
%% app config
+{couchdb_ip, "0.0.0.0"}.
{couchdb_port, 5984}.
{ssl_port, 6986}.
+{sasl_error_log, "log/sasl-error.log"}.
+{sasl_log_dir, "log/sasl"}.
%% node
{node, "refuge@127.0.0.1"}.
View
3 rel/vars/dev1.config
@@ -13,8 +13,11 @@
%% app config
+{couchdb_ip, "127.0.0.1"}.
{couchdb_port, 15984}.
{ssl_port, 16986}.
+{sasl_error_log, "log/sasl-error.log"}.
+{sasl_log_dir, "log/sasl"}.
%% node
{node, "dev1@127.0.0.1"}.
View
3 rel/vars/dev2.config
@@ -13,8 +13,11 @@
%% app config
+{couchdb_ip, "127.0.0.1"}.
{couchdb_port, 25984}.
{ssl_port, 26986}.
+{sasl_error_log, "log/sasl-error.log"}.
+{sasl_log_dir, "log/sasl"}.
%% node
{node, "dev2@127.0.0.1"}.
View
3 rel/vars/dev3.config
@@ -13,8 +13,11 @@
%% app config
+{couchdb_ip, "127.0.0.1"}.
{couchdb_port, 35984}.
{ssl_port, 36986}.
+{sasl_error_log, "log/sasl-error.log"}.
+{sasl_log_dir, "log/sasl"}.
%% node
{node, "dev3@127.0.0.1"}.

0 comments on commit 6bb4855

Please sign in to comment.