[arch-commits] Commit in ceph/repos (10 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Fri Sep 15 19:11:38 UTC 2017
Date: Friday, September 15, 2017 @ 19:11:37
Author: bpiotrowski
Revision: 305618
archrelease: copy trunk to staging-x86_64, staging-i686
Added:
ceph/repos/staging-i686/
ceph/repos/staging-i686/01-ceph-detec-init.patch
(from rev 305617, ceph/trunk/01-ceph-detec-init.patch)
ceph/repos/staging-i686/PKGBUILD
(from rev 305617, ceph/trunk/PKGBUILD)
ceph/repos/staging-i686/PKGBUILD.v11
(from rev 305617, ceph/trunk/PKGBUILD.v11)
ceph/repos/staging-i686/ceph.sysusers
(from rev 305617, ceph/trunk/ceph.sysusers)
ceph/repos/staging-x86_64/
ceph/repos/staging-x86_64/01-ceph-detec-init.patch
(from rev 305617, ceph/trunk/01-ceph-detec-init.patch)
ceph/repos/staging-x86_64/PKGBUILD
(from rev 305617, ceph/trunk/PKGBUILD)
ceph/repos/staging-x86_64/PKGBUILD.v11
(from rev 305617, ceph/trunk/PKGBUILD.v11)
ceph/repos/staging-x86_64/ceph.sysusers
(from rev 305617, ceph/trunk/ceph.sysusers)
-----------------------------------------+
staging-i686/01-ceph-detec-init.patch | 69 +++++++++++++++++++++
staging-i686/PKGBUILD | 95 ++++++++++++++++++++++++++++++
staging-i686/PKGBUILD.v11 | 92 +++++++++++++++++++++++++++++
staging-i686/ceph.sysusers | 1
staging-x86_64/01-ceph-detec-init.patch | 69 +++++++++++++++++++++
staging-x86_64/PKGBUILD | 95 ++++++++++++++++++++++++++++++
staging-x86_64/PKGBUILD.v11 | 92 +++++++++++++++++++++++++++++
staging-x86_64/ceph.sysusers | 1
8 files changed, 514 insertions(+)
Copied: ceph/repos/staging-i686/01-ceph-detec-init.patch (from rev 305617, ceph/trunk/01-ceph-detec-init.patch)
===================================================================
--- staging-i686/01-ceph-detec-init.patch (rev 0)
+++ staging-i686/01-ceph-detec-init.patch 2017-09-15 19:11:37 UTC (rev 305618)
@@ -0,0 +1,69 @@
+commit c19cb3cd2756ba830edd92158a2913beaa6e24aa
+Author: Sébastien Luttringer <seblu at seblu.net>
+Date: Sun Mar 26 16:35:13 2017 +0200
+
+ Arch support
+
+diff --git a/src/ceph-detect-init/ceph_detect_init/__init__.py b/src/ceph-detect-init/ceph_detect_init/__init__.py
+index a2bcc7cf27..ca2f2d7975 100644
+--- a/src/ceph-detect-init/ceph_detect_init/__init__.py
++++ b/src/ceph-detect-init/ceph_detect_init/__init__.py
+@@ -13,6 +13,7 @@
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU Library Public License for more details.
+ #
++from ceph_detect_init import arch
+ from ceph_detect_init import centos
+ from ceph_detect_init import debian
+ from ceph_detect_init import exc
+@@ -21,6 +22,7 @@ from ceph_detect_init import rhel
+ from ceph_detect_init import suse
+ import logging
+ import platform
++import os
+
+
+ def get(use_rhceph=False):
+@@ -49,6 +51,7 @@ def _get_distro(distro, use_rhceph=False):
+
+ distro = _normalized_distro_name(distro)
+ distributions = {
++ 'arch': arch,
+ 'debian': debian,
+ 'ubuntu': debian,
+ 'linuxmint': debian,
+@@ -75,6 +78,8 @@ def _normalized_distro_name(distro):
+ return 'suse'
+ elif distro.startswith('centos'):
+ return 'centos'
++ elif distro.startswith('arch'):
++ return 'arch'
+ return distro
+
+
+@@ -103,6 +108,8 @@ def platform_information():
+ else:
+ codename = major
+
++ elif os.path.exists("/etc/arch-release"):
++ return ("arch", None, "arch")
+ return (
+ str(distro).rstrip(),
+ str(release).rstrip(),
+diff --git a/src/ceph-detect-init/ceph_detect_init/arch/__init__.py b/src/ceph-detect-init/ceph_detect_init/arch/__init__.py
+new file mode 100644
+index 0000000000..425ce50bb2
+--- /dev/null
++++ b/src/ceph-detect-init/ceph_detect_init/arch/__init__.py
+@@ -0,0 +1,11 @@
++distro = None
++release = None
++codename = None
++
++
++def choose_init():
++ """Select a init system
++
++ Returns the name of a init system (upstart, sysvinit ...).
++ """
++ return 'systemd'
Copied: ceph/repos/staging-i686/PKGBUILD (from rev 305617, ceph/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2017-09-15 19:11:37 UTC (rev 305618)
@@ -0,0 +1,95 @@
+# $Id$
+# Maintainer: Sébastien "Seblu" Luttringer <seblu at archlinux.org>
+
+pkgname=ceph
+pkgver=10.2.9
+pkgrel=1
+pkgdesc='Distributed, fault-tolerant storage platform delivering object, block, and file system'
+arch=('x86_64' 'i686')
+url='https://ceph.com/'
+license=('GPL')
+makedepends=('boost' 'systemd' 'xfsprogs' 'python2-sphinx' 'cython2' 'sed')
+depends=('boost-libs' 'curl' 'expat' 'fcgi' 'fuse2' 'gcc-libs' 'glibc'
+ 'gperftools' 'keyutils' 'leveldb' 'libaio' 'libatomic_ops' 'libedit'
+ 'libsystemd' 'libutil-linux' 'ncurses' 'nss' 'python2' 'snappy'
+ 'python2-setuptools' 'xfsprogs')
+options=('emptydirs')
+source=("https://download.ceph.com/tarballs/$pkgname-$pkgver.tar.gz"
+ 'ceph.sysusers'
+ '01-ceph-detec-init.patch')
+md5sums=('eff6db61b3befb686e0693befa1f076a'
+ 'b3e24e3aa005a657ab475f84bfe3291a'
+ 'da25c78ae413dc134cc99fe9818f6ff1')
+
+prepare() {
+ cd $pkgname-$pkgver
+ # apply patch from the source array (should be a pacman feature)
+ local filename
+ for filename in "${source[@]}"; do
+ if [[ "$filename" =~ \.patch$ ]]; then
+ msg2 "Applying patch ${filename##*/}"
+ patch -p1 -N -i "$srcdir/${filename##*/}"
+ fi
+ done
+ :
+}
+
+build() {
+ cd $pkgname-$pkgver
+ # fix xfs.h failure in configure on i686
+ [[ $CARCH == i686 ]] && export CXXFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64"
+ # don't use autotools for ceph-disk, ceph-detect and tests
+ sed -ri 's,include (ceph-disk|ceph-detect-init|test)/Makefile.am,,' src/Makefile.am
+ # regen configure
+ ./autogen.sh
+ # fix python-config binary name
+ sed -i 's,python-config,python2-config,g' configure
+ ./configure \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --libexecdir=/usr/lib \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-man-pages \
+ --without-radosgw \
+ --without-openldap \
+ PYTHON=/usr/bin/python2 \
+ CYTHON_CHECK=yes \
+ PYTHON_CONFIG_CHECK=yes \
+ SPHINX_BUILD=sphinx-build2
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ # main install
+ make DESTDIR="$pkgdir" install
+
+ # ceph-disk
+ pushd src/ceph-disk
+ python2 setup.py install --root "$pkgdir" --prefix=/usr
+ popd
+
+ # ceph-detect-init
+ pushd src/ceph-detect-init
+ python2 setup.py install --root "$pkgdir" --prefix=/usr
+ popd
+
+ # systemd stuff
+ install -Dm644 systemd/ceph.tmpfiles.d "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
+ install -Dm644 "$srcdir"/ceph.sysusers "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+
+ # fix bash completions path
+ msg2 'Fix bash completion path'
+ install -d -m 755 "$pkgdir"/usr/share/bash-completion
+ mv "$pkgdir"/{etc/bash_completion.d,usr/share/bash-completion/completions}
+
+ # fix python2 shebang, did not do it in prepare() anymore because it
+ # confuse automake
+ msg2 'Fix python2 shebang'
+ find "$pkgdir" -type f -executable -exec \
+ sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
+}
+
+# vim:set ts=2 sw=2 et:
Copied: ceph/repos/staging-i686/PKGBUILD.v11 (from rev 305617, ceph/trunk/PKGBUILD.v11)
===================================================================
--- staging-i686/PKGBUILD.v11 (rev 0)
+++ staging-i686/PKGBUILD.v11 2017-09-15 19:11:37 UTC (rev 305618)
@@ -0,0 +1,92 @@
+# $Id: PKGBUILD 287115 2017-01-22 01:54:44Z seblu $
+# Maintainer: Sébastien "Seblu" Luttringer <seblu at archlinux.org>
+
+pkgname=ceph
+pkgver=11.2.0
+pkgrel=0.1
+pkgdesc='Distributed, fault-tolerant storage platform delivering object, block, and file system'
+arch=('x86_64' 'i686')
+url='https://ceph.com/'
+license=('GPL')
+makedepends=('boost' 'systemd' 'xfsprogs' 'python2-sphinx' 'python2-virtualenv'
+ 'cython2' 'cmake' 'yasm')
+depends=('boost-libs' 'curl' 'expat' 'fcgi' 'fuse2' 'gcc-libs' 'glibc'
+ 'gperftools' 'keyutils' 'leveldb' 'libaio' 'libatomic_ops' 'libedit'
+ 'libsystemd' 'libutil-linux' 'ncurses' 'nss' 'python2' 'snappy'
+ 'python2-setuptools' 'xfsprogs')
+options=('!emptydirs')
+source=("https://download.ceph.com/tarballs/ceph-$pkgver.tar.gz"
+ 'ceph.sysusers'
+ '14099.patch')
+md5sums=('1e394a69820d71e5df19abe38ef647a6'
+ 'b3e24e3aa005a657ab475f84bfe3291a'
+ '9d376f1f6d06be71c2cc6aa267a67869')
+
+prepare() {
+ cd $pkgname-$pkgver
+ # apply patch from the source array (should be a pacman feature)
+ local filename
+ for filename in "${source[@]}"; do
+ if [[ "$filename" =~ \.patch$ ]]; then
+ msg2 "Applying patch ${filename##*/}"
+ patch -p1 -N -i "$srcdir/${filename##*/}"
+ fi
+ done
+ :
+}
+
+build() {
+ cd $pkgname-$pkgver
+ [[ -d build ]] || mkdir build
+ cd build
+ # list of options defaults: grep ^option CMakeLists.txt
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_SYSCONFDIR=/etc \
+ -DCMAKE_INSTALL_SBINDIR=/usr/bin \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib \
+ -DSPHINX_BUILD=/usr/bin/sphinx-build2 \
+ -DWITH_SYSTEM_BOOST=ON \
+ -DWITH_SYSTEMD=ON \
+ -DWITH_EMBEDDED=OFF \
+ -DWITH_OPENLDAP=OFF \
+ -DWITH_LTTNG=OFF \
+ -DHAVE_BABELTRACE=OFF \
+ -DWITH_TESTS=OFF \
+ ..
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver/build
+
+ make DESTDIR="$pkgdir" install
+
+ cd "$pkgdir"
+
+ # install tmpfiles.d
+ install -Dm644 "$srcdir"/$pkgname-$pkgver/systemd/ceph.tmpfiles.d \
+ usr/lib/tmpfiles.d/$pkgname.conf
+ install -Dm644 "$srcdir"/ceph.sysusers \
+ usr/lib/sysusers.d/$pkgname.conf
+
+ # fix sbin path
+ msg2 'Fix sbin paths'
+ mv -v usr/sbin/* usr/bin
+
+ # fix bash completions path
+ msg2 'Fix bash completion path'
+ install -d -m 755 usr/share/bash-completion
+ mv -v etc/bash_completion.d usr/share/bash-completion/completions
+
+ # remove debian init
+ rm -v etc/init.d/ceph
+
+ # fix python2 shebang, did not do it in prepare() because cmake remplace some
+ msg2 'Fix python2 shebang'
+ find usr/bin -type f -executable -exec \
+ sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
+}
+
+# vim:set ts=2 sw=2 et:
Copied: ceph/repos/staging-i686/ceph.sysusers (from rev 305617, ceph/trunk/ceph.sysusers)
===================================================================
--- staging-i686/ceph.sysusers (rev 0)
+++ staging-i686/ceph.sysusers 2017-09-15 19:11:37 UTC (rev 305618)
@@ -0,0 +1 @@
+u ceph - - /run/ceph
Copied: ceph/repos/staging-x86_64/01-ceph-detec-init.patch (from rev 305617, ceph/trunk/01-ceph-detec-init.patch)
===================================================================
--- staging-x86_64/01-ceph-detec-init.patch (rev 0)
+++ staging-x86_64/01-ceph-detec-init.patch 2017-09-15 19:11:37 UTC (rev 305618)
@@ -0,0 +1,69 @@
+commit c19cb3cd2756ba830edd92158a2913beaa6e24aa
+Author: Sébastien Luttringer <seblu at seblu.net>
+Date: Sun Mar 26 16:35:13 2017 +0200
+
+ Arch support
+
+diff --git a/src/ceph-detect-init/ceph_detect_init/__init__.py b/src/ceph-detect-init/ceph_detect_init/__init__.py
+index a2bcc7cf27..ca2f2d7975 100644
+--- a/src/ceph-detect-init/ceph_detect_init/__init__.py
++++ b/src/ceph-detect-init/ceph_detect_init/__init__.py
+@@ -13,6 +13,7 @@
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU Library Public License for more details.
+ #
++from ceph_detect_init import arch
+ from ceph_detect_init import centos
+ from ceph_detect_init import debian
+ from ceph_detect_init import exc
+@@ -21,6 +22,7 @@ from ceph_detect_init import rhel
+ from ceph_detect_init import suse
+ import logging
+ import platform
++import os
+
+
+ def get(use_rhceph=False):
+@@ -49,6 +51,7 @@ def _get_distro(distro, use_rhceph=False):
+
+ distro = _normalized_distro_name(distro)
+ distributions = {
++ 'arch': arch,
+ 'debian': debian,
+ 'ubuntu': debian,
+ 'linuxmint': debian,
+@@ -75,6 +78,8 @@ def _normalized_distro_name(distro):
+ return 'suse'
+ elif distro.startswith('centos'):
+ return 'centos'
++ elif distro.startswith('arch'):
++ return 'arch'
+ return distro
+
+
+@@ -103,6 +108,8 @@ def platform_information():
+ else:
+ codename = major
+
++ elif os.path.exists("/etc/arch-release"):
++ return ("arch", None, "arch")
+ return (
+ str(distro).rstrip(),
+ str(release).rstrip(),
+diff --git a/src/ceph-detect-init/ceph_detect_init/arch/__init__.py b/src/ceph-detect-init/ceph_detect_init/arch/__init__.py
+new file mode 100644
+index 0000000000..425ce50bb2
+--- /dev/null
++++ b/src/ceph-detect-init/ceph_detect_init/arch/__init__.py
+@@ -0,0 +1,11 @@
++distro = None
++release = None
++codename = None
++
++
++def choose_init():
++ """Select a init system
++
++ Returns the name of a init system (upstart, sysvinit ...).
++ """
++ return 'systemd'
Copied: ceph/repos/staging-x86_64/PKGBUILD (from rev 305617, ceph/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2017-09-15 19:11:37 UTC (rev 305618)
@@ -0,0 +1,95 @@
+# $Id$
+# Maintainer: Sébastien "Seblu" Luttringer <seblu at archlinux.org>
+
+pkgname=ceph
+pkgver=10.2.9
+pkgrel=1
+pkgdesc='Distributed, fault-tolerant storage platform delivering object, block, and file system'
+arch=('x86_64' 'i686')
+url='https://ceph.com/'
+license=('GPL')
+makedepends=('boost' 'systemd' 'xfsprogs' 'python2-sphinx' 'cython2' 'sed')
+depends=('boost-libs' 'curl' 'expat' 'fcgi' 'fuse2' 'gcc-libs' 'glibc'
+ 'gperftools' 'keyutils' 'leveldb' 'libaio' 'libatomic_ops' 'libedit'
+ 'libsystemd' 'libutil-linux' 'ncurses' 'nss' 'python2' 'snappy'
+ 'python2-setuptools' 'xfsprogs')
+options=('emptydirs')
+source=("https://download.ceph.com/tarballs/$pkgname-$pkgver.tar.gz"
+ 'ceph.sysusers'
+ '01-ceph-detec-init.patch')
+md5sums=('eff6db61b3befb686e0693befa1f076a'
+ 'b3e24e3aa005a657ab475f84bfe3291a'
+ 'da25c78ae413dc134cc99fe9818f6ff1')
+
+prepare() {
+ cd $pkgname-$pkgver
+ # apply patch from the source array (should be a pacman feature)
+ local filename
+ for filename in "${source[@]}"; do
+ if [[ "$filename" =~ \.patch$ ]]; then
+ msg2 "Applying patch ${filename##*/}"
+ patch -p1 -N -i "$srcdir/${filename##*/}"
+ fi
+ done
+ :
+}
+
+build() {
+ cd $pkgname-$pkgver
+ # fix xfs.h failure in configure on i686
+ [[ $CARCH == i686 ]] && export CXXFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64"
+ # don't use autotools for ceph-disk, ceph-detect and tests
+ sed -ri 's,include (ceph-disk|ceph-detect-init|test)/Makefile.am,,' src/Makefile.am
+ # regen configure
+ ./autogen.sh
+ # fix python-config binary name
+ sed -i 's,python-config,python2-config,g' configure
+ ./configure \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --libexecdir=/usr/lib \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-man-pages \
+ --without-radosgw \
+ --without-openldap \
+ PYTHON=/usr/bin/python2 \
+ CYTHON_CHECK=yes \
+ PYTHON_CONFIG_CHECK=yes \
+ SPHINX_BUILD=sphinx-build2
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ # main install
+ make DESTDIR="$pkgdir" install
+
+ # ceph-disk
+ pushd src/ceph-disk
+ python2 setup.py install --root "$pkgdir" --prefix=/usr
+ popd
+
+ # ceph-detect-init
+ pushd src/ceph-detect-init
+ python2 setup.py install --root "$pkgdir" --prefix=/usr
+ popd
+
+ # systemd stuff
+ install -Dm644 systemd/ceph.tmpfiles.d "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
+ install -Dm644 "$srcdir"/ceph.sysusers "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+
+ # fix bash completions path
+ msg2 'Fix bash completion path'
+ install -d -m 755 "$pkgdir"/usr/share/bash-completion
+ mv "$pkgdir"/{etc/bash_completion.d,usr/share/bash-completion/completions}
+
+ # fix python2 shebang, did not do it in prepare() anymore because it
+ # confuse automake
+ msg2 'Fix python2 shebang'
+ find "$pkgdir" -type f -executable -exec \
+ sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
+}
+
+# vim:set ts=2 sw=2 et:
Copied: ceph/repos/staging-x86_64/PKGBUILD.v11 (from rev 305617, ceph/trunk/PKGBUILD.v11)
===================================================================
--- staging-x86_64/PKGBUILD.v11 (rev 0)
+++ staging-x86_64/PKGBUILD.v11 2017-09-15 19:11:37 UTC (rev 305618)
@@ -0,0 +1,92 @@
+# $Id: PKGBUILD 287115 2017-01-22 01:54:44Z seblu $
+# Maintainer: Sébastien "Seblu" Luttringer <seblu at archlinux.org>
+
+pkgname=ceph
+pkgver=11.2.0
+pkgrel=0.1
+pkgdesc='Distributed, fault-tolerant storage platform delivering object, block, and file system'
+arch=('x86_64' 'i686')
+url='https://ceph.com/'
+license=('GPL')
+makedepends=('boost' 'systemd' 'xfsprogs' 'python2-sphinx' 'python2-virtualenv'
+ 'cython2' 'cmake' 'yasm')
+depends=('boost-libs' 'curl' 'expat' 'fcgi' 'fuse2' 'gcc-libs' 'glibc'
+ 'gperftools' 'keyutils' 'leveldb' 'libaio' 'libatomic_ops' 'libedit'
+ 'libsystemd' 'libutil-linux' 'ncurses' 'nss' 'python2' 'snappy'
+ 'python2-setuptools' 'xfsprogs')
+options=('!emptydirs')
+source=("https://download.ceph.com/tarballs/ceph-$pkgver.tar.gz"
+ 'ceph.sysusers'
+ '14099.patch')
+md5sums=('1e394a69820d71e5df19abe38ef647a6'
+ 'b3e24e3aa005a657ab475f84bfe3291a'
+ '9d376f1f6d06be71c2cc6aa267a67869')
+
+prepare() {
+ cd $pkgname-$pkgver
+ # apply patch from the source array (should be a pacman feature)
+ local filename
+ for filename in "${source[@]}"; do
+ if [[ "$filename" =~ \.patch$ ]]; then
+ msg2 "Applying patch ${filename##*/}"
+ patch -p1 -N -i "$srcdir/${filename##*/}"
+ fi
+ done
+ :
+}
+
+build() {
+ cd $pkgname-$pkgver
+ [[ -d build ]] || mkdir build
+ cd build
+ # list of options defaults: grep ^option CMakeLists.txt
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_SYSCONFDIR=/etc \
+ -DCMAKE_INSTALL_SBINDIR=/usr/bin \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib \
+ -DSPHINX_BUILD=/usr/bin/sphinx-build2 \
+ -DWITH_SYSTEM_BOOST=ON \
+ -DWITH_SYSTEMD=ON \
+ -DWITH_EMBEDDED=OFF \
+ -DWITH_OPENLDAP=OFF \
+ -DWITH_LTTNG=OFF \
+ -DHAVE_BABELTRACE=OFF \
+ -DWITH_TESTS=OFF \
+ ..
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver/build
+
+ make DESTDIR="$pkgdir" install
+
+ cd "$pkgdir"
+
+ # install tmpfiles.d
+ install -Dm644 "$srcdir"/$pkgname-$pkgver/systemd/ceph.tmpfiles.d \
+ usr/lib/tmpfiles.d/$pkgname.conf
+ install -Dm644 "$srcdir"/ceph.sysusers \
+ usr/lib/sysusers.d/$pkgname.conf
+
+ # fix sbin path
+ msg2 'Fix sbin paths'
+ mv -v usr/sbin/* usr/bin
+
+ # fix bash completions path
+ msg2 'Fix bash completion path'
+ install -d -m 755 usr/share/bash-completion
+ mv -v etc/bash_completion.d usr/share/bash-completion/completions
+
+ # remove debian init
+ rm -v etc/init.d/ceph
+
+ # fix python2 shebang, did not do it in prepare() because cmake remplace some
+ msg2 'Fix python2 shebang'
+ find usr/bin -type f -executable -exec \
+ sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
+}
+
+# vim:set ts=2 sw=2 et:
Copied: ceph/repos/staging-x86_64/ceph.sysusers (from rev 305617, ceph/trunk/ceph.sysusers)
===================================================================
--- staging-x86_64/ceph.sysusers (rev 0)
+++ staging-x86_64/ceph.sysusers 2017-09-15 19:11:37 UTC (rev 305618)
@@ -0,0 +1 @@
+u ceph - - /run/ceph
More information about the arch-commits
mailing list