2012-12-04 20:56:48 +00:00
|
|
|
# Maintainer: Christer Edwards <christer.edwards@gmail.com>
|
2011-12-21 02:34:07 +00:00
|
|
|
pkgname=salt-git
|
2013-04-17 17:13:39 +00:00
|
|
|
_gitname="salt"
|
|
|
|
pkgver=v0.14.0.504.g6fc4ee2
|
2011-03-17 17:57:49 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A remote execution and communication system built on zeromq"
|
|
|
|
arch=('any')
|
2011-12-21 02:34:07 +00:00
|
|
|
url="https://github.com/saltstack/salt"
|
2011-03-17 17:57:49 +00:00
|
|
|
license=('APACHE')
|
|
|
|
groups=()
|
|
|
|
depends=('python2'
|
2011-04-02 18:25:32 +00:00
|
|
|
'python2-yaml'
|
2013-03-15 17:19:06 +00:00
|
|
|
'python2-jinja'
|
2013-04-17 17:13:39 +00:00
|
|
|
'python2-pyzmq'
|
2012-12-04 20:56:48 +00:00
|
|
|
'python2-crypto'
|
2011-11-27 23:29:41 +00:00
|
|
|
'python2-psutil'
|
2013-03-15 17:19:06 +00:00
|
|
|
'python2-msgpack'
|
|
|
|
'python2-m2crypto')
|
2012-12-04 20:56:48 +00:00
|
|
|
|
2011-12-21 02:34:07 +00:00
|
|
|
backup=('etc/salt/master'
|
2011-08-10 17:20:33 +00:00
|
|
|
'etc/salt/minion')
|
2012-12-04 20:56:48 +00:00
|
|
|
|
|
|
|
makedepends=('git')
|
2011-12-21 02:34:07 +00:00
|
|
|
conflicts=('salt')
|
2013-03-15 17:19:06 +00:00
|
|
|
provides=('salt')
|
2012-12-04 20:56:48 +00:00
|
|
|
|
2013-04-17 17:13:39 +00:00
|
|
|
# makepkg 4.1 knows about git and will pull main branch
|
|
|
|
source=("git://github.com/saltstack/salt.git")
|
2011-03-17 17:57:49 +00:00
|
|
|
|
2013-04-17 17:13:39 +00:00
|
|
|
# makepkg knows it's a git repo because the url starts with 'git'
|
|
|
|
# it then knows to checkout the branch upon cloning, expediating versioning.
|
|
|
|
#branch="develop"
|
|
|
|
#source=("git://github.com/saltstack/salt.git#branch=$branch")
|
2011-03-17 17:57:49 +00:00
|
|
|
|
2013-04-17 17:13:39 +00:00
|
|
|
# makepkg also knows about tags
|
|
|
|
#tags="v0.14.1"
|
|
|
|
#source=("git://github.com/saltstack/salt.git#tag=$tag")
|
2011-03-17 17:57:49 +00:00
|
|
|
|
2013-04-17 17:13:39 +00:00
|
|
|
# because the sources are not static, skip checksums
|
|
|
|
md5sums=('SKIP')
|
2011-03-17 17:57:49 +00:00
|
|
|
|
2013-04-17 17:13:39 +00:00
|
|
|
pkgver() {
|
|
|
|
cd "$srcdir/$_gitname"
|
|
|
|
echo $(git describe --always | sed 's/-/./g')
|
|
|
|
# for git, if the repo has no tags, comment out the above and uncomment the next line:
|
|
|
|
#echo "0.$(git rev-list --count $branch).$(git describe --always)"
|
|
|
|
# This will give you a count of the total commits and the hash of the commit you are on.
|
|
|
|
# Useful if you're making a repository with git packages so that they can have sequential
|
|
|
|
# version numbers. (Else a pacman -Syu may not update the package)
|
2011-03-17 17:57:49 +00:00
|
|
|
}
|
|
|
|
|
2013-04-17 17:13:39 +00:00
|
|
|
#build() {
|
|
|
|
# cd "${srcdir}/${_gitname}"
|
2016-03-01 15:37:18 +00:00
|
|
|
# python2 setup.py build
|
2013-04-17 17:13:39 +00:00
|
|
|
# no need to build setup.py install will do this
|
|
|
|
#}
|
2011-04-02 05:53:05 +00:00
|
|
|
|
2013-04-17 17:13:39 +00:00
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${_gitname}"
|
2016-03-01 15:37:18 +00:00
|
|
|
|
2012-12-04 20:56:48 +00:00
|
|
|
python2 setup.py install --root=${pkgdir}/ --optimize=1
|
2011-12-21 02:34:07 +00:00
|
|
|
|
2013-04-17 17:13:39 +00:00
|
|
|
install -Dm644 ${srcdir}/salt/pkg/arch/salt-master.service ${pkgdir}/usr/lib/systemd/system/salt-master.service
|
|
|
|
install -Dm644 ${srcdir}/salt/pkg/arch/salt-syndic.service ${pkgdir}/usr/lib/systemd/system/salt-syndic.service
|
|
|
|
install -Dm644 ${srcdir}/salt/pkg/arch/salt-minion.service ${pkgdir}/usr/lib/systemd/system/salt-minion.service
|
2012-12-04 20:56:48 +00:00
|
|
|
|
|
|
|
mkdir -p ${pkgdir}/etc/salt/
|
2013-04-17 17:13:39 +00:00
|
|
|
cp ${srcdir}/salt/conf/master ${pkgdir}/etc/salt/
|
|
|
|
cp ${srcdir}/salt/conf/minion ${pkgdir}/etc/salt/
|
|
|
|
|
|
|
|
# remove vcs leftovers
|
|
|
|
find "$pkgdir" -type d -name .git -exec rm -r '{}' +
|
2011-12-21 02:34:07 +00:00
|
|
|
}
|