]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install: remove perl dependency
authorGary Lowell <glowell@inktank.com>
Mon, 4 Feb 2013 20:56:01 +0000 (12:56 -0800)
committerGary Lowell <glowell@inktank.com>
Mon, 4 Feb 2013 20:56:01 +0000 (12:56 -0800)
Change the filter in logrotate to use sed instead of perl, and remove the
package dependency on perl.

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
ceph.spec.in
debian/control
src/logrotate.conf

index 7efb9889a740f137e59d4dc67d9a5f829517bc18..a701abddf3c0826c2cf66bf6c8340972dbdf9c3f 100644 (file)
@@ -24,7 +24,6 @@ Source0:      http://ceph.com/download/%{name}-%{version}.tar.bz2
 Requires:      librbd1 = %{version}-%{release}
 Requires:      librados2 = %{version}-%{release}
 Requires:      libcephfs1 = %{version}-%{release}
-Requires:      perl
 Requires:      python
 Requires(post):        binutils
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
index 5f71995a9322b8f6cf6da468d864e3954eb6cf78..e79cbbd22929c25761a5f056370b815c4523ee99 100644 (file)
@@ -11,7 +11,7 @@ Standards-Version: 3.9.3
 
 Package: ceph
 Architecture: linux-any
-Depends: ${shlibs:Depends}, ${misc:Depends}, sdparm | hdparm, binutils, ceph-common, uuid-runtime, python, xfsprogs, perl
+Depends: ${shlibs:Depends}, ${misc:Depends}, sdparm | hdparm, binutils, ceph-common, uuid-runtime, python, xfsprogs
 Recommends: ceph-mds, librados2, librbd1, btrfs-tools, gdisk, parted
 Description: distributed storage and file system
  Ceph is a distributed storage system designed to provide excellent
index 9af310413d9aa3a8659b58af48feca786b281d99..0a4a5a2422a44e2db488fd51611e7ef7984ff414 100644 (file)
@@ -15,7 +15,7 @@
             #   https://bugs.launchpad.net/upstart/+bug/1012938
             for type in mon osd mds; do
                initctl list \
-                   | perl -ne 'print "$+{service} cluster=$+{cluster} id=$+{id}\n" if m{^(?<service>ceph-(mon|osd|mds)+)\s+\((?<cluster>[^/)]+)/(?<id>[^)]+)\) start/}' \
+                   | sed -n 's/^\(ceph-\(mon\|osd\|mds\)\+\)[ \t]\+(\([^ \/]\+\)\/\([^ \/]\+\))[ \t]\+start\/.*$/\1 cluster=\3 id=\4/p' \
                    | while read l; do
                    initctl reload -- $l 2>/dev/null || :
                done