~ubuntu-branches/ubuntu/hardy/bugzilla/hardy-security

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Rémi Perrot
  • Date: 2004-04-02 01:13:32 UTC
  • Revision ID: james.westby@ubuntu.com-20040402011332-pbwk96wk60u5hbil
Tags: 2.16.5-2
Duplicate table creation is now also fixed in bugzilla.postinst
(closes: #224288)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Sample debian/rules that uses debhelper. 
 
3
# GNU copyright 1997 by Joey Hess.
 
4
#
 
5
# This version is for a hypothetical package that builds an
 
6
# architecture-dependant package, as well as an architecture-independent
 
7
# package.
 
8
 
 
9
# Uncomment this to turn on verbose mode. 
 
10
#export DH_VERBOSE=1
 
11
 
 
12
# This is the debhelper compatability version to use.
 
13
export DH_COMPAT=3
 
14
 
 
15
configure: configure-stamp
 
16
configure-stamp:
 
17
        dh_testdir
 
18
        # Add here commands to configure the package.
 
19
        
 
20
 
 
21
        touch configure-stamp
 
22
 
 
23
build: configure-stamp build-stamp
 
24
build-stamp:
 
25
        dh_testdir
 
26
 
 
27
        # Add here commands to compile the package.
 
28
        #$(MAKE)
 
29
 
 
30
        touch build-stamp
 
31
 
 
32
clean:
 
33
        dh_testdir
 
34
        dh_testroot
 
35
        rm -f build-stamp configure-stamp
 
36
 
 
37
        # Add here commands to clean up after the build process.
 
38
        #-$(MAKE) clean
 
39
 
 
40
        dh_clean
 
41
 
 
42
install: DH_OPTIONS=
 
43
install: build
 
44
        dh_testdir
 
45
        dh_testroot
 
46
        dh_clean -k
 
47
        dh_installdirs
 
48
 
 
49
        # Add here commands to install the package into debian/bugzilla.
 
50
        $(MAKE) install DESTDIR=$(CURDIR)/debian/bugzilla \
 
51
                        STATIC_DIR=/usr/share/bugzilla/web \
 
52
                        LIB_DIR=/usr/share/bugzilla/lib \
 
53
                        CGI_DIR=/usr/lib/cgi-bin/bugzilla \
 
54
                        TEMPLATE_DIR=/usr/share/bugzilla/template \
 
55
                        DATA_DIR_PARENT=/var/lib/bugzilla
 
56
 
 
57
        install -g www-data -o root -m 640 \
 
58
                localconfig $(CURDIR)/debian/bugzilla/etc/bugzilla
 
59
 
 
60
        mv $(CURDIR)/debian/bugzilla/usr/share/bugzilla/web/index.html \
 
61
           $(CURDIR)/debian/bugzilla/var/lib/bugzilla/web/
 
62
 
 
63
 
 
64
        #dh_movefiles
 
65
 
 
66
# Build architecture-independent files here.
 
67
# Pass -i to all debhelper commands in this target to reduce clutter.
 
68
binary-indep: build install
 
69
        dh_testdir -i
 
70
        dh_testroot -i 
 
71
        dh_installdebconf  -i
 
72
        dh_installdocs  -i
 
73
        dh_installcron  -i
 
74
        dh_installchangelogs docs/rel_notes.txt -i
 
75
        dh_link  -i
 
76
        dh_compress  -i
 
77
        dh_fixperms  -i -Xvar/lib/bugzilla -Xetc/bugzilla 
 
78
        dh_installdeb  -i
 
79
        dh_gencontrol  -i
 
80
        dh_perl  -i
 
81
        dh_md5sums  -i
 
82
        dh_builddeb  -i
 
83
 
 
84
binary: binary-indep
 
85
.PHONY: build clean binary-indep binary-arch binary install configure