1 # Contributor: Tony Lambiris <tony@libpcap.net>
5 pkgdesc="A cluster file-system capable of scaling to several peta-bytes (GIT version)."
7 url="http://www.gluster.org/"
10 depends=('fuse' 'flex' 'bison' 'libtool' 'automake' 'autoconf')
11 provides=('glusterfs')
12 conflicts=('glusterfs')
14 _gitroot="git://git.gluster.com/glusterfs.git"
19 msg "Connecting to GIT server...."
21 if [ ! -d $_gitname ] ; then
22 git clone $_gitroot $_gitname
24 # msg "Setting default branch to release-3.0"
25 git checkout --track -b REL_3 remotes/origin/release-3.0
27 cd $_gitname && git pull
28 msg "The local files are updated."
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
43 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
45 make DESTDIR="$pkgdir" install
47 install -D -m 755 $srcdir/$_gitname-build/README $pkgdir/usr/share/doc/glusterfs/
48 install -D -m 755 $srcdir/$_gitname-build/INSTALL $pkgdir/usr/share/doc/glusterfs/
49 install -D -m 755 $srcdir/$_gitname-build/COPYING $pkgdir/usr/share/doc/glusterfs/