From 266127a4f0a431ad2bd3059d53578d902a3fd74d Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 5 Dec 2006 02:00:44 -0700 Subject: [PATCH] add preliminary debian packaging --- .darcs-boringfile | 5 ++++ Makefile | 12 +++++++++ dapper/debian/changelog | 5 ++++ dapper/debian/compat | 1 + dapper/debian/control | 12 +++++++++ dapper/debian/copyright | 6 +++++ dapper/debian/rules | 60 +++++++++++++++++++++++++++++++++++++++++ sid/debian/changelog | 5 ++++ sid/debian/compat | 1 + sid/debian/control | 16 +++++++++++ sid/debian/copyright | 6 +++++ sid/debian/pycompat | 1 + sid/debian/rules | 15 +++++++++++ 13 files changed, 145 insertions(+) create mode 100644 dapper/debian/changelog create mode 100644 dapper/debian/compat create mode 100644 dapper/debian/control create mode 100644 dapper/debian/copyright create mode 100644 dapper/debian/rules create mode 100644 sid/debian/changelog create mode 100644 sid/debian/compat create mode 100644 sid/debian/control create mode 100644 sid/debian/copyright create mode 100644 sid/debian/pycompat create mode 100644 sid/debian/rules diff --git a/.darcs-boringfile b/.darcs-boringfile index 8272c129..74176fa8 100644 --- a/.darcs-boringfile +++ b/.darcs-boringfile @@ -40,4 +40,9 @@ ^\.buildbot($|/) ^MANIFEST$ ^dist($|/) +^debian($|/) +^(dapper|sid)/debian/allmydata +^(dapper|sid)/debian/files$ +^build($|/) +^build-stamp$ diff --git a/Makefile b/Makefile index 36774af8..52cf30aa 100644 --- 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 index 00000000..9450e1e1 --- /dev/null +++ b/dapper/debian/changelog @@ -0,0 +1,5 @@ +allmydata (0.0.1) unstable; urgency=low + + * experimental packaging + + -- Brian Warner Mon, 4 Dec 2006 23:34:07 -0800 diff --git a/dapper/debian/compat b/dapper/debian/compat new file mode 100644 index 00000000..b8626c4c --- /dev/null +++ b/dapper/debian/compat @@ -0,0 +1 @@ +4 diff --git a/dapper/debian/control b/dapper/debian/control new file mode 100644 index 00000000..008430d2 --- /dev/null +++ b/dapper/debian/control @@ -0,0 +1,12 @@ +Source: allmydata +Section: python +Priority: optional +Maintainer: Brian Warner +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 index 00000000..f180dd91 --- /dev/null +++ b/dapper/debian/copyright @@ -0,0 +1,6 @@ +This package was debianized by Brian Warner + +Copyright (c) 2006 +AllMyData + +All rights reserved, for now. diff --git a/dapper/debian/rules b/dapper/debian/rules new file mode 100644 index 00000000..d96a65c9 --- /dev/null +++ b/dapper/debian/rules @@ -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 index 00000000..9450e1e1 --- /dev/null +++ b/sid/debian/changelog @@ -0,0 +1,5 @@ +allmydata (0.0.1) unstable; urgency=low + + * experimental packaging + + -- Brian Warner Mon, 4 Dec 2006 23:34:07 -0800 diff --git a/sid/debian/compat b/sid/debian/compat new file mode 100644 index 00000000..b8626c4c --- /dev/null +++ b/sid/debian/compat @@ -0,0 +1 @@ +4 diff --git a/sid/debian/control b/sid/debian/control new file mode 100644 index 00000000..30724310 --- /dev/null +++ b/sid/debian/control @@ -0,0 +1,16 @@ +Source: allmydata +Section: python +Priority: optional +Maintainer: Brian Warner +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 index 00000000..f180dd91 --- /dev/null +++ b/sid/debian/copyright @@ -0,0 +1,6 @@ +This package was debianized by Brian Warner + +Copyright (c) 2006 +AllMyData + +All rights reserved, for now. diff --git a/sid/debian/pycompat b/sid/debian/pycompat new file mode 100644 index 00000000..0cfbf088 --- /dev/null +++ b/sid/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/sid/debian/rules b/sid/debian/rules new file mode 100644 index 00000000..335b9584 --- /dev/null +++ b/sid/debian/rules @@ -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 -- 2.45.2