salt/pkg/arch/PKGBUILD

62 lines
1.9 KiB
Bash
Raw Normal View History

# Maintainer: Christer Edwards <christer.edwards@gmail.com>
2011-02-27 23:46:05 +00:00
pkgname=salt
2013-02-12 18:05:40 +00:00
pkgver=0.13.0
2011-02-27 23:46:05 +00:00
pkgrel=1
2011-03-17 17:57:31 +00:00
pkgdesc="A remote execution and communication system built on zeromq"
2011-02-27 23:46:05 +00:00
arch=(any)
2011-11-27 23:29:41 +00:00
url="https://github.com/saltstack/salt"
2011-02-27 23:46:05 +00:00
license=("APACHE")
depends=('python2'
2011-04-02 18:25:32 +00:00
'python2-pyzmq'
'python-m2crypto'
2011-04-02 18:25:32 +00:00
'python2-yaml'
'python2-crypto'
2011-11-27 23:29:41 +00:00
'python2-psutil'
'python2-jinja'
'python2-msgpack')
backup=('etc/salt/master'
'etc/salt/minion')
2011-02-27 23:46:05 +00:00
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"
2011-08-27 17:51:21 +00:00
"salt-syndic"
"salt-minion")
md5sums=('0e96a361a5bfb9a208a6a30b2537a7c2'
'3a2b032ec37077363c049969105b128e'
'e4c6adce5087e947c26c5c9d9fc3c9bb'
'833d31ebee69f5c0e2c0b6c8d345b6d7'
'33bb43fa74f67da7675c093664d43159'
'b4adb3a08871646c345f0050e3d55fae'
'ce64b6fb207142465bb5e2855e27cd8a')
2011-02-27 23:46:05 +00:00
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}
2011-02-27 23:46:05 +00:00
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/
2011-02-27 23:46:05 +00:00
}