$ sudo mkdir -p /chroots/sid
$ sudo cdebootstrap sid /chroots/sid http://debian.osuosl.org/debian
$ sudo -s
# cp /etc/resolv.conf /chroots/sid
# nano /chroots/sid/apt/sources.list
(add 'deb-src http://ftpmaster.defusion-project.org/archive xenu main contrib non-free', so
rebuildd can download sources later. For *now* it doesn't matter if the buildd chroot itself
is running sid; stay tuned for when we intend to switch over to xenu for chroots.)
# chroot /chroots/sid
# apt-get update
Make a crontab to do the above task every 30 minutes so that rebuildd can grab the latest sources.
Install rebuildd and cowbuilder:
# apt-get install rebuildd pbuilder cowdancer python-apt
[mail]
mailto = rebuildd@localhost
from = rebuildd@localhost
subject_prefix = [rebuildd]
[http]
logfile = /var/log/rebuildd/httpd.log
log_lines_nb = 30
ip = 0.0.0.0
cache = 1
templates_dir = /usr/share/rebuildd/templates
port = 9998
[build]
max_jobs = 5
max_threads = 2
check_every = 300
build = amd64
more_archs = any
kill_timeout = 90
source_cmd = apt-get -q --download-only -t %s source %s=%s
work_dir = /var/cache/rebuildd/build
post_build_cmd =
dists = xenu
build_cmd = cowbuilder --build --basepath /var/cache/pbuilder/%s-%s.cow %s_%s.dsc --debbuildopts -B
database_uri = mysql://rebuildd:XXXXXXXX@64.71.161.129/rebuildd
build_more_recent = 1
[telnet]
ip = 0.0.0.0
prompt = rebuildd@localhost->
motd = Connected on rebuildd on localhost
port = 9999
[log]
time_format = %d-%m-%Y %H:%M:%S
logs_dir = /var/log/rebuildd/build_logs
mail_failed = 1
mail_successful = 0
file = /var/log/rebuildd/rebuildd.log
There's a few things to note here. First of all, --debbuildopts -B ensures that the
source package isn't rebuilt. This is important, as, ftpmaster will reject uploads which
include source packages. Furthermore, using -B instead of -b will make sure that you don't
unnecessarily upload arch-independent packages later (nenolod is handling it).
Ask nenolod for the MySQL password for the rebuildd database.
# nano /etc/default/rebuildd
(remove etch and lenny, enable autoupdate of build root, use cowbuilder instead of pbuilder.)
# rebuildd-init-build-system
# mv /var/cache/pbuilder/sid-amd64 /var/cache/pbuilder/xenu-amd64
Edit /etc/default/rebuildd
Fire up rebuildd. At this point, it should start building stuff in the queue.
You can now exit the chroot.
You should add a script to apt-get update inside the chroot every hour so that new sources can be pulled from the archive.
|
home
> defusion > rebuildd View Document | View Source |
|