2015-03-07 02:47:14 +01:00
|
|
|
# Template file for 'orientdb'
|
|
|
|
pkgname=orientdb
|
2015-03-29 16:19:44 +02:00
|
|
|
version=2.0.5
|
|
|
|
revision=1
|
2015-03-07 02:47:14 +01:00
|
|
|
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"
|
2015-03-29 16:19:44 +02:00
|
|
|
checksum=6e136a5ba14265c0515dab0eb269a3c32fe00f617c044595b581941db39e3cee
|
2015-03-07 02:47:14 +01:00
|
|
|
system_accounts="orientdb"
|
2015-03-07 03:55:57 +01:00
|
|
|
conf_files="/etc/orientdb/default-distributed-db-config.json
|
2015-03-07 03:59:06 +01:00
|
|
|
/etc/sv/orientdb/conf
|
|
|
|
/etc/sv/orientdb/log/conf
|
2015-03-07 03:55:57 +01:00
|
|
|
/etc/orientdb/hazelcast.xml
|
|
|
|
/etc/orientdb/orientdb-client-log.properties
|
|
|
|
/etc/orientdb/orientdb-server-config.xml
|
|
|
|
/etc/orientdb/orientdb-server-log.properties"
|
2015-03-07 02:47:14 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|