void-packages/srcpkgs/orientdb/template

36 lines
1.2 KiB
Bash
Raw Normal View History

2015-03-07 02:47:14 +01:00
# Template file for 'orientdb'
pkgname=orientdb
2015-10-21 10:40:18 +02:00
version=2.1.4
revision=3
2015-03-07 02:47:14 +01:00
only_for_archs="i686 x86_64"
conf_files="/etc/orientdb/hazelcast.xml"
wrksrc="${pkgname}-community-${version}"
2015-04-12 21:14:12 +02:00
depends="virtual?java-runtime"
2015-03-07 02:47:14 +01:00
short_desc="Distributed Graph Database"
maintainer="bougyman <bougyman@rubyists.com>"
license="Apache-2.0"
2015-03-07 02:47:14 +01:00
patch_args="-p1"
homepage="http://orienttechnologies.com"
2015-06-11 19:41:48 +02:00
distfiles="http://www.orientdb.com/download.php?email=unknown@unknown.com&file=orientdb-community-${version}.tar.gz&os=linux>orientdb-community-${version}.tar.gz"
2015-10-21 10:40:18 +02:00
checksum=c4ee9e1b93266e1d8f26c700e82b5066a2919d748a9d10f429724c22f670f691
2015-03-07 02:47:14 +01:00
system_accounts="orientdb"
conf_files="/etc/$pkgname/*"
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
}