1 # Maintainer: Alexander Rødseth <rodseth@gmail.com>
5 pkgdesc="Massively distributed fault-tolerant file system. Git development version."
7 url="http://ceph.newdream.net/"
9 depends=('libedit' 'libsigc++' 'gtkmm' 'btrfs-progs-unstable' 'crypto++' 'google-perftools' 'python2' 'fuse' 'keyutils' 'libatomic_ops' 'kernel26>=2.6.37')
11 optdepends=('fcgi: radosgw - Amazon S3 compatibility'
12 'expat: radosgw - Amazon S3 compatibility')
15 _gitroot="git://ceph.newdream.net/git/ceph.git"
21 msg "Connecting to the ceph git repository..."
22 if [ -d "$srcdir/$_gitname" ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
28 msg "GIT checkout done or server timeout"
31 rm -rf "$_gitname-build"
32 git clone "$_gitname" "$_gitname-build"
37 ./configure --prefix=/usr --sysconfdir=/etc
41 msg2 "Patching python scripts..."
42 sed -i 's:thon:thon2:' src/obsync/boto_tool
43 sed -i 's:thon:thon2:' src/obsync/obsync
49 make DESTDIR="$pkgdir" install
50 mkdir -p "$pkgdir/var/run/ceph" "$pkgdir/var/log/ceph" \
51 "$pkgdir/etc/rc.d" "$pkgdir/etc/ceph"
52 install -Dm755 "src/init-ceph" "$pkgdir/etc/rc.d/ceph"
53 # Move /usr/sbin to /sbin, which is expected by the mount command
54 mv "$pkgdir/usr/sbin" "$pkgdir/"
55 install -Dm644 "$pkgdir/usr/share/doc/ceph/sample.ceph.conf" \
56 "$pkgdir/etc/ceph/ceph.conf.sample"
57 install -Dm644 COPYING \
58 "$pkgdir/usr/share/licenses/$pkgname/COPYING"
61 # vim:set ts=2 sw=2 et: