aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-02-04 15:08:39 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-02-04 15:08:39 -0200
commit28cc7964357a2c0dedfe7715265765a2e0039852 (patch)
tree0b903b684f060285eb633bb5f9e36956727f818a
parentb3232dc1f91adaa3f93919766ef34b29f046651a (diff)
downloaddotfiles-28cc7964357a2c0dedfe7715265765a2e0039852.tar.gz
dotfiles-28cc7964357a2c0dedfe7715265765a2e0039852.tar.bz2
Adding debian dev module
-rw-r--r--modules/debian/gbp.conf.dot.link10
-rw-r--r--modules/debian/pbuilderrc.dot.link79
-rw-r--r--modules/debian/pydistutils.cfg.dot.link2
-rw-r--r--modules/debian/quiltrc-dpkg.dot.link10
4 files changed, 101 insertions, 0 deletions
diff --git a/modules/debian/gbp.conf.dot.link b/modules/debian/gbp.conf.dot.link
new file mode 100644
index 0000000..0b14dff
--- /dev/null
+++ b/modules/debian/gbp.conf.dot.link
@@ -0,0 +1,10 @@
+[DEFAULT]
+builder = my-pdebuild-nosign
+cleaner = fakeroot debian/rules clean
+pristine-tar = True
+color = auto
+[git-buildpackage]
+export-dir = ../build-area/
+tarball-dir = ../tarballs/
+[git-import-orig]
+dch = False
diff --git a/modules/debian/pbuilderrc.dot.link b/modules/debian/pbuilderrc.dot.link
new file mode 100644
index 0000000..e5bc540
--- /dev/null
+++ b/modules/debian/pbuilderrc.dot.link
@@ -0,0 +1,79 @@
+# See https://wiki.ubuntu.com/PbuilderHowto#Manually_doing_what_pbuilder-dist_can_do
+# Codenames for Debian suites according to their alias. Update these when
+# needed.
+UNSTABLE_CODENAME="sid"
+TESTING_CODENAME="wheezy"
+STABLE_CODENAME="squeeze"
+STABLE_BACKPORTS_SUITE="$STABLE_CODENAME-backports"
+
+# List of Debian suites.
+DEBIAN_SUITES=($UNSTABLE_CODENAME $TESTING_CODENAME $STABLE_CODENAME
+ "unstable" "testing" "stable")
+
+# List of Ubuntu suites. Update these when needed.
+UBUNTU_SUITES=("natty" "maverick" "lucid" "karmic" "jaunty" "hardy")
+
+# Mirrors to use. Update these to your preferred mirror.
+DEBIAN_MIRROR="ftp.us.debian.org"
+UBUNTU_MIRROR="ftp.ubuntu.com"
+
+# Optionally use the changelog of a package to determine the suite to use if
+# none set.
+if [ -z "${DIST}" ] && [ -r "debian/changelog" ]; then
+ DIST=$(dpkg-parsechangelog | awk '/^Distribution: / {print $2}')
+ DIST="${DIST%%-*}"
+ # Use the unstable suite for certain suite values.
+ if $(echo "experimental UNRELEASED" | grep -q $DIST); then
+ DIST="$UNSTABLE_CODENAME"
+ fi
+fi
+
+# Optionally set a default distribution if none is used. Note that you can set
+# your own default (i.e. ${DIST:="unstable"}).
+: ${DIST:="$(lsb_release --short --codename)"}
+
+# Optionally change Debian release states in $DIST to their names.
+case "$DIST" in
+ unstable)
+ DIST="$UNSTABLE_CODENAME"
+ ;;
+ testing)
+ DIST="$TESTING_CODENAME"
+ ;;
+ stable)
+ DIST="$STABLE_CODENAME"
+ ;;
+esac
+
+# Optionally set the architecture to the host architecture if none set. Note
+# that you can set your own default (i.e. ${ARCH:="i386"}).
+: ${ARCH:="$(dpkg --print-architecture)"}
+
+NAME="$DIST"
+if [ -n "${ARCH}" ]; then
+ NAME="$NAME-$ARCH"
+ DEBOOTSTRAPOPTS=("--arch" "$ARCH" "${DEBOOTSTRAPOPTS[@]}")
+fi
+BASETGZ="/var/cache/pbuilder/$NAME-base.tgz"
+# Optionally, set BASEPATH (and not BASETGZ) if using cowbuilder
+# BASEPATH="/var/cache/pbuilder/$NAME/base.cow/"
+DISTRIBUTION="$DIST"
+BUILDRESULT="/var/cache/pbuilder/$NAME/result/"
+APTCACHE="/var/cache/pbuilder/$NAME/aptcache/"
+BUILDPLACE="/var/cache/pbuilder/build/"
+
+if $(echo ${DEBIAN_SUITES[@]} | grep -q $DIST); then
+ # Debian configuration
+ MIRRORSITE="http://$DEBIAN_MIRROR/debian/"
+ COMPONENTS="main contrib non-free"
+ DEBOOTSTRAPOPTS=("${DEBOOTSTRAPOPTS[@]}" "--keyring=/usr/share/keyrings/debian-archive-keyring.gpg")
+
+elif $(echo ${UBUNTU_SUITES[@]} | grep -q $DIST); then
+ # Ubuntu configuration
+ MIRRORSITE="http://$UBUNTU_MIRROR/ubuntu/"
+ COMPONENTS="main restricted universe multiverse"
+ DEBOOTSTRAPOPTS=("${DEBOOTSTRAPOPTS[@]}" "--keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg")
+else
+ echo "Unknown distribution: $DIST"
+ exit 1
+fi
diff --git a/modules/debian/pydistutils.cfg.dot.link b/modules/debian/pydistutils.cfg.dot.link
new file mode 100644
index 0000000..9adb233
--- /dev/null
+++ b/modules/debian/pydistutils.cfg.dot.link
@@ -0,0 +1,2 @@
+[sdist_dsc]
+force-buildsystem: False
diff --git a/modules/debian/quiltrc-dpkg.dot.link b/modules/debian/quiltrc-dpkg.dot.link
new file mode 100644
index 0000000..7f74f4c
--- /dev/null
+++ b/modules/debian/quiltrc-dpkg.dot.link
@@ -0,0 +1,10 @@
+d=. ; while [ ! -d $d/debian -a `readlink -e $d` != / ]; do d=$d/..; done
+if [ -d $d/debian ] && [ -z $QUILT_PATCHES ]; then
+ # if in Debian packaging tree with unset $QUILT_PATCHES
+ QUILT_PATCHES="debian/patches"
+ QUILT_PATCH_OPTS="--reject-format=unified"
+ QUILT_DIFF_ARGS="-p ab --no-timestamps --no-index --color=auto"
+ QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
+ QUILT_COLORS="diff_hdr=1;32:diff_add=1;34:diff_rem=1;31:diff_hunk=1;33:diff_ctx=35:diff_cctx=33"
+ if ! [ -d $d/debian/patches ]; then mkdir $d/debian/patches; fi
+fi