9
9
# Uncomment this to turn on verbose mode.
10
10
#export DH_VERBOSE=1
12
include /usr/share/dpatch/dpatch.make
12
INSTALL = /usr/bin/install
18
set -e; for i in $(CURDIR)/debian/maintenance/*.sh; do chmod a+x $$i; $$i $(CURDIR)/bugzilla-srcdir; done
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
35
# Check we have the necessary modules installed.
36
@echo -e "\n *** Checking bugzilla installation ***";
37
perl ./checksetup.pl --check-modules
36
# building the -fr package
41
37
@echo -e "\n *** Building bugzilla ***";
42
$(MAKE) install DESTDIR=$(CURDIR)/debian/bugzilla
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
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
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
52
56
# Build architecture-independent files here.
53
57
# Pass -i to all debhelper commands in this target to reduce clutter.