]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
add preliminary debian packaging
authorBrian Warner <warner@lothar.com>
Tue, 5 Dec 2006 09:00:44 +0000 (02:00 -0700)
committerBrian Warner <warner@lothar.com>
Tue, 5 Dec 2006 09:00:44 +0000 (02:00 -0700)
13 files changed:
.darcs-boringfile
Makefile
dapper/debian/changelog [new file with mode: 0644]
dapper/debian/compat [new file with mode: 0644]
dapper/debian/control [new file with mode: 0644]
dapper/debian/copyright [new file with mode: 0644]
dapper/debian/rules [new file with mode: 0644]
sid/debian/changelog [new file with mode: 0644]
sid/debian/compat [new file with mode: 0644]
sid/debian/control [new file with mode: 0644]
sid/debian/copyright [new file with mode: 0644]
sid/debian/pycompat [new file with mode: 0644]
sid/debian/rules [new file with mode: 0644]

index 8272c1298c7ff56f196023bee9643d629487d313..74176fa858ea543dbd9daac97b85fd493088be20 100644 (file)
@@ -40,4 +40,9 @@
 ^\.buildbot($|/)
 ^MANIFEST$
 ^dist($|/)
+^debian($|/)
 
+^(dapper|sid)/debian/allmydata
+^(dapper|sid)/debian/files$
+^build($|/)
+^build-stamp$
index 36774af8605d5fe9613cc572e741bc6ac43fbeef..52cf30aaa022a75ba530ba0a1a59f9e40e1f67a3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -21,3 +21,15 @@ create_dirs:
        mkdir -p client-basedir2
        mkdir -p client-basedir/storage
        mkdir -p client-basedir2/storage
+
+deb-dapper:
+       rm -f debian
+       ln -s dapper/debian debian
+       chmod a+x debian/rules
+       fakeroot debian/rules binary
+
+deb-sid:
+       rm -f debian
+       ln -s sid/debian debian
+       chmod a+x debian/rules
+       fakeroot debian/rules binary
diff --git a/dapper/debian/changelog b/dapper/debian/changelog
new file mode 100644 (file)
index 0000000..9450e1e
--- /dev/null
@@ -0,0 +1,5 @@
+allmydata (0.0.1) unstable; urgency=low
+
+  * experimental packaging
+
+ -- Brian Warner <warner@allmydata.com>  Mon,  4 Dec 2006 23:34:07 -0800
diff --git a/dapper/debian/compat b/dapper/debian/compat
new file mode 100644 (file)
index 0000000..b8626c4
--- /dev/null
@@ -0,0 +1 @@
+4
diff --git a/dapper/debian/control b/dapper/debian/control
new file mode 100644 (file)
index 0000000..008430d
--- /dev/null
@@ -0,0 +1,12 @@
+Source: allmydata
+Section: python
+Priority: optional
+Maintainer: Brian Warner <warner@allmydata.com>
+Build-Depends: debhelper (>> 4.1.68), python2.4-dev, python2.4-twisted, cdbs
+Standards-Version: 3.7.2
+
+Package: allmydata
+Architecture: all
+Depends: python (>= 2.4), python (<< 2.5), python2.4-foolscap
+Description: A secure distributed filestore
+ Allmydata (tahoe2)
diff --git a/dapper/debian/copyright b/dapper/debian/copyright
new file mode 100644 (file)
index 0000000..f180dd9
--- /dev/null
@@ -0,0 +1,6 @@
+This package was debianized by Brian Warner <warner@allmydata.com>
+
+Copyright (c) 2006
+AllMyData
+
+All rights reserved, for now.
diff --git a/dapper/debian/rules b/dapper/debian/rules
new file mode 100644 (file)
index 0000000..d96a65c
--- /dev/null
@@ -0,0 +1,60 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatability version to use.
+export DH_COMPAT=4
+
+build: build-stamp
+build-stamp:
+       dh_testdir
+
+       ## Build for all python versions
+       python2.4 setup.py build
+
+       touch build-stamp
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp
+       rm -rf build
+       find . -name '*.pyc' |xargs -r rm
+       dh_clean
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       dh_installdirs
+
+       ## Python 2.4
+       python2.4 setup.py build
+       python2.4 setup.py install --prefix=debian/allmydata/usr
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+       dh_testdir
+       dh_testroot
+       dh_installdocs -i client.tac queen.tac
+       dh_installchangelogs -i
+       dh_compress -i -X.py
+       dh_fixperms
+       dh_python
+       dh_installdeb
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary-arch:
+# nothing to do
+
+binary: binary-indep
+.PHONY: build clean binary-indep binary-arch binary install
+
+
+
diff --git a/sid/debian/changelog b/sid/debian/changelog
new file mode 100644 (file)
index 0000000..9450e1e
--- /dev/null
@@ -0,0 +1,5 @@
+allmydata (0.0.1) unstable; urgency=low
+
+  * experimental packaging
+
+ -- Brian Warner <warner@allmydata.com>  Mon,  4 Dec 2006 23:34:07 -0800
diff --git a/sid/debian/compat b/sid/debian/compat
new file mode 100644 (file)
index 0000000..b8626c4
--- /dev/null
@@ -0,0 +1 @@
+4
diff --git a/sid/debian/control b/sid/debian/control
new file mode 100644 (file)
index 0000000..3072431
--- /dev/null
@@ -0,0 +1,16 @@
+Source: allmydata
+Section: python
+Priority: optional
+Maintainer: Brian Warner <warner@allmydata.com>
+Build-Depends: debhelper (>= 5.0.37.2), cdbs (>= 0.4.43), python-central (>= 0.5), python, python-dev
+Build-Depends-Indep: python-twisted-core
+XS-Python-Version: 2.4
+Standards-Version: 3.7.2
+
+Package: allmydata
+Architecture: all
+Depends: ${python:Depends}, python-twisted-core, python-foolscap, python-pyopenssl, python-twisted-names
+Recommends:
+XB-Python-Version: 2.4
+Description: A secure distributed filestore
+ Allmydata (tahoe2)
diff --git a/sid/debian/copyright b/sid/debian/copyright
new file mode 100644 (file)
index 0000000..f180dd9
--- /dev/null
@@ -0,0 +1,6 @@
+This package was debianized by Brian Warner <warner@allmydata.com>
+
+Copyright (c) 2006
+AllMyData
+
+All rights reserved, for now.
diff --git a/sid/debian/pycompat b/sid/debian/pycompat
new file mode 100644 (file)
index 0000000..0cfbf08
--- /dev/null
@@ -0,0 +1 @@
+2
diff --git a/sid/debian/rules b/sid/debian/rules
new file mode 100644 (file)
index 0000000..335b958
--- /dev/null
@@ -0,0 +1,15 @@
+#! /usr/bin/make -f
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DEB_PYTHON_SYSTEM=pycentral
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
+
+
+install/python-foolscap::
+       dh_installdocs client.tac queen.tac
+
+clean::
+       -rm -rf build