89a0a487b7
Closes: #7890 [via git-merge-pr]
35 lines
1.2 KiB
Bash
35 lines
1.2 KiB
Bash
# Template file for 'orientdb'
|
|
pkgname=orientdb
|
|
version=2.2.28
|
|
revision=1
|
|
only_for_archs="i686 x86_64"
|
|
conf_files="/etc/orientdb/hazelcast.xml"
|
|
wrksrc="${pkgname}-community-${version}"
|
|
depends="virtual?java-runtime"
|
|
short_desc="Distributed Graph Database"
|
|
maintainer="bougyman <bougyman@rubyists.com>"
|
|
license="Apache-2.0"
|
|
patch_args="-p1"
|
|
homepage="http://orientdb.com"
|
|
distfiles="http://www.orientdb.com/download.php?email=unknown@unknown.com&file=orientdb-community-${version}.tar.gz&os=linux>orientdb-community-${version}.tar.gz"
|
|
checksum=e9792d13246f19dbe5d5712dab974f378cb01e527f28617dcdb90cda443a49d7
|
|
system_accounts="orientdb"
|
|
conf_files="/etc/${pkgname}/*"
|
|
|
|
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
|
|
}
|