summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/README.Debian13
-rw-r--r--debian/compat1
-rw-r--r--debian/control25
-rw-r--r--debian/copyright13
-rw-r--r--debian/pyversions1
-rw-r--r--debian/rtsadmin-doc.docs6
-rw-r--r--debian/rtsadmin.dirs1
-rw-r--r--debian/rtsadmin.docs2
-rw-r--r--debian/rtsadmin.install2
-rwxr-xr-xdebian/rtsadmin.postinst17
-rwxr-xr-xdebian/rtsadmin.preinst3
-rwxr-xr-xdebian/rtsadmin.prerm8
-rwxr-xr-xdebian/rules56
13 files changed, 148 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..374bba0
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,13 @@
+Copyright (c) 2011 by RisingTide Systems LLC
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, version 3 (AGPLv3).
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..3bbfb80
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,25 @@
+Source: rtsadmin
+Section: python
+Priority: optional
+Maintainer: Jerome Martin <jxm@risingtidesystems.com>
+Build-Depends: debhelper(>= 5.0.1), python2.6, build-essential, python-dev, python2.6-dev, python-epydoc, zlib1g-dev, python-configshell, upx-ucl
+Standards-Version: 3.8.1
+
+Package: rtsadmin
+Architecture: all
+Depends: python (>= 2.6)|python2.6, python-configshell
+Suggests: rtsadmin-doc
+Conflicts: rtsadmin-frozen
+Description: CLI for the RisingTide Systems target, with complete sources.
+ .
+ This package contains the rtsadmin CLI.
+
+Package: rtsadmin-doc
+Section: doc
+Architecture: all
+Recommends: iceweasel | www-browser
+Description: User manual for the rtsadmin CLI
+ .
+ This package contains the User Manual for rtsadmin, the CLI
+ interface to the RisingTide Systems storage clusters.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..476386c
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,13 @@
+This package was originally debianized by Jerome Martin <jxm@risingtidesystems.com>
+on Thu Nov 19 12:00:01 UTC 2009. It is currently maintained by Jerome Martin
+<jxm@risingtidesystems.com>.
+
+Upstream Author: Jerome Martin <jxm@risingtidesystems.com>
+
+Copyright:
+
+ Copyright (c) 2009-2010 by RisingTide Systems LLC.
+ All rights reserved.
+ For licensing information, please contact us.
+ Not for redistribution.
+
diff --git a/debian/pyversions b/debian/pyversions
new file mode 100644
index 0000000..0c043f1
--- /dev/null
+++ b/debian/pyversions
@@ -0,0 +1 @@
+2.6-
diff --git a/debian/rtsadmin-doc.docs b/debian/rtsadmin-doc.docs
new file mode 100644
index 0000000..97c4a78
--- /dev/null
+++ b/debian/rtsadmin-doc.docs
@@ -0,0 +1,6 @@
+doc/README
+doc/COPYING
+doc/rtsadmin_reference.html
+doc/rtsadmin_reference.pdf
+doc/rtsadmin_reference_for_print.pdf
+doc/rtslogo.png
diff --git a/debian/rtsadmin.dirs b/debian/rtsadmin.dirs
new file mode 100644
index 0000000..f430183
--- /dev/null
+++ b/debian/rtsadmin.dirs
@@ -0,0 +1 @@
+usr/share/python-support/
diff --git a/debian/rtsadmin.docs b/debian/rtsadmin.docs
new file mode 100644
index 0000000..1f562b3
--- /dev/null
+++ b/debian/rtsadmin.docs
@@ -0,0 +1,2 @@
+README
+COPYING
diff --git a/debian/rtsadmin.install b/debian/rtsadmin.install
new file mode 100644
index 0000000..1b129dd
--- /dev/null
+++ b/debian/rtsadmin.install
@@ -0,0 +1,2 @@
+lib/rtsadmin usr/share/python-support
+bin /usr
diff --git a/debian/rtsadmin.postinst b/debian/rtsadmin.postinst
new file mode 100755
index 0000000..184f745
--- /dev/null
+++ b/debian/rtsadmin.postinst
@@ -0,0 +1,17 @@
+#!/bin/sh
+for lib in lib lib64; do
+ for python in python2.6; do
+ if [ -e /usr/${lib}/${python} ]; then
+ if [ ! -e /usr/${lib}/${python}/rtsadmin ]; then
+ mkdir /usr/${lib}/${python}/rtsadmin
+ for source in /usr/share/python-support/rtsadmin/rtsadmin/*.py; do
+ ln -sf ${source} /usr/${lib}/${python}/rtsadmin/
+ done
+ python_path=$(which ${python} 2>/dev/null)
+ if [ ! -z $python_path ]; then
+ ${python} -c "import compileall; compileall.compile_dir('/usr/${lib}/${python}/rtsadmin', force=1)"
+ fi
+ fi
+ fi
+ done
+done
diff --git a/debian/rtsadmin.preinst b/debian/rtsadmin.preinst
new file mode 100755
index 0000000..c591c64
--- /dev/null
+++ b/debian/rtsadmin.preinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+rm -f /usr/share/python-support/rtsadmin/rtsadmin/*.pyc
+rm -f /usr/share/python-support/rtsadmin/rtsadmin/*.pyo
diff --git a/debian/rtsadmin.prerm b/debian/rtsadmin.prerm
new file mode 100755
index 0000000..1dc3cb5
--- /dev/null
+++ b/debian/rtsadmin.prerm
@@ -0,0 +1,8 @@
+#!/bin/sh
+for lib in lib lib64; do
+ for python in python2.6; do
+ if [ -e /usr/${lib}/${python}/rtsadmin ]; then
+ rm -rf /usr/${lib}/${python}/rtsadmin
+ fi
+ done
+done
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..81a22ef
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,56 @@
+#!/usr/bin/make -f
+
+build_dir = build
+install_dir = debian/tmp
+python = $(shell \
+ python=$$(which python2.6 2>/dev/null); \
+ if [ -z $$python ]; then python=$$(which python 2>/dev/null); fi; \
+ if [ -z $$python ]; then python="/usr/bin/python"; fi; \
+ echo $$python)
+setup = $(python) ./setup.py --quiet
+
+binary: binary-indep
+
+binary-arch:
+
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installman
+ dh_install --list-missing --sourcedir $(install_dir)
+ dh_fixperms
+ dh_compress -X.py
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_installdirs
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+ # Build the source package
+ $(setup) build --build-base $(build_dir) install --no-compile --install-purelib $(install_dir)/lib/rtsadmin --install-scripts $(install_dir)/bin
+ echo "2.6" > $(install_dir)/lib/rtsadmin/.version
+ # Cleanup
+ rm -f $(install_dir)/lib/rtsadmin/rtsadmin/*.pyc
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+ $(setup) clean
+ find . -name "*.pyc" | xargs rm -f
+ find . -name "*.pyo" | xargs rm -f
+ rm -rf $(build_dir) $(install_dir)
+ dh_clean
+
+.PHONY: binary binary-indep install build clean
+