mirror of https://gitee.com/bigwinds/arangodb
Add debian folder to Installation.
This commit is contained in:
parent
9342b0bab9
commit
c1995cbb8a
|
@ -0,0 +1,7 @@
|
||||||
|
etc/arangodb/arangosh.conf
|
||||||
|
etc/arangodb/foxx-manager.conf
|
||||||
|
usr/bin/arangosh
|
||||||
|
usr/bin/foxx-manager
|
||||||
|
usr/share/arangodb/js/common
|
||||||
|
usr/share/arangodb/js/client
|
||||||
|
usr/share/arangodb/js/node
|
|
@ -0,0 +1,3 @@
|
||||||
|
/var/lib/arangodb
|
||||||
|
/var/lib/arangodb-apps
|
||||||
|
/var/log/arangodb
|
|
@ -0,0 +1,119 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
### BEGIN INIT INFO
|
||||||
|
# Provides: arangodb
|
||||||
|
# Required-Start: $remote_fs $syslog
|
||||||
|
# Required-Stop: $remote_fs $syslog
|
||||||
|
# Default-Start: 2 3 4 5
|
||||||
|
# Default-Stop: 0 1 6
|
||||||
|
# Short-Description: arangodb
|
||||||
|
# Description: arango database server
|
||||||
|
### END INIT INFO
|
||||||
|
|
||||||
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||||
|
DAEMON=/usr/sbin/arangod
|
||||||
|
DESC="arango database server"
|
||||||
|
NAME="arangod"
|
||||||
|
PIDDIR=/var/run/arangodb
|
||||||
|
PIDFILE=/var/run/arangodb/arangod.pid
|
||||||
|
CONF=/etc/arangodb/arangod.conf
|
||||||
|
|
||||||
|
test -x $DAEMON || exit 0
|
||||||
|
|
||||||
|
if [ `id -u` -ne 0 ]; then
|
||||||
|
echo "You need root privileges to run this script"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
start () {
|
||||||
|
[ -d $PIDDIR ] || mkdir $PIDDIR || exit 1
|
||||||
|
|
||||||
|
( cd /var/log/arangodb && chown -R arangodb:arangodb . ) || exit 1
|
||||||
|
( cd /var/lib/arangodb && chown -R arangodb:arangodb . ) || exit 1
|
||||||
|
( cd /var/lib/arangodb-apps && chown -R arangodb:arangodb . ) || exit 1
|
||||||
|
( cd $PIDDIR && chown arangodb:arangodb . ) || exit 1
|
||||||
|
|
||||||
|
if [ "$1" = "--upgrade" ]; then
|
||||||
|
$DAEMON -c $CONF --uid arangodb --gid arangodb --no-server $@
|
||||||
|
RETVAL=$?
|
||||||
|
log_end_msg $RETVAL
|
||||||
|
else
|
||||||
|
$DAEMON -c $CONF --uid arangodb --gid arangodb --no-server --log.tty "" --check-version
|
||||||
|
RETVAL=$?
|
||||||
|
|
||||||
|
if [ "$RETVAL" -eq 0 ]; then
|
||||||
|
$DAEMON -c $CONF --uid arangodb --gid arangodb --pid-file "$PIDFILE" --temp-path "/var/tmp/arangod" --log.tty "" --supervisor $@
|
||||||
|
RETVAL=$?
|
||||||
|
log_end_msg $RETVAL
|
||||||
|
else
|
||||||
|
log_failure_msg "database version check failed, maybe need to run 'upgrade'?"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
return $RETVAL
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
log_daemon_msg "Starting $DESC" "$NAME"
|
||||||
|
|
||||||
|
start
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
|
||||||
|
stop)
|
||||||
|
log_daemon_msg "Stopping $DESC" "$NAME"
|
||||||
|
|
||||||
|
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON
|
||||||
|
RETVAL=$?
|
||||||
|
log_end_msg $RETVAL
|
||||||
|
|
||||||
|
log_daemon_msg "Waiting for shutdown" ""
|
||||||
|
|
||||||
|
c=0
|
||||||
|
|
||||||
|
while test -f $PIDFILE -a $c -lt 30 && ps --pid `cat $PIDFILE` > /dev/null; do
|
||||||
|
log_progress_msg "."
|
||||||
|
sleep 2
|
||||||
|
c=`expr $c + 1`
|
||||||
|
done
|
||||||
|
|
||||||
|
log_progress_msg "done"
|
||||||
|
log_end_msg 0
|
||||||
|
|
||||||
|
rm -f $PIDFILE
|
||||||
|
exit $RETVAL
|
||||||
|
;;
|
||||||
|
|
||||||
|
restart)
|
||||||
|
$0 stop
|
||||||
|
sleep 3
|
||||||
|
$0 start
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
|
||||||
|
force-reload)
|
||||||
|
$0 restart
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
|
||||||
|
status)
|
||||||
|
status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
|
||||||
|
;;
|
||||||
|
|
||||||
|
upgrade)
|
||||||
|
log_daemon_msg "Upgrading $DESC" "$NAME"
|
||||||
|
|
||||||
|
start --upgrade
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
log_success_msg "Usage: /etc/init.d/arangodb {start|stop|restart|force-reload|status|upgrade}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit 0
|
|
@ -0,0 +1,6 @@
|
||||||
|
etc/arangodb
|
||||||
|
usr/bin
|
||||||
|
usr/sbin
|
||||||
|
usr/lib
|
||||||
|
usr/share/arangodb
|
||||||
|
usr/share/man
|
|
@ -0,0 +1,29 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
echo "
|
||||||
|
ArangoDB 2 (http://www.arangodb.org)
|
||||||
|
A multi-purpose open-source database with a flexible data model for documents,
|
||||||
|
graphs, and key-values.
|
||||||
|
|
||||||
|
First Steps with ArangoDB:
|
||||||
|
http:/www.arangodb.org/quickstart
|
||||||
|
|
||||||
|
Upgrading ArangoDB:
|
||||||
|
http://www.arangodb.org/manuals/current/Upgrading.html
|
||||||
|
|
||||||
|
Upgrading ArangoDB database files:
|
||||||
|
> /etc/init.d/arangodb upgrade
|
||||||
|
|
||||||
|
Configuration file:
|
||||||
|
/etc/arangodb/arangod.conf
|
||||||
|
|
||||||
|
Start ArangoDB shell client:
|
||||||
|
> /usr/bin/arangosh
|
||||||
|
|
||||||
|
Start ArangoDB service:
|
||||||
|
> /etc/init.d/arangodb start
|
||||||
|
"
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
if [ purge = "$1" ]; then
|
||||||
|
rm -rf /usr/share/arangodb/js/apps
|
||||||
|
rm -rf /var/log/arangodb
|
||||||
|
rm -rf /var/lib/arangodb
|
||||||
|
rm -rf /var/lib/arangodb-apps
|
||||||
|
rm -rf /var/run/arangodb
|
||||||
|
fi
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
getent group arangodb >/dev/null || groupadd -r arangodb
|
||||||
|
getent passwd arangodb >/dev/null || useradd -r -g arangodb -d /usr/share/arangodb -s /bin/false -c "ArangoDB Application User" arangodb
|
||||||
|
|
||||||
|
install -o arangodb -g arangodb -m 755 -d /var/lib/arangodb
|
||||||
|
install -o arangodb -g arangodb -m 755 -d /var/lib/arangodb-apps
|
||||||
|
install -o arangodb -g arangodb -m 755 -d /var/log/arangodb
|
||||||
|
|
||||||
|
#DEBHELPER#
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
#DEBHELPER#
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1 @@
|
||||||
|
8
|
|
@ -0,0 +1,47 @@
|
||||||
|
Source: arangodb
|
||||||
|
Section: database
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: ArangoDB GmbH <info@arangodb.com>
|
||||||
|
Build-Depends: debhelper (>= 5), libreadline-dev, libssl-dev, python, libicu-dev, libtool, autoconf, automake
|
||||||
|
|
||||||
|
Package: arangodb
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
|
Conflicts: arangodb-client
|
||||||
|
Description: a multi-purpose NoSQL database
|
||||||
|
A distributed free and open-source database with a flexible data model for documents,
|
||||||
|
graphs, and key-values. Build high performance applications using a convenient
|
||||||
|
SQL-like query language or JavaScript extensions.
|
||||||
|
.
|
||||||
|
Copyright: 2012-2013 by triAGENS GmbH
|
||||||
|
Copyright: 2014-2015 by ArangoDB GmbH
|
||||||
|
ArangoDB Software
|
||||||
|
www.arangodb.com
|
||||||
|
|
||||||
|
Package: arangodb-client
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
|
Conflicts: arangodb
|
||||||
|
Description: stand-alone shell
|
||||||
|
A distributed free and open-source database with a flexible data model for documents,
|
||||||
|
graphs, and key-values. Build high performance applications using a convenient
|
||||||
|
SQL-like query language or JavaScript extensions.
|
||||||
|
.
|
||||||
|
Copyright: 2012-2013 by triAGENS GmbH
|
||||||
|
Copyright: 2014-2015 by ArangoDB GmbH
|
||||||
|
ArangoDB Software
|
||||||
|
www.arangodb.com
|
||||||
|
|
||||||
|
Package: arangodb-dbg
|
||||||
|
Architecture: any
|
||||||
|
Section: debug
|
||||||
|
Priority: extra
|
||||||
|
Depends:
|
||||||
|
arangodb (= ${binary:Version}),
|
||||||
|
${misc:Depends}
|
||||||
|
Description: debugging symbols for arangodb
|
||||||
|
A distributed free and open-source database with a flexible data model for documents,
|
||||||
|
graphs, and key-values. Build high performance applications using a convenient
|
||||||
|
SQL-like query language or JavaScript extensions.
|
||||||
|
.
|
||||||
|
This package contains the debugging symbols for giblib1.
|
|
@ -0,0 +1,14 @@
|
||||||
|
This is the Debian GNU/Linux prepackaged version of arangodb.
|
||||||
|
It was packaged by Frank Celler <f.celler@arangodb.org>
|
||||||
|
from sources obtained from http://github.com/triAGENS/ArangoDB.
|
||||||
|
|
||||||
|
Copyright:
|
||||||
|
|
||||||
|
Copyright (C) 2012-2013 triAGENS GmbH
|
||||||
|
2014 ArangoDB GmbH
|
||||||
|
|
||||||
|
License:
|
||||||
|
|
||||||
|
ArangoDB is distributed under the terms of the Apache2 licenses.
|
||||||
|
On Debian GNU/Linux system you can find a copy of this
|
||||||
|
license in `/usr/share/common-licenses/Apache-2.0'.
|
|
@ -0,0 +1,141 @@
|
||||||
|
#!/usr/bin/make -f
|
||||||
|
# Sample debian/rules that uses debhelper.
|
||||||
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
||||||
|
|
||||||
|
# Uncomment this to turn on verbose mode.
|
||||||
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
|
# This is the debhelper compatibility version to use.
|
||||||
|
# export DH_COMPAT=7
|
||||||
|
|
||||||
|
CFLAGS = -g
|
||||||
|
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
||||||
|
CFLAGS += -O0
|
||||||
|
else
|
||||||
|
CFLAGS += -O3
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq (yes,$(shell test -f /opt/gnu/bin/gcc && echo yes))
|
||||||
|
USE_CC = CC=/opt/gnu/bin/gcc
|
||||||
|
USE_CXX = CXX=/opt/gnu/bin/g++
|
||||||
|
else
|
||||||
|
USE_CC = CC=gcc
|
||||||
|
USE_CXX = CXX=g++
|
||||||
|
endif
|
||||||
|
|
||||||
|
build-arch: build
|
||||||
|
build-indep: build
|
||||||
|
build: build-stamp
|
||||||
|
build-stamp:
|
||||||
|
dh_testdir
|
||||||
|
|
||||||
|
# Add here commands to compile the package.
|
||||||
|
./configure $(USE_CC) $(USE_CXX) \
|
||||||
|
--program-prefix= \
|
||||||
|
--prefix=/usr \
|
||||||
|
--exec-prefix=/usr \
|
||||||
|
--bindir=/usr/bin \
|
||||||
|
--sbindir=/usr/sbin \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--datadir=/usr/share \
|
||||||
|
--includedir=/usr/include \
|
||||||
|
--libdir=/usr/lib \
|
||||||
|
--libexecdir=/usr/lib \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--sharedstatedir=/usr/com \
|
||||||
|
--mandir=/usr/share/man \
|
||||||
|
--infodir=/usr/share/info \
|
||||||
|
--enable-all-in-one-etcd \
|
||||||
|
--enable-tcmalloc
|
||||||
|
|
||||||
|
# hidden files
|
||||||
|
rm -f js/node/node_modules/cheerio/.jshintrc
|
||||||
|
rm -f js/node/node_modules/cheerio/node_modules/htmlparser2/.gitattributes
|
||||||
|
rm -f js/node/node_modules/sinon/node_modules/util/.zuul.yml
|
||||||
|
rm -f js/node/node_modules/sinon/node_modules/formatio/node_modules/samsam/.project
|
||||||
|
rm -f js/node/node_modules/moment/.vimrc-local
|
||||||
|
rm -f js/node/node_modules/moment/.sauce-labs.creds
|
||||||
|
rm -f js/node/node_modules/htmlparser2/.gitattributes
|
||||||
|
|
||||||
|
# executables
|
||||||
|
rm -f js/node/node_modules/cheerio/scripts/prepublish
|
||||||
|
rm -f js/node/node_modules/buster-format/node_modules/buster-core/vendor/buster-util/jstdhtml
|
||||||
|
rm -f js/node/node_modules/buster-format/node_modules/buster-core/run-tests
|
||||||
|
rm -f js/node/node_modules/iced-coffee-script/node_modules/docco/node_modules/fs-extra/node_modules/rimraf/bin.js
|
||||||
|
rm -f js/node/node_modules/buster-format/node_modules/buster-core/vendor/sinon/build
|
||||||
|
rm -f js/node/node_modules/iced-coffee-script/node_modules/docco/node_modules/fs-extra/node_modules/rimraf/test/setup.sh
|
||||||
|
rm -f js/node/node_modules/buster-format/run-tests
|
||||||
|
rm -f js/node/node_modules/iced-coffee-script/node_modules/docco/node_modules/fs-extra/node_modules/rimraf/test/run.sh
|
||||||
|
|
||||||
|
# empty
|
||||||
|
rm -f js/node/node_modules/iced-coffee-script/node_modules/docco/node_modules/fs-extra/node_modules/ncp/test/fixtures/src/sub/b
|
||||||
|
rm -f js/node/node_modules/iced-coffee-script/node_modules/docco/node_modules/fs-extra/node_modules/ncp/test/fixtures/src/c
|
||||||
|
rm -f js/node/node_modules/iced-coffee-script/node_modules/docco/node_modules/fs-extra/node_modules/ncp/test/fixtures/src/e
|
||||||
|
rm -f js/node/node_modules/iced-coffee-script/node_modules/docco/node_modules/fs-extra/node_modules/ncp/test/fixtures/src/d
|
||||||
|
rm -f js/node/node_modules/iced-coffee-script/node_modules/docco/node_modules/fs-extra/node_modules/ncp/test/fixtures/src/f
|
||||||
|
|
||||||
|
# not used
|
||||||
|
rm -rf js/node/node_modules/js-yaml/demo
|
||||||
|
|
||||||
|
rm -f .file-list-js
|
||||||
|
make -j12 all
|
||||||
|
|
||||||
|
# --- end custom part for compiling
|
||||||
|
|
||||||
|
touch build-stamp
|
||||||
|
|
||||||
|
clean:
|
||||||
|
dh_testdir
|
||||||
|
dh_testroot
|
||||||
|
rm -f build-stamp
|
||||||
|
|
||||||
|
# Add here commands to clean up after the build process.
|
||||||
|
make clean || true
|
||||||
|
# --- end custom part for cleaning up
|
||||||
|
|
||||||
|
dh_clean
|
||||||
|
|
||||||
|
install: build
|
||||||
|
dh_testdir
|
||||||
|
dh_testroot
|
||||||
|
dh_prep
|
||||||
|
dh_installdirs
|
||||||
|
dh_auto_install
|
||||||
|
|
||||||
|
# Build architecture-independent files here.
|
||||||
|
binary-indep: build install
|
||||||
|
# We have nothing to do by default.
|
||||||
|
|
||||||
|
# Build architecture-dependent files here.
|
||||||
|
binary-arch: build install
|
||||||
|
dh_testdir
|
||||||
|
dh_testroot
|
||||||
|
# dh_installdebconf
|
||||||
|
dh_installdocs
|
||||||
|
dh_installexamples
|
||||||
|
dh_installmenu
|
||||||
|
# dh_installlogrotate
|
||||||
|
# dh_installemacsen
|
||||||
|
# dh_installpam
|
||||||
|
# dh_installmime
|
||||||
|
dh_installinit
|
||||||
|
dh_installcron
|
||||||
|
dh_installman
|
||||||
|
dh_installinfo
|
||||||
|
dh_install
|
||||||
|
# dh_undocumented
|
||||||
|
dh_installchangelogs
|
||||||
|
dh_link
|
||||||
|
dh_strip --dbg-package=arangodb-dbg
|
||||||
|
dh_compress
|
||||||
|
dh_fixperms
|
||||||
|
# dh_makeshlibs
|
||||||
|
dh_installdeb
|
||||||
|
# dh_perl
|
||||||
|
dh_shlibdeps
|
||||||
|
dh_gencontrol
|
||||||
|
dh_md5sums
|
||||||
|
dh_builddeb
|
||||||
|
|
||||||
|
binary: binary-indep binary-arch
|
||||||
|
.PHONY: build clean binary-indep binary-arch binary install
|
Loading…
Reference in New Issue