Date: Saturday, May 16, 2015 @ 01:21:41
  Author: seblu
Revision: 239422

Addition of ceph

In extra in order to target support in qemu

Added:
  ceph/
  ceph/repos/
  ceph/trunk/
  ceph/trunk/PKGBUILD
  ceph/trunk/[email protected]
  ceph/trunk/[email protected]
  ceph/trunk/[email protected]
  ceph/trunk/ceph.install

-------------------+
 PKGBUILD          |   93 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 [email protected] |   14 +++++++
 [email protected] |   14 +++++++
 [email protected] |   14 +++++++
 ceph.install      |    9 +++++
 5 files changed, 144 insertions(+)

Added: ceph/trunk/PKGBUILD
===================================================================
--- ceph/trunk/PKGBUILD                         (rev 0)
+++ ceph/trunk/PKGBUILD 2015-05-15 23:21:41 UTC (rev 239422)
@@ -0,0 +1,93 @@
+# $Id$
+# Maintainer: Sébastien "Seblu" Luttringer <[email protected]>
+# Contributor: Ido Rosen <[email protected]>
+# Contributor: Evan Teitelman <[email protected]>
+# Contributor: Eric Renfro <[email protected]>
+# Contributor: Alexander Rødseth <[email protected]>
+# Contributor: Marti Raudsepp <[email protected]>
+# Contributor: Sandman <[email protected]>
+# Contributor: raw <[email protected]>
+# Contributor: Dave Simons <[email protected]>
+# Contributor: David Anderson <[email protected]>
+# Contributor: Joe Julian <[email protected]>
+# Contributor: Emil Renner Berthing <[email protected]>
+
+pkgname=ceph
+pkgver=9.0.0
+pkgrel=1
+pkgdesc='Distributed, fault-tolerant storage platform delivering object, 
block, and file system'
+arch=('x86_64' 'i686')
+url='http://ceph.com/'
+license=('GPL')
+depends=('libedit' 'libsigc++' 'gtkmm' 'btrfs-progs' 'crypto++'
+         'gperftools' 'python2' 'fuse' 'keyutils'
+         'libatomic_ops' 'curl' 'libaio' 'fcgi' 'expat' 'boost'
+         'leveldb' 'xfsprogs')
+makedepends=('boost' 'boost-libs' 'yasm')
+install=ceph.install
+options=('!libtool' 'emptydirs')
+source=("http://ceph.com/download/$pkgname-$pkgver.tar.bz2";
+        '[email protected]'
+        '[email protected]'
+        '[email protected]'
+        'ceph.install')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  # fix python scripts to use python2
+  find . -type f -exec sed -i 's,^#!/usr/bin/env python$,#!/usr/bin/env 
python2,g' {} \;
+  # Some python scripts are autogenerated through Makefiles. Fix those
+  # too, or /usr/bin/ceph will have the wrong shebang.
+  find . -type f -exec sed -i 's,"#!/usr/bin/env python","#!/usr/bin/env 
python2",g' {} \;
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  LIBS="-lpthread -lboost_system" PYTHON=/usr/bin/python2 LDFLAGS="" 
./configure \
+    --prefix=/usr \
+    --sbindir=/usr/bin \
+    --libexecdir=/usr/lib \
+    --sysconfdir=/etc \
+    --localstatedir=/var \
+    --with-radosgw
+
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  make DESTDIR="$pkgdir" install
+
+  install -dm755 "$pkgdir/var/run/ceph" "$pkgdir/var/log/ceph" \
+    "$pkgdir/etc/rc.d" "$pkgdir/etc/ceph"
+
+  # Systemd.
+  install -dm755 "$pkgdir/usr/lib/systemd/system"
+  install -Dm644 "$srcdir/[email protected]" 
"$pkgdir/usr/lib/systemd/system/[email protected]"
+  install -Dm644 "$srcdir/[email protected]" 
"$pkgdir/usr/lib/systemd/system/[email protected]"
+  install -Dm644 "$srcdir/[email protected]" 
"$pkgdir/usr/lib/systemd/system/[email protected]"
+  install -Dm755 "src/init-ceph" "$pkgdir/etc/rc.d/ceph"
+
+  # Ceph udev rules.
+  install -Dm644 "udev/50-rbd.rules" 
"$pkgdir/usr/lib/udev/rules.d/50-rbd.rules"
+  install -Dm644 "udev/60-ceph-partuuid-workaround.rules" \
+    "$pkgdir/usr/lib/udev/rules.d/60-ceph-partuuid-workaround.rules"
+  install -Dm644 "udev/95-ceph-osd-alt.rules" 
"$pkgdir/usr/lib/udev/rules.d/95-ceph-osd.rules"
+
+  # Fix bin directory.
+  mv "$pkgdir/sbin/"* "$pkgdir/usr/bin"
+  rmdir "$pkgdir/sbin"
+
+  # Sample config.
+  install -Dm644 "$pkgdir/usr/share/doc/ceph/sample.ceph.conf" \
+    "$pkgdir/etc/ceph/ceph.conf.sample"
+
+  # License.
+  install -Dm644 COPYING \
+    "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+
+  # Clean up.
+  rm -rf "$pkgdir/var/run"
+}


Property changes on: ceph/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: ceph/trunk/[email protected]
===================================================================
--- ceph/trunk/[email protected]                                (rev 0)
+++ ceph/trunk/[email protected]        2015-05-15 23:21:41 UTC (rev 239422)
@@ -0,0 +1,14 @@
+[Unit]
+Description=CephFS MDS %i
+Requires=network.target
+After=network.target
+
+[Service]
+Type=simple
+Restart=always
+RestartSec=2s
+ExecStart=/usr/bin/ceph-mds -f -i %i
+
+[Install]
+WantedBy=multi-user.target
+

Added: ceph/trunk/[email protected]
===================================================================
--- ceph/trunk/[email protected]                                (rev 0)
+++ ceph/trunk/[email protected]        2015-05-15 23:21:41 UTC (rev 239422)
@@ -0,0 +1,14 @@
+[Unit]
+Description=CephFS MON %i
+Requires=network.target
+After=network.target
+
+[Service]
+Type=simple
+Restart=always
+RestartSec=2s
+ExecStart=/usr/bin/ceph-mon -f -i %i
+
+[Install]
+WantedBy=multi-user.target
+

Added: ceph/trunk/[email protected]
===================================================================
--- ceph/trunk/[email protected]                                (rev 0)
+++ ceph/trunk/[email protected]        2015-05-15 23:21:41 UTC (rev 239422)
@@ -0,0 +1,14 @@
+[Unit]
+Description=CephFS OSD %i
+Requires=network.target
+After=network.target
+
+[Service]
+Type=simple
+Restart=always
+RestartSec=2s
+ExecStart=/usr/bin/ceph-osd -f -i %i
+
+[Install]
+WantedBy=multi-user.target
+

Added: ceph/trunk/ceph.install
===================================================================
--- ceph/trunk/ceph.install                             (rev 0)
+++ ceph/trunk/ceph.install     2015-05-15 23:21:41 UTC (rev 239422)
@@ -0,0 +1,9 @@
+post_install() {
+  mkdir /var/run/ceph
+}
+
+pre_remove() {
+  rmdir --ignore-fail-on-non-empty /var/run/ceph
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to