Merge pull request #1318 from bougyman/master

New package: apache-storm-0.9.4
This commit is contained in:
bougyman 2015-04-14 14:29:15 -05:00
commit 566b812f89
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# INSTALL
case "$ACTION" in
pre)
# Actions to execute before the package files are unpacked.
echo
;;
post)
if [ "$UPDATE" = "yes" ]; then
# actions to execute if package is being updated.
echo
else
# actions to execute if package is being installed.
mkdir -p /var/log/apache-storm
chown -R storm:storm /var/lib/apache-storm /var/log/apache-storm
fi
;;
esac

View File

@ -0,0 +1,39 @@
# Template file for 'apache-storm'
pkgname=apache-storm
version=0.9.4
revision=1
only_for_archs="i686 x86_64"
depends="virtual?java-runtime python"
short_desc="Distributed realtime computation system"
maintainer="bougyman <bougyman@voidlinux.eu>"
license="Apache-2.0"
homepage="https://storm.apache.org/"
distfiles="http://apache.osuosl.org/storm/apache-storm-${version}/apache-storm-${version}.tar.gz"
checksum=2cdb3530839375bb5f18751ff16ff78b11e9b4f6d23c423c95d78487ad92d38e
system_accounts="storm"
system_groups="storm"
storm_pgroup="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
vmkdir var/lib/apache-storm
vcopy logback 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
vlicense LICENSE
}