Commit aa0f8a01 authored by dancer's avatar dancer

Initial revision

parents
clean:
install:
install -d $(DESTDIR)/etc
install -d $(DESTDIR)/usr/sbin
install -m 755 pbuilder-buildpackage.sh $(DESTDIR)/usr/sbin
install -m 755 pbuilder-createbuildenv $(DESTDIR)/usr/sbin
install -m 755 pbuilder-updatebuildenv $(DESTDIR)/usr/sbin
install -m 644 pbuilderrc $(DESTDIR)/etc
run build-package.
give a packagename to build.
It should work quite easily.
base.tgz is required initially.
#!/bin/sh
for a in $@; do ./build-package.sh $a; done
#!/bin/bash
export LANG=C
export LC_ALL=C
PACKAGENAME=$1
BASETGZ=/tmp/base.tgz
MYREPOSITORY=/home/dancer/DEBIAN/personal-buildd/build-package/my-repos
MYREPOSITORYEXTRAPATH=$MYREPOSITORY/i386/athlon
MYREPOSITORYHTTP=http://atoron.work.isl.doshisha.ac.jp/athlonmirror
EXTRAPACKAGES=gcc3.0-athlon-builder
export DEBIAN_BUILDARCH=athlon
BUILDPLACE=/home/dancer/buildd/tmp/buildd
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
#tar cfz $BASETGZ *
echo Installing the build-deps and building
$CHROOTEXEC /bin/sh -c "(cd tmp/buildd; apt-get -y build-dep $PACKAGENAME ; apt-get -y source --build $PACKAGENAME || rm /tmp/buildd/* )"
echo Installing $BUILDPLACE/tmp/buildd/* to archive
mkdir -p $MYREPOSITORYEXTRAPATH
cp $BUILDPLACE/tmp/buildd/* $MYREPOSITORYEXTRAPATH
pbuilder for Debian
------------------------
This is a personal builder.
-- Junichi Uekawa <dancer@debian.org>, Sat, 28 Jul 2001 17:05:50 +0900
pbuilder (0.1) unstable; urgency=low
* Initial Release.
-- Junichi Uekawa <dancer@debian.org> Sat, 28 Jul 2001 17:29:08 +0900
Local variables:
mode: debian-changelog
End:
Source: pbuilder
Section: unknown
Priority: optional
Maintainer: Junichi Uekawa <dancer@debian.org>
Build-Depends: debhelper (>> 3.0.0)
Standards-Version: 3.5.2
Package: pbuilder
Architecture: any
Depends: ${shlibs:Depends}
Description: <insert up to 60 chars description>
<insert long description, indented with spaces>
This package was debianized by Junichi Uekawa <dancer@debian.org> on
Sat, 28 Jul 2001 17:05:50 +0900.
It was downloaded from <fill in ftp site>
Upstream Author(s): <put author(s) name and email here>
Copyright:
<Must follow here>
usr/bin
usr/sbin
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatability version to use.
export DH_COMPAT=3
configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
build: configure-stamp build-stamp
build-stamp:
dh_testdir
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
-$(MAKE) clean
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/build-package.
$(MAKE) install DESTDIR=$(CURDIR)/debian/pbuilder
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
# dh_installdebconf
dh_installdocs
dh_installexamples
dh_installmenu
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
dh_installcron
dh_installman
dh_installinfo
# dh_undocumented
dh_installchangelogs
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_makeshlibs
dh_installdeb
# dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
#!/bin/bash
export LANG=C
export LC_ALL=C
PACKAGENAME=$1
. /etc/pbuilderrc
CHROOTEXEC="chroot $BUILDPLACE "
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
echo Installing the build-deps and building
$CHROOTEXEC /bin/sh -c "(cd tmp/buildd; apt-get -y build-dep $PACKAGENAME ; apt-get -y source --build $PACKAGENAME || rm /tmp/buildd/* )"
echo Installing $BUILDPLACE/tmp/buildd/* to archive
mkdir -p $MYREPOSITORYEXTRAPATH
cp $BUILDPLACE/tmp/buildd/* $MYREPOSITORYEXTRAPATH
#!/bin/bash
#necessary for installs.
export LANG=C
export LC_ALL=C
DISTRIBUTION=$1
. /etc/pbuilderrc
CHROOTEXEC="chroot $BUILDPLACE "
if [ -z "$DISTRIBUTION" ]; then
DISTRIBUTION=woody
fi
echo Distribution is $DISTRIBUTION.
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
debootstrap $DISTRIBUTION .
mkdir -p $BUILDPLACE/tmp/buildd
for a in passwd hosts hostname resolv.conf apt; do
cp -r /etc/$a $BUILDPLACE/etc/;
done
echo Installing apt-lines
cat > $BUILDPLACE/etc/apt/sources.list << EOF
deb $MYREPOSITORYHTTP ./
deb-src $MYREPOSITORYHTTP ./
deb http://www.jp.debian.org/debian $DISTRIBUTION main contrib non-free
deb-src http://www.jp.debian.org/debian $DISTRIBUTION 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
tar cfz $BASETGZ *
#!/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 *
BASETGZ=/tmp/base.tgz
MYREPOSITORY=/home/dancer/DEBIAN/personal-buildd/my-repos
MYREPOSITORYEXTRAPATH=$MYREPOSITORY/i386/athlon
MYREPOSITORYHTTP=http://atoron.work.isl.doshisha.ac.jp/athlonmirror
#EXTRAPACKAGES=gcc3.0-athlon-builder
#export DEBIAN_BUILDARCH=athlon
BUILDPLACE=/home/dancer/buildd/tmp/buildd
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment