[arch-commits] Commit in (8 files)
Sébastien Luttringer
seblu at archlinux.org
Fri May 15 23:21:42 UTC 2015
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/ceph-mds at .service
ceph/trunk/ceph-mon at .service
ceph/trunk/ceph-osd at .service
ceph/trunk/ceph.install
-------------------+
PKGBUILD | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++
ceph-mds at .service | 14 +++++++
ceph-mon at .service | 14 +++++++
ceph-osd at .service | 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 <seblu at archlinux.org>
+# Contributor: Ido Rosen <ido at kernel.org>
+# Contributor: Evan Teitelman <teitelmanevan at gmail.com>
+# Contributor: Eric Renfro <erenfro at gmail.com>
+# Contributor: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Marti Raudsepp <marti at juffo.org>
+# Contributor: Sandman <the0sandman at hotmail.com>
+# Contributor: raw <spam at rw23.de>
+# Contributor: Dave Simons <miouhpi at gmail.com>
+# Contributor: David Anderson <dave at natulte.net>
+# Contributor: Joe Julian <me at joejulian.name>
+# Contributor: Emil Renner Berthing <esmil at mailme.dk>
+
+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"
+ 'ceph-osd at .service'
+ 'ceph-mon at .service'
+ 'ceph-mds at .service'
+ '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/ceph-osd at .service" "$pkgdir/usr/lib/systemd/system/ceph-osd at .service"
+ install -Dm644 "$srcdir/ceph-mon at .service" "$pkgdir/usr/lib/systemd/system/ceph-mon at .service"
+ install -Dm644 "$srcdir/ceph-mds at .service" "$pkgdir/usr/lib/systemd/system/ceph-mds at .service"
+ 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/ceph-mds at .service
===================================================================
--- ceph/trunk/ceph-mds at .service (rev 0)
+++ ceph/trunk/ceph-mds at .service 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/ceph-mon at .service
===================================================================
--- ceph/trunk/ceph-mon at .service (rev 0)
+++ ceph/trunk/ceph-mon at .service 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/ceph-osd at .service
===================================================================
--- ceph/trunk/ceph-osd at .service (rev 0)
+++ ceph/trunk/ceph-osd at .service 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:
More information about the arch-commits
mailing list