summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
2 files changed, 9 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 98424f811024..fa6708d91135 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 15160eddf9ca..59253c9482af 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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"