Commit d779c834 authored by Duncan Bellamy's avatar Duncan Bellamy Committed by Leo
Browse files

community/ceph: fix init.d script and conf.d permissions

* add -s to CFLAGS and CPPFLAGS so does not run out of space when building
parent acbf5da9
Pipeline #86412 passed with stages
in 4 minutes and 3 seconds
......@@ -4,7 +4,7 @@
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=ceph
pkgver=15.2.13
pkgrel=0
pkgrel=1
pkgdesc="Ceph is a distributed object store and file system"
pkgusers="ceph"
pkggroups="ceph"
......@@ -195,6 +195,10 @@ build() {
export CFLAGS="$CFLAGS -DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT"
export CXXFLAGS="$CXXFLAGS -DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT"
# strip debug info when compiling so does not run out of space
export CFLAGS="$CFLAGS -s"
export CXXFLAGS="$CXXFLAGS -s"
cmake -B build \
-DALLOCATOR=libc \
-DCMAKE_INSTALL_PREFIX=/usr \
......@@ -226,8 +230,8 @@ package() {
# Remove the upstream init file and put in openrc ones
rm -f "$pkgdir"/etc/init.d/ceph
install -D -m 0744 "$srcdir"/"$pkgname".initd "$pkgdir"/etc/init.d/ceph
install -D -m 0744 "$srcdir"/"$pkgname".confd "$pkgdir"/etc/conf.d/ceph
install -D -m 0755 "$srcdir"/"$pkgname".initd "$pkgdir"/etc/init.d/ceph
install -D -m 0644 "$srcdir"/"$pkgname".confd "$pkgdir"/etc/conf.d/ceph
# Move mount.* binaries to /sbin
mkdir -p "$pkgdir"/sbin
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment