]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
new experimental deb-packaging rules. Only works for sid so far.
authorBrian Warner <warner@lothar.com>
Tue, 18 Aug 2009 01:40:52 +0000 (18:40 -0700)
committerBrian Warner <warner@lothar.com>
Tue, 18 Aug 2009 01:40:52 +0000 (18:40 -0700)
12 files changed:
Makefile
misc/build-deb.sh [new file with mode: 0644]
misc/debian/edgy.diff.gz [new file with mode: 0644]
misc/debian/etch.diff.gz [new file with mode: 0644]
misc/debian/feisty.diff.gz [new file with mode: 0644]
misc/debian/gutsy.diff.gz [new file with mode: 0644]
misc/debian/hardy.diff.gz [new file with mode: 0644]
misc/debian/intrepid.diff.gz [new file with mode: 0644]
misc/debian/jaunty.diff.gz [new file with mode: 0644]
misc/debian/karmic.diff.gz [new file with mode: 0644]
misc/debian/lenny.diff.gz [new file with mode: 0644]
misc/debian/sid.diff.gz [new file with mode: 0644]

index 6b12403e22b4b41198de3fffb01ee2b98d273d2e..87895614a2a5e4251c7117510997f2509b8414fa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -241,7 +241,6 @@ test-clean:
 
 clean:
        rm -rf build _trial_temp _test_memory .checked-deps .built
-       rm -f debian
        rm -f `find src/allmydata -name '*.so' -or -name '*.pyc'`
        rm -rf src/allmydata_tahoe.egg-info
        rm -rf support dist
@@ -402,6 +401,11 @@ deb-jaunty-head:
        $(MAKE) increment-deb-version
        fakeroot debian/rules binary
 
+# new experimental debian-packaging-building target
+.PHONY: EXPERIMENTAL-deb
+EXPERIMENTAL-deb: is-known-debian-arch
+       misc/build-deb.sh
+
 
 # These targets provide for windows native builds
 .PHONY: windows-exe windows-installer windows-installer-upload
diff --git a/misc/build-deb.sh b/misc/build-deb.sh
new file mode 100644 (file)
index 0000000..e15d428
--- /dev/null
@@ -0,0 +1,38 @@
+#!/bin/bash
+set -e
+
+# $PYTHON and $ARCH must be set
+
+if [ -z "$PYTHON" ]; then
+    PYTHON=python
+fi
+if [ -z "$ARCH" ]; then
+    echo "must set ARCH= before running this script"
+    exit 1
+fi
+
+NAME=$($PYTHON setup.py --name)
+VERSION=$($PYTHON setup.py --version)
+
+# actually, it's the debchange using a different author than the
+# debian/control Maintainer: entry that makes lintian think this is an NMU.
+# Put "local package" on the first line of the changelog entry to supress
+# this warning.
+TARBALL=${NAME}-${VERSION}.tar.gz
+DEBTARBALL=${NAME}_${VERSION}.orig.tar.gz
+DEBDIR=build/debian/${NAME}-${VERSION}
+$PYTHON setup.py sdist --formats=gztar
+rm -rf build/debian
+mkdir -p build/debian
+cp dist/$TARBALL build/debian/$DEBTARBALL
+(cd build/debian && tar xf $DEBTARBALL)
+zcat misc/debian/$ARCH.diff.gz | (cd $DEBDIR && patch -p1)
+chmod +x $DEBDIR/debian/rules
+# We put "local package" on the first line of the changelog entry to suppress
+# the lintian NMU warnings (since debchange's new entry's "author" will
+# probably be different than the what the debian/control Maintainer: field
+# says)
+echo "updating version to $VERSION-1"
+(cd $DEBDIR && debchange --newversion $VERSION-1 "local package: 'make deb' build")
+(cd $DEBDIR && debuild -uc -us)
+
diff --git a/misc/debian/edgy.diff.gz b/misc/debian/edgy.diff.gz
new file mode 100644 (file)
index 0000000..8a62583
Binary files /dev/null and b/misc/debian/edgy.diff.gz differ
diff --git a/misc/debian/etch.diff.gz b/misc/debian/etch.diff.gz
new file mode 100644 (file)
index 0000000..f1ec1b4
Binary files /dev/null and b/misc/debian/etch.diff.gz differ
diff --git a/misc/debian/feisty.diff.gz b/misc/debian/feisty.diff.gz
new file mode 100644 (file)
index 0000000..da6d03d
Binary files /dev/null and b/misc/debian/feisty.diff.gz differ
diff --git a/misc/debian/gutsy.diff.gz b/misc/debian/gutsy.diff.gz
new file mode 100644 (file)
index 0000000..961c65d
Binary files /dev/null and b/misc/debian/gutsy.diff.gz differ
diff --git a/misc/debian/hardy.diff.gz b/misc/debian/hardy.diff.gz
new file mode 100644 (file)
index 0000000..afb0f71
Binary files /dev/null and b/misc/debian/hardy.diff.gz differ
diff --git a/misc/debian/intrepid.diff.gz b/misc/debian/intrepid.diff.gz
new file mode 100644 (file)
index 0000000..0e670ee
Binary files /dev/null and b/misc/debian/intrepid.diff.gz differ
diff --git a/misc/debian/jaunty.diff.gz b/misc/debian/jaunty.diff.gz
new file mode 100644 (file)
index 0000000..2d8df96
Binary files /dev/null and b/misc/debian/jaunty.diff.gz differ
diff --git a/misc/debian/karmic.diff.gz b/misc/debian/karmic.diff.gz
new file mode 100644 (file)
index 0000000..bb29a71
Binary files /dev/null and b/misc/debian/karmic.diff.gz differ
diff --git a/misc/debian/lenny.diff.gz b/misc/debian/lenny.diff.gz
new file mode 100644 (file)
index 0000000..497a373
Binary files /dev/null and b/misc/debian/lenny.diff.gz differ
diff --git a/misc/debian/sid.diff.gz b/misc/debian/sid.diff.gz
new file mode 100644 (file)
index 0000000..8f54346
Binary files /dev/null and b/misc/debian/sid.diff.gz differ