aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--debian/changelog6
-rw-r--r--pbuilder-buildpackage-funcs13
3 files changed, 23 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e41943c..7141795 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-08-19 Junichi Uekawa <dancer@debian.org>
+
+ * pbuilder-buildpackage-funcs: do cow thing, with cowprotect, for cowdancer.
+
2005-08-17 Junichi Uekawa <dancer@debian.org>
* debian/TODO: update the TODO list.
diff --git a/debian/changelog b/debian/changelog
index 4ba9367..3fa8921 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+pbuilder (0.130) UNRELEASED; urgency=low
+
+ * cowdancer support improvement.
+
+ -- Junichi Uekawa <dancer@debian.org> Fri, 19 Aug 2005 22:27:55 +0900
+
pbuilder (0.129) unstable; urgency=low
* TODO items updated
diff --git a/pbuilder-buildpackage-funcs b/pbuilder-buildpackage-funcs
index 03b4458..093e053 100644
--- a/pbuilder-buildpackage-funcs
+++ b/pbuilder-buildpackage-funcs
@@ -66,9 +66,22 @@ function showbuildbanner () {
echo
}
+function cowprotect () {
+ # a hack for cowdancer
+ for A in "$@"; do
+ if readlink -f "$A"; then
+ A=$(readlink -f "$A")
+ mv "$A" "$A"~
+ cp -a "$A"~ "$A"
+ rm -f "$A"~
+ fi
+ done
+}
+
function createbuilduser () {
# create the build user
if [ -n "$SUTOUSER" ]; then
+ cowprotect $BUILDPLACE/etc/passwd $BUILDPLACE/etc/group $BUILDPLACE/etc/shadow
echo "$BUILDUSERNAME:x:$BUILDUSERID:$BUILDUSERID:,,,:/tmp/buildd:/bin/sh" >> $BUILDPLACE/etc/passwd
echo "$BUILDUSERNAME:*:$BUILDUSERID:" >> $BUILDPLACE/etc/group
echo "$BUILDUSERNAME:!:::::::" >> $BUILDPLACE/etc/shadow