1 # Maintainer: Shanto <shanto@hotmail.com>
2 # Contributor: vbPadre <vbpadre@gmail.com>
7 pkgdesc="An easy server administration frontend (like Webmin)."
9 url="http://ajenti.org/"
11 depends=('python2' 'python-lxml' 'python2-pyopenssl' 'python2-feedparser' 'python2-gevent')
12 makedepends=('git' 'python2' 'python2-distribute')
14 'python2-psutil: Task Manager plugin'
15 'python-beautifulsoup: Munin plugin'
18 install='ajenti.install'
19 source=('https://raw.github.com/Eugeny/ajenti/142d43219ab11d305d9b04f3c1daf256ca090248/packaging/files/ajenti.arch')
20 md5sums=('007a9297dc1c7dc75d04b3b76b7962b5')
22 gitroot=git://github.com/Eugeny/ajenti.git
28 msg "Connecting to GIT server...."
30 if [[ -d "$gitname" ]]; then
31 cd "$gitname" && git fetch
32 msg "The local files are updated."
34 git clone "$gitroot" "$gitname"
37 msg "GIT checkout done or server timeout"
38 msg "Starting build..."
40 rm -rf "$srcdir/$gitname-build"
41 git clone "$srcdir/$gitname" "$srcdir/$gitname-build"
42 cd "$srcdir/$gitname-build"
43 git checkout "$pkgver"
47 cd "$srcdir/$gitname-build"
48 find . -name '*.py' -exec sed -i 's|#!/usr/bin/env python|#!/usr/bin/python2|' "{}" \;
49 python2 setup.py install --root "$pkgdir"
50 mv "$pkgdir/etc/init.d" "$pkgdir/etc/rc.d"
51 install "$srcdir/ajenti.arch" "$pkgdir/etc/rc.d/ajenti"
52 rm -rf "$srcdir/$gitname-build"