1 # Maintainer: Lucky <aur.archlinux.org [at] lucky.take0ver [dot] net>
4 _pkgname="${pkgname%-*}"
7 pkgdesc="OpenVZ containters control utility"
8 url="http://wiki.openvz.org/Download/vzctl"
10 arch=("i686" "x86_64")
11 depends=("iproute" "rsync" "openssh")
13 conflicts=("${_pkgname}")
14 provides=("${_pkgname}")
16 md5sums=("e997b5b1c241c7d8c779d7d93863c2d7")
18 _gitroot="git://git.openvz.org/pub/${_pkgname}"
19 _gitname="${_pkgname}"
25 msg "Connecting to GIT server..."
26 if [ -d "${_gitname}" ]; then
27 (cd "${_gitname}" && git pull origin)
28 msg "The local repository was updated."
30 git clone "${_gitroot}" "${_gitname}"
31 msg "The remote repository was cloned."
33 msg "GIT sync done or server timeout."
35 if [ -d "${_gitname}-build" ]; then
36 rm -rf "${_gitname}-build"
38 cp -rf "${_gitname}" "${_gitname}-build"
39 cd "${_gitname}-build"
43 ./configure --prefix=/usr --enable-bashcomp --enable-logrotate --disable-static
48 cd "${srcdir}/${_pkgname}-build"
50 install -Dm755 "${srcdir}/openvz" "${pkgdir}/etc/rc.d/openvz"
51 make DESTDIR="${pkgdir}" install