Merge pull request #1072 from bougyman/feature/orientdb_package
New package: orientdb-2.0.4
This commit is contained in:
commit
3552071e63
8 changed files with 85 additions and 0 deletions
17
srcpkgs/orientdb/INSTALL
Normal file
17
srcpkgs/orientdb/INSTALL
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# INSTALL
|
||||||
|
case "$ACTION" in
|
||||||
|
pre)
|
||||||
|
# Actions to execute before the package files are unpacked.
|
||||||
|
echo
|
||||||
|
;;
|
||||||
|
post)
|
||||||
|
if [ "$UPDATE" = "yes" ]; then
|
||||||
|
# actions to execute if package is being updated.
|
||||||
|
echo
|
||||||
|
else
|
||||||
|
# actions to execute if package is being installed.
|
||||||
|
mkdir -p /var/log/orientdb
|
||||||
|
chown -R orientdb /var/lib/orientdb /etc/orientdb /var/log/orientdb /usr/lib/orientdb/bin
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
8
srcpkgs/orientdb/INSTALL.msg
Normal file
8
srcpkgs/orientdb/INSTALL.msg
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
You must run the orientdb service once to initialize this node.
|
||||||
|
|
||||||
|
# cd /etc/sv/orientdb
|
||||||
|
# sudo ./run
|
||||||
|
|
||||||
|
Then you may enable the orientdb service
|
||||||
|
|
||||||
|
# sv-enable orientdb
|
3
srcpkgs/orientdb/files/orientdb/conf
Normal file
3
srcpkgs/orientdb/files/orientdb/conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Set to 'dserver' for distrubuted server
|
||||||
|
DAEMON=server
|
||||||
|
OPTS=""
|
1
srcpkgs/orientdb/files/orientdb/log/conf
Normal file
1
srcpkgs/orientdb/files/orientdb/log/conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
USERGROUP=orientdb:orientdb
|
1
srcpkgs/orientdb/files/orientdb/log/run
Symbolic link
1
srcpkgs/orientdb/files/orientdb/log/run
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/usr/bin/rsvlog
|
7
srcpkgs/orientdb/files/orientdb/run
Executable file
7
srcpkgs/orientdb/files/orientdb/run
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec 2>&1
|
||||||
|
# We have to source the profile to get java in our path
|
||||||
|
. /etc/profile
|
||||||
|
[ -f ./conf ] && . ./conf
|
||||||
|
DAEMON=${DAEMON:-server} # Set to dserver in conf for distributed server
|
||||||
|
exec chpst -u orientdb:orientdb /usr/lib/orientdb/bin/${DAEMON}.sh $OPTS
|
9
srcpkgs/orientdb/patches/00_bash_not_sh.patch
Normal file
9
srcpkgs/orientdb/patches/00_bash_not_sh.patch
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
diff -rupN orientdb-community-2.0.4.orig/bin/dserver.sh orientdb-community-2.0.4/bin/dserver.sh
|
||||||
|
--- orientdb-community-2.0.4.orig/bin/dserver.sh 2015-03-03 17:24:25.000000000 -0600
|
||||||
|
+++ orientdb-community-2.0.4/bin/dserver.sh 2015-03-06 19:21:41.272493588 -0600
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/bin/sh
|
||||||
|
+#!/bin/bash
|
||||||
|
#
|
||||||
|
# Copyright (c) Orient Technologies LTD (http://www.orientechnologies.com)
|
||||||
|
#
|
39
srcpkgs/orientdb/template
Normal file
39
srcpkgs/orientdb/template
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
# Template file for 'orientdb'
|
||||||
|
pkgname=orientdb
|
||||||
|
version=2.0.4
|
||||||
|
revision=1
|
||||||
|
only_for_archs="i686 x86_64"
|
||||||
|
conf_files="/etc/orientdb/hazelcast.xml"
|
||||||
|
wrksrc="${pkgname}-community-${version}"
|
||||||
|
depends="virtual?java-runtime sv-helper"
|
||||||
|
short_desc="Distributed Graph Database"
|
||||||
|
maintainer="bougyman <bougyman@rubyists.com>"
|
||||||
|
license="apache2"
|
||||||
|
patch_args="-p1"
|
||||||
|
homepage="http://orienttechnologies.com"
|
||||||
|
distfiles="http://www.orientechnologies.com/download.php?email=unknown@unknown.com&file=orientdb-community-${version}.tar.gz&os=linux>orientdb-community-${version}.tar.gz"
|
||||||
|
checksum=b7f6b29a057ea06855f94db138644244ca3ace58fb9b6b41b8036d7bbdd8f809
|
||||||
|
system_accounts="orientdb"
|
||||||
|
conf_files="etc/orientdb/default-distributed-db-config.json
|
||||||
|
etc/orientdb/hazelcast.xml
|
||||||
|
etc/orientdb/orientdb-client-log.properties
|
||||||
|
etc/orientdb/orientdb-server-config.xml
|
||||||
|
etc/orientdb/orientdb-server-log.properties"
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
vmkdir 'usr/lib/orientdb'
|
||||||
|
vmkdir 'etc/orientdb'
|
||||||
|
vmkdir 'var/lib/orientdb'
|
||||||
|
vmkdir 'usr/bin'
|
||||||
|
vcopy config/* etc/orientdb/
|
||||||
|
vcopy databases/* var/lib/orientdb/
|
||||||
|
rm -rf databases
|
||||||
|
rm -rf config
|
||||||
|
rm -rf log
|
||||||
|
ln -s /usr/lib/orientdb/bin/console.sh "${DESTDIR}/usr/bin/orientdb-console"
|
||||||
|
ln -s /var/log/orientdb "${DESTDIR}/usr/lib/orientdb/log"
|
||||||
|
ln -s /etc/orientdb "${DESTDIR}/usr/lib/orientdb/config"
|
||||||
|
ln -s /var/lib/orientdb "${DESTDIR}/usr/lib/orientdb/databases"
|
||||||
|
vcopy * usr/lib/orientdb
|
||||||
|
vsv orientdb
|
||||||
|
}
|
Loading…
Reference in a new issue