1 # Contributor: Karol Maciaszek <karol.maciaszek@czystybeton.pl>
2 pkgname=xtreemfs-client
5 pkgdesc="A distributed and replicated file system for the Internet (client)"
6 url="http://www.xtreemfs.org"
11 md5sums=('596c3c51ba5032e34827be6065dfadd9')
13 source=("http://xtreemfs.googlecode.com/files/$_pkgname-$pkgver.tar.gz")
15 cd $startdir/src/$_pkgname-$pkgver || return 1
16 make client || return 1
17 install -d $startdir/pkg/etc/xos/xtreemfs || return 1
18 install -m 644 $startdir/src/$_pkgname-$pkgver/etc/xos/xtreemfs/default_dir $startdir/pkg/etc/xos/xtreemfs/ || return 1
19 install -d $startdir/pkg/usr/bin || return 1
20 install -m 755 $startdir/src/$_pkgname-$pkgver/bin/xtfs_sp $startdir/pkg/usr/bin/ || return 1
21 install -m 755 $startdir/src/$_pkgname-$pkgver/bin/xtfs_umount $startdir/pkg/usr/bin/ || return 1
22 install -m 755 $startdir/src/$_pkgname-$pkgver/src/client/bin/xtfs_lsvol $startdir/pkg/usr/bin/ || return 1
23 install -m 755 $startdir/src/$_pkgname-$pkgver/src/client/bin/xtfs_mkvol $startdir/pkg/usr/bin/ || return 1
24 install -m 755 $startdir/src/$_pkgname-$pkgver/src/client/bin/xtfs_mount $startdir/pkg/usr/bin/ || return 1
25 install -m 755 $startdir/src/$_pkgname-$pkgver/src/client/bin/xtfs_rmvol $startdir/pkg/usr/bin/ || return 1
26 install -m 755 $startdir/src/$_pkgname-$pkgver/src/client/bin/xtfs_stat $startdir/pkg/usr/bin/ || return 1
27 install -d $startdir/pkg/usr/share/man/man1 || return 1
28 gzip -9 $startdir/src/$_pkgname-$pkgver/man/man1/*
29 install -m 755 $startdir/src/$_pkgname-$pkgver/man/man1/xtfs_lsvol.1.gz $startdir/pkg/usr/share/man/man1/ || return 1
30 install -m 755 $startdir/src/$_pkgname-$pkgver/man/man1/xtfs_mkvol.1.gz $startdir/pkg/usr/share/man/man1/ || return 1
31 install -m 755 $startdir/src/$_pkgname-$pkgver/man/man1/xtfs_mount.1.gz $startdir/pkg/usr/share/man/man1/ || return 1
32 install -m 755 $startdir/src/$_pkgname-$pkgver/man/man1/xtfs_rmvol.1.gz $startdir/pkg/usr/share/man/man1/ || return 1
33 install -m 755 $startdir/src/$_pkgname-$pkgver/man/man1/xtfs_sp.1.gz $startdir/pkg/usr/share/man/man1/ || return 1
34 install -m 755 $startdir/src/$_pkgname-$pkgver/man/man1/xtfs_stat.1.gz $startdir/pkg/usr/share/man/man1/ || return 1
35 install -m 755 $startdir/src/$_pkgname-$pkgver/man/man1/xtfs_umount.1.gz $startdir/pkg/usr/share/man/man1/ || return 1