void-packages/srcpkgs/orientdb/template

42 lines
1.4 KiB
Bash
Raw Normal View History

2015-03-07 01:47:14 +00:00
# Template file for 'orientdb'
pkgname=orientdb
2015-07-02 13:36:29 +00:00
version=2.0.12
2015-04-16 05:26:32 +00:00
revision=1
2015-03-07 01:47:14 +00:00
only_for_archs="i686 x86_64"
conf_files="/etc/orientdb/hazelcast.xml"
wrksrc="${pkgname}-community-${version}"
2015-04-12 19:14:12 +00:00
depends="virtual?java-runtime"
2015-03-07 01:47:14 +00:00
short_desc="Distributed Graph Database"
maintainer="bougyman <bougyman@rubyists.com>"
license="apache2"
patch_args="-p1"
homepage="http://orienttechnologies.com"
2015-06-11 17:41:48 +00: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-07-02 13:36:29 +00:00
checksum=68315fbcd9997451b84ea695fe862665fc5f8c29ec0a5e65d8a9cbe389687b56
2015-03-07 01:47:14 +00:00
system_accounts="orientdb"
conf_files="/etc/orientdb/default-distributed-db-config.json
2015-03-07 02:59:06 +00:00
/etc/sv/orientdb/conf
/etc/sv/orientdb/log/conf
/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 01:47:14 +00: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
}