diff options
author | dancer <dancer> | 2001-08-23 14:45:57 +0000 |
---|---|---|
committer | dancer <dancer> | 2001-08-23 14:45:57 +0000 |
commit | aa0f8a0119c4f6849609b8566b95de786e215c57 (patch) | |
tree | 6ff1a8fa52c12c004bc7a979f07dcae14b9a897d /pbuilder-updatebuildenv | |
download | pbuilder-aa0f8a0119c4f6849609b8566b95de786e215c57.tar pbuilder-aa0f8a0119c4f6849609b8566b95de786e215c57.tar.gz |
Initial revision
Diffstat (limited to 'pbuilder-updatebuildenv')
-rwxr-xr-x | pbuilder-updatebuildenv | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv new file mode 100755 index 0000000..6b347de --- /dev/null +++ b/pbuilder-updatebuildenv @@ -0,0 +1,45 @@ +#!/bin/bash +export LANG=C +export LC_ALL=C + +PACKAGENAME=$1 + +. /etc/pbuilderrc + +CHROOTEXEC="chroot $BUILDPLACE " + +cd $MYREPOSITORY +echo Initializing repository +dpkg-scanpackages . . | gzip > Packages.gz +dpkg-scansources . . | gzip > Sources.gz + +echo cleaning the build env +rm -rf $BUILDPLACE + +echo building the build env +mkdir -p $BUILDPLACE +cd $BUILDPLACE +tar xfzp $BASETGZ +mkdir -p $BUILDPLACE/tmp/buildd +for a in passwd hosts hostname resolv.conf; do + cp /etc/$a $BUILDPLACE/etc/$a; +done + +echo Installing apt-lines +cat > $BUILDPLACE/etc/apt/sources.list << EOF +deb $MYREPOSITORYHTTP ./ +deb-src $MYREPOSITORYHTTP ./ +deb http://www.jp.debian.org/debian unstable main contrib non-free +deb-src http://www.jp.debian.org/debian unstable main contrib non-free +EOF + +echo Refreshing the base.tgz +$CHROOTEXEC /usr/bin/apt-get update +$CHROOTEXEC /usr/bin/dpkg --purge lilo +$CHROOTEXEC /usr/bin/apt-get -y dist-upgrade +$CHROOTEXEC /usr/bin/apt-get -y install build-essential dpkg-dev apt $EXTRAPACKAGES +$CHROOTEXEC /usr/bin/apt-get clean +cd $BUILDPLACE +echo Creating base.tgz +tar cfz $BASETGZ * + |