]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
ceph-deploy: Package It
authorGary Lowell <glowell@inktank.com>
Tue, 12 Mar 2013 03:36:46 +0000 (20:36 -0700)
committerGary Lowell <gary.lowell@inktank.com>
Fri, 12 Apr 2013 19:19:41 +0000 (19:19 +0000)
Initial versions of rpm and debian packages.

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
ceph-deploy.py [new file with mode: 0644]
ceph-deploy.spec [new file with mode: 0644]
debian/ceph-deploy.install [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]
scripts/ceph-deploy [new file with mode: 0755]

diff --git a/ceph-deploy.py b/ceph-deploy.py
new file mode 100644 (file)
index 0000000..70d85aa
--- /dev/null
@@ -0,0 +1,11 @@
+i#!/usr/bin/env python
+# $Id: clubak.py 373 2010-09-26 23:20:10Z st-cea $
+
+"""
+clubak command-line tool
+"""
+
+from ClusterShell.CLI.Clubak import main
+
+if __name__ == '__main__':
+    main()
diff --git a/ceph-deploy.spec b/ceph-deploy.spec
new file mode 100644 (file)
index 0000000..dd41b7f
--- /dev/null
@@ -0,0 +1,54 @@
+Name: ceph-deploy
+Summary: Ceph-deploy admin tool for Ceph
+Version: 0.0.1
+Release: 0
+License: MIT
+Group:   System Environment/Base
+URL:     http://ceph.com/
+#Source: %{name}-%{version}.tar.gz
+Source: %{name}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-root
+BuildArchitectures: noarch
+
+%if 0%{?rhel}
+BuildRequires: python >= %{pyver}
+Requires: python >= %{pyver}
+%endif
+%if 0%{?suse_version}
+BuildRequires: python >= %{pyver}
+Requires: python >= %{pyver}
+%endif
+
+%description
+Ceph-deploy is an easy to use admin tool for deploy
+ceph storage clusters.
+
+%prep
+
+#%setup -q -n %{name}-%{version}
+%setup -q -n %{name}
+
+%build
+
+%install
+
+[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
+
+python setup.py install --install-lib=/usr/share/ceph-deploy --root=$RPM_BUILD_ROOT
+install -m 0755 -D scripts/ceph-deploy $RPM_BUILD_ROOT/usr/bin
+
+%clean
+[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
+
+%files
+%defattr(-,root,root)
+/usr/share/ceph-deploy/*
+/usr/bin/ceph-deploy
+
+%post
+
+%preun
+
+%changelog
+* Mon Mar 10 2013 Gary Lowell <glowell@inktank.com>
+- initial spec file
diff --git a/debian/ceph-deploy.install b/debian/ceph-deploy.install
new file mode 100644 (file)
index 0000000..cec4ab6
--- /dev/null
@@ -0,0 +1 @@
+./scripts/ceph-deploy  /usr/bin
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..c1864ac
--- /dev/null
@@ -0,0 +1,5 @@
+ceph-deploy (0.0.1-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Gary Lowell <gary.lowell@inktank.com>  Mon, 10 Mar 2013 18:38:40 +0800
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..6ae7abe
--- /dev/null
@@ -0,0 +1,21 @@
+Source: ceph-deploy
+Section: admin
+Priority: optional
+Uploaders: Sage Weil <sage@newdream.net>
+Maintainer: Sage Weil <sage@newdream.net>
+Homepage: http://ceph.com/
+Build-Depends: debhelper (>= 7)
+X-Python-Version: >= 2.4
+Standards-Version: 3.9.2
+Vcs-Git: git://github.com/ceph/ceph-deploy.git
+Vcs-Browser: https://github.com/ceph/ceph-deploy
+
+Package: ceph-deploy
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}
+Description:  Ceph-deploy is an easy to use configuration tool
+ for the Ceph distributed storage system.
+ .
+ This package includes the programs and libraries to support
+ simple ceph cluster deployment.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..93bc530
--- /dev/null
@@ -0,0 +1,3 @@
+Files: *
+Copyright: (c) 2004-2012 by Sage Weil <sage@newdream.net>
+License: LGPL2.1 (see /usr/share/common-licenses/LGPL-2.1)
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..5151bb8
--- /dev/null
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+export DEB_PYTHON_INSTALL_ARGS_ALL += --install-lib=/usr/share/ceph-deploy
+
+%:
+       dh $@ 
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..d3827e7
--- /dev/null
@@ -0,0 +1 @@
+1.0
diff --git a/scripts/ceph-deploy b/scripts/ceph-deploy
new file mode 100755 (executable)
index 0000000..7825169
--- /dev/null
@@ -0,0 +1,12 @@
+#!/usr/bin/env python
+import os
+import platform
+import sys
+"""
+ceph-deploy - admin tool for ceph
+"""
+sys.path.insert(0,'/usr/share/ceph-deploy')
+from ceph_deploy.cli import main
+
+if __name__ == '__main__':
+    main()