mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
62 lines
1.9 KiB
Bash
Executable File
62 lines
1.9 KiB
Bash
Executable File
# Maintainer: Christer Edwards <christer.edwards@gmail.com>
|
|
|
|
pkgname=salt
|
|
pkgver=0.11.1
|
|
pkgrel=1
|
|
pkgdesc="A remote execution and communication system built on zeromq"
|
|
arch=(any)
|
|
url="https://github.com/saltstack/salt"
|
|
license=("APACHE")
|
|
depends=('python2'
|
|
'python2-pyzmq'
|
|
'python-m2crypto'
|
|
'python2-yaml'
|
|
'python2-crypto'
|
|
'python2-psutil'
|
|
'python2-jinja'
|
|
'python2-msgpack')
|
|
|
|
backup=('etc/salt/master'
|
|
'etc/salt/minion')
|
|
|
|
makedepends=()
|
|
optdepends=()
|
|
options=()
|
|
conflicts=('salt-git')
|
|
|
|
source=("http://pypi.python.org/packages/source/s/${pkgname}/${pkgname}-${pkgver}.tar.gz"
|
|
"salt-master.service"
|
|
"salt-syndic.service"
|
|
"salt-minion.service"
|
|
"salt-master"
|
|
"salt-syndic"
|
|
"salt-minion")
|
|
|
|
md5sums=('0e96a361a5bfb9a208a6a30b2537a7c2'
|
|
'3a2b032ec37077363c049969105b128e'
|
|
'e4c6adce5087e947c26c5c9d9fc3c9bb'
|
|
'833d31ebee69f5c0e2c0b6c8d345b6d7'
|
|
'33bb43fa74f67da7675c093664d43159'
|
|
'b4adb3a08871646c345f0050e3d55fae'
|
|
'ce64b6fb207142465bb5e2855e27cd8a')
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
python2 setup.py install --root=${pkgdir}/ --optimize=1
|
|
|
|
mkdir -p ${pkgdir}/etc/rc.d/
|
|
cp ${srcdir}/salt-master ${pkgdir}/etc/rc.d/
|
|
cp ${srcdir}/salt-minion ${pkgdir}/etc/rc.d/
|
|
cp ${srcdir}/salt-syndic ${pkgdir}/etc/rc.d/
|
|
chmod +x ${pkgdir}/etc/rc.d/salt-{master,minion,syndic}
|
|
|
|
install -Dm644 ${srcdir}/salt-master.service ${pkgdir}/usr/lib/systemd/system/salt-master.service
|
|
install -Dm644 ${srcdir}/salt-syndic.service ${pkgdir}/usr/lib/systemd/system/salt-syndic.service
|
|
install -Dm644 ${srcdir}/salt-minion.service ${pkgdir}/usr/lib/systemd/system/salt-minion.service
|
|
|
|
mkdir -p ${pkgdir}/etc/salt/
|
|
cp ${srcdir}/${pkgname}-${pkgver}/conf/master ${pkgdir}/etc/salt/
|
|
cp ${srcdir}/${pkgname}-${pkgver}/conf/minion ${pkgdir}/etc/salt/
|
|
}
|