stuff helpful in building Debian packages
authorThorsten Glaser <tg@mirbsd.org>
Wed, 9 Mar 2011 14:30:47 +0000 (15:30 +0100)
committerThorsten Glaser <tg@mirbsd.org>
Wed, 9 Mar 2011 14:30:47 +0000 (15:30 +0100)
posix/pbuilder-hooks/A50wait [new file with mode: 0644]
posix/pbuilder-hooks/C99fu [new file with mode: 0644]
posix/pbuilder-hooks/D02debhelper [new file with mode: 0644]
posix/pbuilder-hooks/pbuild [new file with mode: 0644]
posix/pbuilder-hooks/pbuildetch [new file with mode: 0644]

diff --git a/posix/pbuilder-hooks/A50wait b/posix/pbuilder-hooks/A50wait
new file mode 100644 (file)
index 0000000..16b6b58
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/bash
+# $MirOS: contrib/hosted/tg/deb/hookdir/A50wait,v 1.2 2011/03/04 14:34:00 tg Exp $
+#-
+# Not complicated enough for copyright.
+
+:>/waiting
+i=1
+while [ -e /waiting ]; do
+       i=$((i-1))
+       if [ $i = 0 ]; then
+               echo
+               ls -l /waiting
+               echo -n 'Waiting '
+               i=300
+       fi
+       if [ $((i%5)) = 0 ]; then
+               echo -n .
+       fi
+       sleep 2
+done
+echo
+echo Continuing.
+exit 0
diff --git a/posix/pbuilder-hooks/C99fu b/posix/pbuilder-hooks/C99fu
new file mode 100644 (file)
index 0000000..b2daa90
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+# $MirOS: contrib/hosted/tg/deb/hookdir/C99fu,v 1.1 2010/03/18 19:46:22 tg Exp $
+#-
+# Not complicated enough for copyright.
+
+echo
+echo Build failed. Trying to invoke a shell.
+echo
+apt-get -y --force-yes install less mksh
+ENV=/etc/skel/.mkshrc /bin/mksh -l 0<>/dev/tty >&0 2>&0 || \
+    /bin/sh 0<>/dev/tty >&0 2>&0
diff --git a/posix/pbuilder-hooks/D02debhelper b/posix/pbuilder-hooks/D02debhelper
new file mode 100644 (file)
index 0000000..5084767
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+# $MirOS: contrib/hosted/tg/deb/hookdir/D02debhelper,v 1.1 2009/12/28 19:29:06 tg Exp $
+#-
+# Not complicated enough for copyright.
+
+dpkg -i /tmp/debhelper*deb
+apt-get -y --force-yes -o Dpkg::Options::=--force-confnew,confmiss -f install
diff --git a/posix/pbuilder-hooks/pbuild b/posix/pbuilder-hooks/pbuild
new file mode 100644 (file)
index 0000000..7ecfdce
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/mksh
+# $MirOS: contrib/hosted/tg/deb/hookdir/pbuild,v 1.1 2009/12/07 20:48:19 tg Exp $
+#-
+# Not complicated enough for copyright.
+
+unset LANG LANGUAGE LC_ADDRESS LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
+    LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
+    LC_TELEPHONE LC_TIME
+export LC_ALL=C
+exec sudo cowbuilder --hookdir $(realpath .)/pb-hook "$@"
diff --git a/posix/pbuilder-hooks/pbuildetch b/posix/pbuilder-hooks/pbuildetch
new file mode 100644 (file)
index 0000000..e835d97
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/mksh
+# $MirOS: contrib/hosted/tg/deb/hookdir/pbuildetch,v 1.1 2009/12/07 20:48:20 tg Exp $
+#-
+# Not complicated enough for copyright.
+
+unset LANG LANGUAGE LC_ADDRESS LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
+    LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
+    LC_TELEPHONE LC_TIME
+export LC_ALL=C
+exec sudo cowbuilder --hookdir $(realpath .)/pb-hook \
+    --debian-etch-workaround "$@"