Date: Wednesday, April 9, 2014 @ 01:30:40 Author: dwallace Revision: 108989
archrelease: copy trunk to community-any Added: salt-api/repos/ salt-api/repos/community-any/ salt-api/repos/community-any/PKGBUILD (from rev 108988, salt-api/trunk/PKGBUILD) salt-api/repos/community-any/salt-api.service (from rev 108988, salt-api/trunk/salt-api.service) ------------------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ salt-api.service | 10 ++++++++++ 2 files changed, 49 insertions(+) Copied: salt-api/repos/community-any/PKGBUILD (from rev 108988, salt-api/trunk/PKGBUILD) =================================================================== --- repos/community-any/PKGBUILD (rev 0) +++ repos/community-any/PKGBUILD 2014-04-08 23:30:40 UTC (rev 108989) @@ -0,0 +1,39 @@ +# $Id$ +# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com> +# Contributor: Christer Edwards <christer.edwa...@gmail.com> + +pkgname=salt-api +pkgver=0.8.4.1 +pkgrel=1 +pkgdesc="Salt API is used to expose the fundamental aspects of Salt control to external sources." +arch=(any) +url="https://github.com/saltstack/salt-api" +license=("APACHE") +depends=('salt' + 'python2-requests') +makedepends=('python2-setuptools') +optdepends=('python2-cherrypy: rest_cherrypy interface') + +source=("http://pypi.python.org/packages/source/s/${pkgname}/${pkgname}-${pkgver}.tar.gz" + salt-api.service) + +sha256sums=('b733534a1de80602d89938be9c328cd83b9cf27b69bc0ffa661e17369b7c5dd6' + 'b28b93928a5210a3340ad420f8b9b372fb22888b3765238796331f59c6d681c3') + +prepare(){ + find $srcdir/$pkgname-$pkgver -type f -name '*.py' | xargs sed -i '1s/python$/&2/' +} + + +build() { + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py build + chmod a+r doc/man/* +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py install --skip-build -O1 --root="$pkgdir" + install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm0644 "$srcdir/salt-api.service" "$pkgdir/usr/lib/systemd/system/salt-api.service" +} Copied: salt-api/repos/community-any/salt-api.service (from rev 108988, salt-api/trunk/salt-api.service) =================================================================== --- repos/community-any/salt-api.service (rev 0) +++ repos/community-any/salt-api.service 2014-04-08 23:30:40 UTC (rev 108989) @@ -0,0 +1,10 @@ +[Unit] +Description=The Salt API +After=syslog.target network.target + +[Service] +Type=simple +ExecStart=/usr/bin/salt-api + +[Install] +WantedBy=multi-user.target