mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add a git PKGBUILD
This commit is contained in:
parent
46bbeac9b3
commit
cbd5a2b7a9
1 changed files with 48 additions and 0 deletions
48
PKGBUILD-git
Normal file
48
PKGBUILD-git
Normal file
|
@ -0,0 +1,48 @@
|
|||
# Maintainer: Thomas S Hatch <thatch45 at gmail dot com>
|
||||
pkgname=salt-git
|
||||
pkgver=20110310
|
||||
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'
|
||||
'pyzmq'
|
||||
'python-m2crypto'
|
||||
'python-yaml'
|
||||
'pycrypto'
|
||||
'facter')
|
||||
makedepends=('git')
|
||||
provides=()
|
||||
backup=('etc/salt/master'
|
||||
'etc/salt/minion')
|
||||
options=()
|
||||
source=()
|
||||
|
||||
_gitroot="git://github.com/thatch45/salt.git"
|
||||
_gitname="salt"
|
||||
|
||||
build() {
|
||||
cd "$srcdir"
|
||||
msg "Connecting to GIT server...."
|
||||
|
||||
if [ -d $_gitname ] ; then
|
||||
cd $_gitname && git pull origin
|
||||
msg "The local files are updated."
|
||||
else
|
||||
git clone $_gitroot $_gitname
|
||||
fi
|
||||
|
||||
msg "GIT checkout done or server timeout"
|
||||
msg "Starting make..."
|
||||
|
||||
rm -rf "$srcdir/$_gitname-build"
|
||||
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
|
||||
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_gitname-build"
|
||||
python2 setup.py install --root=$pkgdir/ --optimize=1
|
||||
}
|
Loading…
Add table
Reference in a new issue