[Pkg-xfce-commits] r298 - in scripts: . pbuilder pbuilder/hooks

Emanuele Rocca ema at costa.debian.org
Sun Nov 13 14:59:45 UTC 2005


Author: ema
Date: 2005-11-13 14:59:44 +0000 (Sun, 13 Nov 2005)
New Revision: 298

Added:
   scripts/pbuilder/
   scripts/pbuilder/README
   scripts/pbuilder/hooks/
   scripts/pbuilder/hooks/D10aptupdate.sh
   scripts/pbuilder/pdebuild-sources.sh
   scripts/pbuilder/pdebuild.conf
   scripts/pbuilder/pdebuild.wrapper
Log:
Set of scripts to build all the desktop/ stuff with pbuilder and automatically
satisfy dependencies.


Added: scripts/pbuilder/README
===================================================================
--- scripts/pbuilder/README	2005-11-13 13:19:39 UTC (rev 297)
+++ scripts/pbuilder/README	2005-11-13 14:59:44 UTC (rev 298)
@@ -0,0 +1,8 @@
+1) Set the correct paths in pdebuild.conf, pdebuild.wrapper and pdebuild-sources.sh
+
+2) Run sudo ./pdebuild-sources.sh
+
+3) Cross your fingers
+
+If you want to wipe out everything and start from scratch, just rm -rf xfce/ and
+run pdebuild-sources.sh again

Added: scripts/pbuilder/hooks/D10aptupdate.sh
===================================================================
--- scripts/pbuilder/hooks/D10aptupdate.sh	2005-11-13 13:19:39 UTC (rev 297)
+++ scripts/pbuilder/hooks/D10aptupdate.sh	2005-11-13 14:59:44 UTC (rev 298)
@@ -0,0 +1,2 @@
+dpkg-scanpackages /var/cache/apt/archives /dev/null |gzip -9c >/var/cache/apt/archives/Packages.gz
+apt-get update


Property changes on: scripts/pbuilder/hooks/D10aptupdate.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: scripts/pbuilder/pdebuild-sources.sh
===================================================================
--- scripts/pbuilder/pdebuild-sources.sh	2005-11-13 13:19:39 UTC (rev 297)
+++ scripts/pbuilder/pdebuild-sources.sh	2005-11-13 14:59:44 UTC (rev 298)
@@ -0,0 +1,30 @@
+#!/bin/sh
+# Copyright (C) 2005 Emanuele Rocca <ema at debian.org>
+# This code is released under the terms of the GNU GPL
+#
+# vim:textwidth=0 
+
+BASEDIR=/home/ema/debian/pkg-xfce
+CONFFILE=$BASEDIR/scripts/pbuilder/pdebuild.conf
+
+. $CONFFILE
+
+DESKTOPDIR=$BASEDIR/desktop/trunk
+SCRIPTSDIR=$BASEDIR/scripts
+PKGFILE=$SCRIPTSDIR/desktop-build.txt
+
+[ -d "$BUILDPLACE" ] || mkdir -p "$BUILDPLACE"
+[ -d "$PBUILDERDIR/log" ] || mkdir -p "$PBUILDERDIR/log"
+
+if [ ! -f "$BASETGZ" ]; then
+	pbuilder create --configfile $CONFFILE
+else
+	pbuilder update --configfile $CONFFILE
+fi
+
+for pkg in $(cat $PKGFILE); do
+	echo "Building $pkg..."
+	cd $DESKTOPDIR/$pkg
+	svn-buildpackage --svn-builder $SCRIPTSDIR/pbuilder/pdebuild.wrapper
+	echo "done"
+done


Property changes on: scripts/pbuilder/pdebuild-sources.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: scripts/pbuilder/pdebuild.conf
===================================================================
--- scripts/pbuilder/pdebuild.conf	2005-11-13 13:19:39 UTC (rev 297)
+++ scripts/pbuilder/pdebuild.conf	2005-11-13 14:59:44 UTC (rev 298)
@@ -0,0 +1,20 @@
+# read pbuilderrc.5 document for notes on specific options.
+
+BASEDIR=/home/ema/debian/pkg-xfce
+
+PBUILDERDIR=$BASEDIR/scripts/pbuilder/xfce
+BASETGZ=$PBUILDERDIR/base.tgz
+BUILDPLACE=$PBUILDERDIR/build
+BUILDRESULT=$PBUILDERDIR/build
+
+HOOKDIR=$BASEDIR/scripts/pbuilder/hooks
+APTCACHE=$BUILDPLACE
+
+OTHERMIRROR="deb file:/var/cache/apt/archives ./"
+
+USEPROC=yes
+USEDEVPTS=yes
+USEDEVFS=no
+BUILDSOURCEROOTCMD="fakeroot"
+PBUILDERROOTCMD="sudo"
+AUTO_DEBSIGN=no

Added: scripts/pbuilder/pdebuild.wrapper
===================================================================
--- scripts/pbuilder/pdebuild.wrapper	2005-11-13 13:19:39 UTC (rev 297)
+++ scripts/pbuilder/pdebuild.wrapper	2005-11-13 14:59:44 UTC (rev 298)
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+D=/home/ema/debian/pkg-xfce/scripts/pbuilder
+
+pdebuild --configfile $D/pdebuild.conf \
+	--logfile $D/xfce/log/`basename $(pwd)`-buildd.log \
+		-- --othermirror "deb file:/var/cache/apt/archives ./" \
+			--override-config --distribution unstable


Property changes on: scripts/pbuilder/pdebuild.wrapper
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-xfce-commits mailing list