summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_pbuilder_setup.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-09-23 18:09:38 +0200
committerHolger Levsen <holger@layer-acht.org>2014-09-23 18:09:38 +0200
commit0891306bd36d87fb718cc46ab2eced2d800b8712 (patch)
tree28bbb33385e809f93c2a51659d6e6e5675df9838 /bin/reproducible_pbuilder_setup.sh
parentc79273fb2fa4fe762013685c3efd7a86e2710ef5 (diff)
downloadjenkins.debian.net-0891306bd36d87fb718cc46ab2eced2d800b8712.tar.xz
2nd attempt at building reproducible packages
Diffstat (limited to 'bin/reproducible_pbuilder_setup.sh')
-rwxr-xr-xbin/reproducible_pbuilder_setup.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/reproducible_pbuilder_setup.sh b/bin/reproducible_pbuilder_setup.sh
new file mode 100755
index 00000000..282d61eb
--- /dev/null
+++ b/bin/reproducible_pbuilder_setup.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# Copyright 2014 Holger Levsen <holger@layer-acht.org>
+# released under the GPLv=2
+
+. /srv/jenkins/bin/common-functions.sh
+common_init "$@"
+
+TMPFILE=$(mktemp=)
+cat > $TMPFILE <<- EOF
+echo 'deb http://reproducible.alioth.debian.org/debian/ ./' > /etc/apt/sources.list.d/reproducible.list
+apt-get update
+apt-get install -y dpkg dpkg-dev debhelper dh-python proot
+EOF
+
+sudo cp /var/cache/pbuilder/base.tgz /var/cache/pbuilder/base-reproducible.tgz
+sudo pbuilder --execute $TMPFILE --save-after-exec --basetgz /var/cache/pbuilder/base-reproducible.tgz
+rm $TMPFILE