~ubuntu-branches/ubuntu/quantal/apt-cacher-ng/quantal-backports

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2011-08-01 23:40:11 UTC
  • mfrom: (1.1.29 upstream) (29.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110801234011-2ouft5pay71773vs
Tags: 0.6.4-1
* New upstream version
  + fixes potential pipeline freeze (closes: #628995)
  + supports "soft" blacklisting of bad hosts when important files are
    missing (see keyfile in documentation, closes: #616091)

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
17
17
        NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
18
 
        MAKEFLAGS += -j$(NUMJOBS)
19
18
endif
20
19
 
21
20
 
36
35
        dh_testdir
37
36
 
38
37
        # Add here commands to compile the package.
39
 
        $(MAKE) $(MAKEFLAGS) all
 
38
        $(MAKE) -j$(NUMJOBS)
40
39
        # may fail if halibut is not installed, doesn't matter
41
 
        -$(MAKE) $(MAKEFLAGS) doc
 
40
        -$(MAKE) doc
42
41
        #docbook-to-man debian/apt-cacher-ng.sgml > apt-cacher-ng.1
43
 
 
 
42
        @-test -d ../unstripped && cp build/apt-cacher-ng ../unstripped/apt-cacher-ng.$$(dpkg-parsechangelog |grep ^Version: | cut -f2 -d' ') || true
44
43
        touch $@
45
44
 
46
45
clean:
55
54
install: build
56
55
        dh_testdir
57
56
        dh_testroot
58
 
        dh_clean -k 
 
57
        dh_prep
59
58
        dh_installdirs
60
59
 
61
60
        # Add here commands to install the package into debian/apt-cacher-ng.
62
 
        #$(MAKE) DESTDIR=$(CURDIR)/debian/apt-cacher-ng install
63
 
        install apt-cacher-ng $(CURDIR)/debian/apt-cacher-ng/usr/sbin/apt-cacher-ng
64
 
        #install acngfs $(CURDIR)/debian/apt-cacher-ng/usr/sbin/
65
 
        install acngfs in.acng expire-caller.pl urlencode-fixer.pl distkill.pl $(CURDIR)/debian/apt-cacher-ng/usr/lib/apt-cacher-ng/
 
61
        install build/apt-cacher-ng $(CURDIR)/debian/apt-cacher-ng/usr/sbin/apt-cacher-ng
 
62
        install build/in.acng expire-caller.pl urlencode-fixer.pl distkill.pl $(CURDIR)/debian/apt-cacher-ng/usr/lib/apt-cacher-ng/
 
63
        # optional
 
64
        -install build/acngfs $(CURDIR)/debian/apt-cacher-ng/usr/lib/apt-cacher-ng/
66
65
        cp -a conf/{*mirror*,*.html,*.css} $(CURDIR)/debian/apt-cacher-ng/usr/lib/apt-cacher-ng
67
66
        cp -a conf/*.conf $(CDIR)
68
67
        > $(CDIR)/backends_debian
82
81
        dh_testroot
83
82
        dh_installchangelogs ChangeLog
84
83
        dh_installdocs
85
 
        dh_installexamples conf/*.conf
 
84
        dh_installexamples conf/*.conf conf/debrep.hooks
86
85
#       dh_install
87
86
#       dh_installmenu
88
87
        dh_installdebconf