~ubuntu-branches/ubuntu/intrepid/bugzilla/intrepid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Bossek
  • Date: 2008-06-27 22:34:34 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080627223434-0ib57vstn43bb4a3
Tags: 3.0.4.1-1
* Update of French, Russian and German translations. (closes: #488251)
* Added Bulgarian and Belarusian translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
# Uncomment this to turn on verbose mode. 
10
10
#export DH_VERBOSE=1
11
11
 
12
 
include /usr/share/dpatch/dpatch.make
 
12
INSTALL = /usr/bin/install
13
13
 
14
14
build: build-stamp
15
 
build-stamp: patch
 
15
build-stamp:
16
16
        dh_testdir
 
17
        $(MAKE) extractsrc
 
18
        set -e; for i in $(CURDIR)/debian/maintenance/*.sh; do chmod a+x $$i; $$i $(CURDIR)/bugzilla-srcdir; done
17
19
        touch build-stamp
18
20
 
19
 
clean: unpatch
 
21
clean:
20
22
        dh_testdir
21
 
        dh_testroot
22
23
        debconf-updatepo
23
24
        rm -f build-stamp 
24
 
        # Data is generated whenever the package is build.
25
 
        # Just remove it at clean time.
 
25
        # data is generated whenever the package is build
 
26
        # just remove it at clean time
26
27
        rm -rf graphs
 
28
        $(MAKE) clean
27
29
        dh_clean
28
 
        
 
30
 
29
31
install: build 
30
32
        dh_testdir
31
33
        dh_testroot
32
34
        dh_clean -k
33
 
        dh_installdirs
34
 
 
35
 
        # Check we have the necessary modules installed.
36
 
        @echo -e "\n *** Checking bugzilla installation ***";
37
 
        perl ./checksetup.pl --check-modules
38
 
        perl ./checksetup.pl
39
 
 
40
 
        # Run Makefile.
 
35
        # Work in progress
 
36
        # building the -fr package
41
37
        @echo -e "\n *** Building bugzilla ***";
42
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/bugzilla
43
 
 
44
 
        # We install our debian helpers.
45
 
        install -d -m 0755 -o root -g root $(CURDIR)/debian/bugzilla/usr/share/bugzilla/debian 
46
 
        install    -m 0644 -o root -g root debian/default-files/params $(CURDIR)/debian/bugzilla/usr/share/bugzilla/debian
47
 
 
48
 
        # Some lintian overrides.
49
 
        install -d $(CURDIR)/debian/bugzilla/usr/share/lintian/overrides
50
 
        install -m 0644 debian/bugzilla.lintian $(CURDIR)/debian/bugzilla/usr/share/lintian/overrides/bugzilla
 
38
        $(MAKE) install DESTDIR=$(CURDIR)/debian/bugzilla3
 
39
        # We install our debian helpers
 
40
        install -d -m 0755 -o root -g root $(CURDIR)/debian/bugzilla3/usr/share/bugzilla3/debian
 
41
        install    -m 0644 -o root -g root debian/default-files/params $(CURDIR)/debian/bugzilla3/usr/share/bugzilla3/debian
 
42
        install    -m 0644 -o root -g root debian/default-files/localconfig $(CURDIR)/debian/bugzilla3/usr/share/bugzilla3/debian
 
43
        install    -m 0644 -o root -g root debian/default-files/apache.conf $(CURDIR)/debian/bugzilla3/usr/share/bugzilla3/debian
 
44
        # Installing exemples 
 
45
        install -d -m 0755 -o root -g root $(CURDIR)/debian/bugzilla3/usr/share/doc/bugzilla3/examples
 
46
        install    -m 0644 -o root -g root debian/examples/*.conf $(CURDIR)/debian/bugzilla3/usr/share/doc/bugzilla3/examples
 
47
        # Install default configuration files
 
48
        $(INSTALL) -d -m 0755 -o root -g root $(CURDIR)/debian/bugzilla3/etc/bugzilla3
 
49
        $(INSTALL) -m 0644 -o root -g root debian/default-files/index.html $(CURDIR)/debian/bugzilla3/etc/bugzilla3
 
50
        # preparing the vhost conf dir
 
51
        install -d -m 0755 -o root -g root $(CURDIR)/debian/bugzilla3/etc/bugzilla3/sites
 
52
        # some lintian overrides
 
53
        install -d $(CURDIR)/debian/bugzilla3/usr/share/lintian/overrides
 
54
        install -m 0644 debian/bugzilla3.lintian $(CURDIR)/debian/bugzilla3/usr/share/lintian/overrides/bugzilla3
51
55
 
52
56
# Build architecture-independent files here.
53
57
# Pass -i to all debhelper commands in this target to reduce clutter.
57
61
        dh_installdebconf  -i
58
62
        dh_installdocs  -i
59
63
        dh_installcron  -i
60
 
        dh_installchangelogs docs/rel_notes.txt -i
 
64
        dh_installchangelogs bugzilla-srcdir/docs/rel_notes.txt -i
61
65
        dh_link  -i
62
66
        dh_compress  -i
63
 
        dh_fixperms  -i -Xetc/bugzilla 
 
67
        dh_fixperms  -i -Xetc/bugzilla3
64
68
        dh_installdeb  -i
65
69
        dh_gencontrol  -i
66
70
        dh_perl  -i