void-packages/srcpkgs/apache-storm/template

37 lines
1.3 KiB
Bash

# Template file for 'apache-storm'
pkgname=apache-storm
version=2.4.0
revision=1
depends="virtual?java-runtime python3 bash"
short_desc="Distributed realtime computation system"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://storm.apache.org/"
distfiles="http://apache.osuosl.org/storm/apache-storm-${version}/apache-storm-${version}.tar.gz"
checksum=54535c68848f05130647997f3fafe91a72bb9470a50d6d80997274d20cf1c0c6
python_version=3
system_accounts="storm"
storm_homedir="/var/lib/apache-storm"
storm_shell="/bin/bash"
storm_descr="unprivileged user to run apache-storm java classes"
do_install() {
vbin bin/storm
vbin bin/storm.py
vmkdir var/lib/apache-storm
vcopy public var/lib/apache-storm
vmkdir usr/lib/apache-storm
vcopy external usr/lib/apache-storm
vcopy lib usr/lib/apache-storm
vmkdir etc/apache-storm
vcopy conf/* etc/apache-storm
vmkdir usr/share/examples/apache-storm
vcopy examples/* usr/share/examples/apache-storm
ln -s /usr/share/examples/apache-storm ${DESTDIR}/var/lib/apache-storm/examples
ln -s /etc/apache-storm ${DESTDIR}/var/lib/apache-storm/conf
ln -s /usr/lib/apache-storm/lib ${DESTDIR}/var/lib/apache-storm/lib
ln -s /usr/lib/apache-storm/external ${DESTDIR}/var/lib/apache-storm/external
vdoc README.markdown
vdoc SECURITY.md
}