1 # Contributor: Kamil Stachowski <kamil.stachowski@gmail.com>
6 pkgdesc="named stage backup"
7 url='http://github.com/caminoix/nsb/tree/master'
18 install=$pkgname.install
20 _gitroot='git://github.com/caminoix/nsb.git'
23 msg "Connecting to Git server..."
24 if [ -d "$srcdir/$pkgname" ]; then
25 cd "$srcdir/$pkgname" && git pull origin || return 1
27 git clone "$_gitroot" || return 1
29 msg "Git checkout done or server timeout"
31 install -D -m755 "$srcdir/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
32 install -D -m644 "$srcdir/$pkgname/$pkgname.conf.sample" "$pkgdir/etc/$pkgname.conf.sample"