From: Gary Lowell Date: Tue, 12 Mar 2013 03:36:46 +0000 (-0700) Subject: ceph-deploy: Package It X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f56efde7150f17352912f23f0c749f43dbe09262;p=ceph-deploy.git ceph-deploy: Package It Initial versions of rpm and debian packages. Signed-off-by: Gary Lowell --- diff --git a/ceph-deploy.py b/ceph-deploy.py new file mode 100644 index 0000000..70d85aa --- /dev/null +++ b/ceph-deploy.py @@ -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 index 0000000..dd41b7f --- /dev/null +++ b/ceph-deploy.spec @@ -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 +- initial spec file diff --git a/debian/ceph-deploy.install b/debian/ceph-deploy.install new file mode 100644 index 0000000..cec4ab6 --- /dev/null +++ b/debian/ceph-deploy.install @@ -0,0 +1 @@ +./scripts/ceph-deploy /usr/bin diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..c1864ac --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +ceph-deploy (0.0.1-1) unstable; urgency=low + + * Initial release. + + -- Gary Lowell Mon, 10 Mar 2013 18:38:40 +0800 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..6ae7abe --- /dev/null +++ b/debian/control @@ -0,0 +1,21 @@ +Source: ceph-deploy +Section: admin +Priority: optional +Uploaders: Sage Weil +Maintainer: Sage Weil +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 index 0000000..93bc530 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,3 @@ +Files: * +Copyright: (c) 2004-2012 by Sage Weil +License: LGPL2.1 (see /usr/share/common-licenses/LGPL-2.1) diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..5151bb8 --- /dev/null +++ b/debian/rules @@ -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 index 0000000..d3827e7 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/scripts/ceph-deploy b/scripts/ceph-deploy new file mode 100755 index 0000000..7825169 --- /dev/null +++ b/scripts/ceph-deploy @@ -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()