1 # Contributor: spider-mario <spidermario@free.fr>
2 # Contributor: Yejun Yang (yejunx AT gmail DOT com)
7 pkgdesc="Open-source implementation of the Map-Reduce framework for distributed computing"
9 url="http://discoproject.org/"
10 license=('custom:BSD')
11 depends=(erlang openssh python2 python-cjson)
12 makedepends=(setuptools)
13 backup=(etc/disco/settings.py)
15 source=(https://github.com/tuulos/$pkgname/tarball/$pkgver
19 md5sums=('142ec90b5ea46e13b5898f9e823c554c'
20 '98a2953fba3a0946b7e319b3be47d487'
21 'b241a00d78b193a756d8c58907851287')
31 sed --expression='s/python$/python2/' --in-place "$script"
39 install --directory "$pkgdir/etc/rc.d"
43 INSTALL=/bin/install \
48 sed --expression='s/DISCO_HOME = .*/DISCO_HOME = "\/usr\/lib\/disco"/' \
49 --expression='s/DISCO_ROOT = .*/DISCO_ROOT = "\/var\/disco"/' \
50 --in-place "$pkgdir/etc/disco/settings.py"
52 install --directory "$pkgdir/var/disco/data"
53 install --directory "$pkgdir/var/disco/log"
54 install --directory "$pkgdir/var/disco/run"
56 install --directory "$pkgdir/usr/share/licenses/$pkgname"
57 install --mode=755 "$srcdir/disco-master" "$pkgdir/etc/rc.d/"
58 install --mode=755 "$srcdir/disco-node" "$pkgdir/etc/rc.d/"
59 install --mode=755 LICENSE "$pkgdir/usr/share/licenses/$pkgname/"