~ubuntu-branches/debian/squeeze/sbuild/squeeze

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2005-04-01 21:23:30 UTC
  • mfrom: (1.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050401212330-lnjvuwrm9urpy54l
Tags: 0.35
Michael Banck:

* bin/abort-current-build: Remove the `-B' from the grep line as
  `sbuild -s' does not pass that option to dpkg-configure and abort-
  current-build fails in that case.
* sbuild: Set the locale to `POSIX' to make debconf and debhelper calls in
  the chroot not spew out locale warnings all the time.
  (closes: #287672)
* sbuild: Removed check for specific distributions. Instead, fail if
  build/chroot-$dist is not there.
* sbuild: Only override Distribution in .changes if specified as option on
  the command-line.
  (closes: #300145)
* sbuild: Specify full path for Dir::Etc::main and Dir::Etc::parts.
* example.sbuildrc: Clarify that $maintainer_name is not mandatory and
  overrides Maintainer: field, whereas $uploader_name overrides
  the Changed-By: field in changes.
* Applied patch by Santiago Vila:
  - Moves scripts from /usr/lib/sbuild to /usr/share/sbuild and modifies
    all callers accordingly.
  - Add -n option to tail to comply with POSIX.
  - Call /usr/sbin/sendmail instead of /usr/lib/sendmail.
  (closes: #292717)
* sbuild: Tolerate '0' as version number, thanks Santiago Vila.
  (closes: #300205)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# Sample debian/rules that uses debhelper.
3
 
# GNU copyright 1997 to 1999 by Joey Hess.
4
2
 
5
3
# Uncomment this to turn on verbose mode.
6
4
#export DH_VERBOSE=1
41
39
        dh_installdirs
42
40
 
43
41
        # Add here commands to install the package into debian/sbuild.
44
 
        $(INSTALL) -m 755 sbuild update-sourcedeps avg-pkg-build-time $(DESTDIR)/usr/bin/
 
42
        $(INSTALL) -m 755 sbuild update-sourcedeps avg-pkg-build-time \
 
43
                $(DESTDIR)/usr/bin/
 
44
        ln -s /usr/bin/avg-pkg-build-time $(DESTDIR)/usr/bin/avg-pkg-build-space
45
45
        $(INSTALL) -m 644 sbuild.conf sbuild.conf.local $(DESTDIR)/etc/
46
46
 
47
 
        # mod/grp changed in postinst
48
 
        mkdir -p $(DESTDIR)/var/lib/sbuild/srcdep-lock
49
 
 
50
 
        cp -a bin $(DESTDIR)/usr/share/doc/sbuild/
51
 
        cp -a chroot $(DESTDIR)/usr/share/doc/sbuild/
52
 
        cp -a configs $(DESTDIR)/usr/share/doc/sbuild/
 
47
        cp -a configs example.sbuildrc $(DESTDIR)/usr/share/doc/sbuild/examples/.
 
48
        find bin -type f -maxdepth 1 -exec cp {} $(DESTDIR)/usr/share/sbuild/ \;
 
49
        find chroot -type f -maxdepth 1 -exec cp {} $(DESTDIR)/usr/share/sbuild/ \;
 
50
        mv $(DESTDIR)/usr/share/sbuild/README-buildd.chroot \
 
51
                $(DESTDIR)/usr/share/doc/sbuild/
53
52
 
54
53
# Build architecture-independent files here.
55
54
binary-indep: build install
56
55
        dh_testdir
57
56
        dh_testroot
58
 
        dh_installdocs TODO
59
 
        dh_installmanpages
 
57
        dh_installdocs debian/cvslogs.old
 
58
        dh_installman
60
59
        dh_installchangelogs 
61
 
        dh_compress
 
60
        dh_compress -Xbuildd.chroot -XREADME-buildd.chroot -XREADME-buildd.chroot.pre-sarge -Xbuildd.chroot.pre-sarge
62
61
        dh_fixperms
63
62
        dh_installdeb
64
63
        dh_perl