ceph v0.42 sync

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I send some patches to make the packaging difference smaller between us.
The first, create_run_dir.patch to make /run/ceph created on every
start. Yes, it's /run as /var/run is now a symbolic link to the former.
The next is an update to control to reflect the new Standards-Version
and to make hdparm optional to sdparm, which is for sATA discs.
Then an update to rules. Adding build-arch and build-indep targets.

I ask for a clarification of version numbers. Homepage shows v0.42 as
the latest downloadable as git contains v0.42.1 and v0.42.2 tags. Are
they official and/or should I wait for v0.43 which is due to yesterday
as I know?

Regards,
Laszlo/GCS
--- ceph/debian/control	2012-02-26 10:08:52.229291209 +0100
+++ ceph/debian/control	2012-02-26 10:10:04.277294925 +0100
@@ -7,11 +7,11 @@
 Maintainer: Laszlo Boszormenyi (GCS) <gcs@xxxxxxxxx>
 Uploaders: Sage Weil <sage@xxxxxxxxxxxx>
 Build-Depends: debhelper (>= 6.0.7~), autotools-dev, autoconf, automake, libfuse-dev, libboost-dev (>= 1.34), libedit-dev, libcrypto++-dev, libtool, libexpat1-dev, libfcgi-dev, libatomic-ops-dev, libgoogle-perftools-dev [i386 amd64], pkg-config, libgtkmm-2.4-dev, python, python-support, libcurl4-gnutls-dev, libkeyutils-dev, uuid-dev, libaio-dev
-Standards-Version: 3.9.1
+Standards-Version: 3.9.3
 
 Package: ceph
 Architecture: linux-any
-Depends: ${shlibs:Depends}, ${misc:Depends}, hdparm, binutils, ceph-common
+Depends: ${shlibs:Depends}, ${misc:Depends}, sdparm | hdparm, binutils, ceph-common
 Recommends: ceph-fuse, libcephfs1, librados2, librbd1, btrfs-tools
 Description: distributed storage and file system
  Ceph is a distributed storage and network file system designed to provide
--- ceph/debian/rules	2012-02-26 08:54:09.293059993 +0100
+++ ceph/debian/rules	2012-01-14 16:02:08.000000000 +0100
@@ -42,20 +42,23 @@
   extraopts += --without-tcmalloc
 endif
 
-
 configure: configure-stamp
 configure-stamp:
 	dh_testdir
 	touch $@
 
+build-arch: build
+build-indep: build
+
 build: build-stamp
 build-stamp: configure-stamp  
 	dh_testdir
 
 	./autogen.sh
 	./configure --prefix=/usr --sbindir=/sbin --localstatedir=/var \
-		--sysconfdir=/etc $(extraopts) $(confflags)
+	  --sysconfdir=/etc $(extraopts) $(confflags)
 	$(MAKE)
+
 	cp src/init-ceph debian/ceph.init
 	cp src/init-radosgw debian/radosgw.init
 	cp src/logrotate.conf debian/ceph.logrotate
Description: /run/ceph should exists for creating UNIX domain sockets
 ceph uses UNIX domain sockets for internal communication. Create their
 directory on startup as /run is on a virtual filesystem.
 .
Author: Laszlo Boszormenyi (GCS) <gcs@xxxxxxxxx>

Bug-Debian: http://bugs.debian.org/660238
Forwarded: <ceph-devel@xxxxxxxxxxxxxxx>
Last-Update: <2012-02-26>

--- ceph-0.42.orig/src/init-ceph.in
+++ ceph-0.42/src/init-ceph.in
@@ -12,6 +12,8 @@
 # Description:       Enable Ceph distributed file system services.
 ### END INIT INFO
 
+RUN_DIR=/run/ceph
+
 # if we start up as ./mkcephfs, assume everything else is in the
 # current directory too.
 if [ `dirname $0` = "." ] && [ $PWD != "/etc/init.d" ]; then
@@ -173,7 +175,7 @@ for name in $what; do
 
     check_host || continue
 
-    get_conf pid_file "/var/run/ceph/$type.$id.pid" "pid file"
+    get_conf pid_file "$RUN_DIR/$type.$id.pid" "pid file"
     [ -n "$pid_file" ] && do_cmd "mkdir -p "`dirname $pid_file`
 
     get_conf log_dir "" "log dir"
@@ -266,6 +268,7 @@ for name in $what; do
 		do_root_cmd "modprobe btrfs ; btrfs device scan || btrfsctl -a ; egrep -q '^[^ ]+ $btrfs_path' /proc/mounts || mount -t btrfs $btrfs_opt $first_dev $btrfs_path"
 	    fi
 	    echo Starting Ceph $name on $host...
+	    mkdir -p $RUN_DIR
 	    get_conf pre_start_eval "" "pre start eval"
 	    [ -n "$pre_start_eval" ] && $pre_start_eval
 	    get_conf pre_start "" "pre start command"

[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux