diff options
author | François Garillot | 2016-01-26 13:28:36 +0100 |
---|---|---|
committer | François Garillot | 2016-01-26 13:29:23 +0100 |
commit | 4a794ddd2cf58022bf82d945b4b06870eacaad84 (patch) | |
tree | 270fb3eca44f8a211e5b40a8da50a5c8145f748e | |
parent | ece92eebfba8d32220bab0afdb05da5e466a2693 (diff) | |
download | aur-4a794ddd2cf58022bf82d945b4b06870eacaad84.tar.gz |
Added SPARK_HOME in /etc/profile.d
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 9 insertions, 3 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Wed Jan 6 11:11:52 UTC 2016 +# Tue Jan 26 12:28:31 UTC 2016 pkgbase = apache-spark pkgdesc = fast and general engine for large-scale data processing pkgver = 1.6.0 - pkgrel = 3 + pkgrel = 4 url = http://spark.apache.org install = apache-spark.install arch = any @@ -3,7 +3,7 @@ pkgname=apache-spark pkgver=1.6.0 -pkgrel=3 +pkgrel=4 pkgdesc="fast and general engine for large-scale data processing" arch=('any') url="http://spark.apache.org" @@ -52,6 +52,12 @@ package() { sed -i 's|^export SPARK_HOME=.*$|export SPARK_HOME=/usr/share/apache-spark|' "$pkgdir/$binpath" done + mkdir -p $pkgdir/etc/profile.d + echo '#!/bin/sh' > $pkgdir/etc/profile.d/apache-spark.sh + echo SPARK_HOME=$pkgdir/usr/share/apache-spark' >> $pkgdir/etc/profile.d/netkit.sh + echo 'export SPARK_HOME' >> $pkgdir/etc/profile.d/netkit.sh + chmod 755 $pkgdir/etc/profile.d/netkit.sh + install -Dm644 "$srcdir/apache-spark-standalone.service" "$pkgdir/usr/lib/systemd/system/apache-spark-standalone.service" install -Dm644 "$srcdir/spark-env.sh" "$pkgdir/etc/apache-spark/spark-env.sh" |