1 # Contributor: Andrew Grigorev <andrew@ei-grad.ru>
5 pkgdesc="Utility to manage LXC containers, written in Perl."
8 license=('GPL' 'PerlArtistic')
9 depends=('perl>=5.10.0' 'lxc' 'lvm2' 'bridge-utils' 'perl-ipc-system-simple' 'perl-linux-lvm' 'perl-yaml-tiny' 'perl-net-ssh')
14 backup=(etc/lxctl/lxctl.yaml)
20 _gitroot=https://github.com/lxctl/lxctl.git
22 #_gitbranch=refactoring
27 msg "Connecting to GIT server...."
29 if [[ -d "$_gitname" ]]; then
30 cd "$_gitname" && git pull origin
31 msg "The local files are updated."
33 git clone "$_gitroot" "$_gitname" -b "$_gitbranch"
36 msg "GIT checkout done or server timeout"
37 msg "Starting build..."
39 rm -rf "$srcdir/$_gitname-build"
40 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41 cd "$srcdir/$_gitname-build"
43 sed -i s,/usr/lib/perl/5.10,/usr/share/perl5/vendor_perl,g Makefile
46 make install DESTDIR="$pkgdir" || return 1
48 find "$pkgdir" -name perllocal.pod -delete
49 find "$pkgdir" -name .packlist -delete
52 # vim:set ts=2 sw=2 et: