2011-07-28 17:53:48 +00:00
|
|
|
# Maintainer: Thomas S Hatch <thatch45 at gmail dot com>
|
|
|
|
# Build the salt package from local files.
|
|
|
|
# Use this to test Arch installation before committing changes.
|
2011-08-10 17:20:33 +00:00
|
|
|
pkgname=salt
|
2011-07-28 17:53:48 +00:00
|
|
|
pkgver=$(date +%Y%m%d)
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A remote execution and communication system built on zeromq"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/thatch45/salt"
|
|
|
|
license=('APACHE')
|
|
|
|
groups=()
|
|
|
|
depends=('python2'
|
|
|
|
'python2-pyzmq'
|
|
|
|
'python-m2crypto'
|
|
|
|
'python2-yaml'
|
2011-08-23 00:23:41 +00:00
|
|
|
'pycrypto'
|
|
|
|
'python2-psutil')
|
2011-07-28 17:53:48 +00:00
|
|
|
makedepends=('git')
|
|
|
|
provides=()
|
2016-03-01 15:37:18 +00:00
|
|
|
backup=('etc/salt/master'
|
2011-08-10 19:54:38 +00:00
|
|
|
'etc/salt/minion')
|
2011-07-28 17:53:48 +00:00
|
|
|
options=()
|
|
|
|
srcdir="$PWD/../.."
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir"
|
|
|
|
|
|
|
|
python2 setup.py install --root=$pkgdir/ --optimize=1
|
2016-03-01 15:37:18 +00:00
|
|
|
|
2011-07-28 17:53:48 +00:00
|
|
|
mkdir -p $pkgdir/etc/rc.d/
|
2011-08-10 17:20:33 +00:00
|
|
|
cp $srcdir/pkg/arch/salt-master $pkgdir/etc/rc.d/
|
|
|
|
cp $srcdir/pkg/arch/salt-minion $pkgdir/etc/rc.d/
|
2011-07-28 17:53:48 +00:00
|
|
|
chmod +x $pkgdir/etc/rc.d/*
|
2016-03-01 15:37:18 +00:00
|
|
|
}
|