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@.service ceph/trunk/ceph-mon@.service ceph/trunk/ceph-osd@.service ceph/trunk/ceph.install -------------------+ PKGBUILD | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++ ceph-mds@.service | 14 +++++++ ceph-mon@.service | 14 +++++++ ceph-osd@.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 <se...@archlinux.org> +# Contributor: Ido Rosen <i...@kernel.org> +# Contributor: Evan Teitelman <teitelmane...@gmail.com> +# Contributor: Eric Renfro <eren...@gmail.com> +# Contributor: Alexander Rødseth <rods...@gmail.com> +# Contributor: Marti Raudsepp <ma...@juffo.org> +# Contributor: Sandman <the0sand...@hotmail.com> +# Contributor: raw <s...@rw23.de> +# Contributor: Dave Simons <miou...@gmail.com> +# Contributor: David Anderson <d...@natulte.net> +# Contributor: Joe Julian <m...@joejulian.name> +# Contributor: Emil Renner Berthing <es...@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@.service' + 'ceph-mon@.service' + 'ceph-mds@.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@.service" "$pkgdir/usr/lib/systemd/system/ceph-osd@.service" + install -Dm644 "$srcdir/ceph-mon@.service" "$pkgdir/usr/lib/systemd/system/ceph-mon@.service" + install -Dm644 "$srcdir/ceph-mds@.service" "$pkgdir/usr/lib/systemd/system/ceph-mds@.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@.service =================================================================== --- ceph/trunk/ceph-mds@.service (rev 0) +++ ceph/trunk/ceph-mds@.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@.service =================================================================== --- ceph/trunk/ceph-mon@.service (rev 0) +++ ceph/trunk/ceph-mon@.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@.service =================================================================== --- ceph/trunk/ceph-osd@.service (rev 0) +++ ceph/trunk/ceph-osd@.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: