3
# Copyright 2009, 2010 Canonical Ltd. This software is licensed under the
4
# GNU Affero General Public License version 3 (see the file LICENSE).
8
# This is an incomplete debian rules file for making the launchpad-buildd deb
9
# Only ever invoke this as debian/rules package, which will build the source
10
# package in the parent directory, after copying in the files that live above
11
# this directory, so that the source package is valid.
12
# after that, build the source package found in the parent directory.
14
target = debian/launchpad-buildd
17
buildd = $(topdir)/lib/canonical/buildd
19
targetshare = $(target)/usr/share/launchpad-buildd
20
pytarget = $(targetshare)/canonical/buildd
22
pyfiles = debian.py slave.py binarypackage.py utils.py __init__.py \
23
sourcepackagerecipe.py translationtemplates.py
24
slavebins = unpack-chroot mount-chroot update-debian-chroot sbuild-package \
25
scan-for-processes umount-chroot remove-build override-sources-list \
26
buildrecipe generate-translation-templates
31
install: DH_OPTIONS=-plaunchpad-buildd
36
dh_installdirs usr/bin etc usr/share/launchpad-buildd/slavebin \
37
usr/share/launchpad-buildd/canonical/buildd \
38
var/run/launchpad-buildd var/log/launchpad-buildd \
39
etc/launchpad-buildd \
40
usr/share/launchpad-buildd/canonical/launchpad/daemons \
41
usr/share/doc/launchpad-buildd
45
touch $(pytarget)/../launchpad/__init__.py
46
touch $(pytarget)/../launchpad/daemons/__init__.py
47
install -m644 buildd-slave.tac $(targetshare)/buildd-slave.tac
48
cp -r pottery $(pytarget)
49
for pyfile in $(pyfiles); do \
50
install -m644 ./$$pyfile $(pytarget)/$$pyfile; \
52
for slavebin in $(slavebins); do \
53
install -m755 ./$$slavebin $(targetshare)/slavebin/$$slavebin; \
55
install -m755 ./sbuild $(target)/usr/bin/sbuild
56
touch $(targetshare)/canonical/__init__.py
57
install -m644 template-buildd-slave.conf $(targetshare)/template-buildd-slave.conf
58
install -m755 buildd-config.py $(target)/usr/bin/buildd-genconfig
59
install -m644 sbuildrc $(targetshare)/sbuildrc
60
install -m644 sbuild.conf $(target)/etc/sbuild.conf
61
install -m755 debian/upgrade-config $(targetshare)/upgrade-config
62
install -m755 check-implicit-pointer-functions $(target)/usr/bin/check-implicit-pointer-functions
63
# Okay, that's installed all the slave-related files
67
@echo No arch-specific binaries to make
69
binary-indep: DH_OPTIONS=-plaunchpad-buildd
85
.PHONY: binary binary-indep binary-arch install clean build