summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Lowell <glowell@inktank.com>2013-02-04 12:56:01 -0800
committerGary Lowell <glowell@inktank.com>2013-02-04 12:56:01 -0800
commit4a6924a5621e3eb40b8631119de9c7a349300c53 (patch)
treed85e1c5f135db24e6259bde080225bd2959f8cf6
parent804ffc63c49316d694efa1afdbb3fac65f5f9a7c (diff)
downloadceph-4a6924a5621e3eb40b8631119de9c7a349300c53.tar.gz
install: remove perl dependency
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>
-rw-r--r--ceph.spec.in1
-rw-r--r--debian/control2
-rw-r--r--src/logrotate.conf2
3 files changed, 2 insertions, 3 deletions
diff --git a/ceph.spec.in b/ceph.spec.in
index 7efb9889a74..a701abddf3c 100644
--- a/ceph.spec.in
+++ b/ceph.spec.in
@@ -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
diff --git a/debian/control b/debian/control
index 5f71995a932..e79cbbd2292 100644
--- a/debian/control
+++ b/debian/control
@@ -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
diff --git a/src/logrotate.conf b/src/logrotate.conf
index 9af310413d9..0a4a5a2422a 100644
--- a/src/logrotate.conf
+++ b/src/logrotate.conf
@@ -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