Initial versions of rpm and debian packages.
Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
--- /dev/null
+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()
--- /dev/null
+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
--- /dev/null
+./scripts/ceph-deploy /usr/bin
--- /dev/null
+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
--- /dev/null
+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.
+
--- /dev/null
+Files: *
+Copyright: (c) 2004-2012 by Sage Weil <sage@newdream.net>
+License: LGPL2.1 (see /usr/share/common-licenses/LGPL-2.1)
--- /dev/null
+#!/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 $@
+
--- /dev/null
+#!/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()