File: rules

package info (click to toggle)
bugzilla 3.0.4.1-2%2Blenny2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,328 kB
  • ctags: 29
  • sloc: sh: 525; makefile: 160; perl: 98
file content (84 lines) | stat: -rwxr-xr-x 2,906 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. 
# GNU copyright 1997 by Joey Hess.
#
# This version is for a hypothetical package that builds an
# architecture-dependant package, as well as an architecture-independent
# package.

# Uncomment this to turn on verbose mode. 
#export DH_VERBOSE=1

INSTALL = /usr/bin/install

build: build-stamp
build-stamp:
	dh_testdir
	$(MAKE) extractsrc
	set -e; for i in $(CURDIR)/debian/maintenance/*.sh; do chmod a+x $$i; $$i $(CURDIR)/bugzilla-srcdir; done
	touch build-stamp

clean:
	dh_testdir
	debconf-updatepo
	rm -f build-stamp 
	# data is generated whenever the package is build
	# just remove it at clean time
	rm -rf graphs
	$(MAKE) clean
	dh_clean

install: build 
	dh_testdir
	dh_testroot
	dh_clean -k
	# Work in progress
	# building the -fr package
	@echo -e "\n *** Building bugzilla ***";
	$(MAKE) install DESTDIR=$(CURDIR)/debian/bugzilla3
	# We install our debian helpers
	install -d -m 0755 -o root -g root $(CURDIR)/debian/bugzilla3/usr/share/bugzilla3/debian
	install    -m 0644 -o root -g root debian/default-files/params $(CURDIR)/debian/bugzilla3/usr/share/bugzilla3/debian
	install    -m 0644 -o root -g root debian/default-files/localconfig $(CURDIR)/debian/bugzilla3/usr/share/bugzilla3/debian
	install    -m 0644 -o root -g root debian/default-files/apache.conf $(CURDIR)/debian/bugzilla3/usr/share/bugzilla3/debian
	# Installing exemples 
	install -d -m 0755 -o root -g root $(CURDIR)/debian/bugzilla3/usr/share/doc/bugzilla3/examples
	install    -m 0644 -o root -g root debian/examples/*.conf $(CURDIR)/debian/bugzilla3/usr/share/doc/bugzilla3/examples
	# Install default configuration files
	$(INSTALL) -d -m 0755 -o root -g root $(CURDIR)/debian/bugzilla3/etc/bugzilla3
	$(INSTALL) -m 0644 -o root -g root debian/default-files/index.html $(CURDIR)/debian/bugzilla3/etc/bugzilla3
	# preparing the vhost conf dir
	install -d -m 0755 -o root -g root $(CURDIR)/debian/bugzilla3/etc/bugzilla3/sites
	# some lintian overrides
	install -d $(CURDIR)/debian/bugzilla3/usr/share/lintian/overrides
	install -m 0644 debian/bugzilla3.lintian $(CURDIR)/debian/bugzilla3/usr/share/lintian/overrides/bugzilla3

# Build architecture-independent files here.
# Pass -i to all debhelper commands in this target to reduce clutter.
binary-indep: build install
	dh_testdir -i
	dh_testroot -i 
	dh_installdebconf  -i
	dh_installdocs  -i
	dh_installcron  -i
	dh_installchangelogs bugzilla-srcdir/docs/rel_notes.txt -i
	dh_link  -i
	dh_compress  -i
	dh_fixperms  -i -Xetc/bugzilla3
	dh_installdeb  -i
	dh_gencontrol  -i
	dh_perl  -i
	dh_md5sums  -i
	dh_builddeb  -i

checkpo:
	@for i in debian/po/*.po; do \
		echo -n "Checking: $$i"; \
		msgmerge -U $$i debian/po/templates.pot; \
		msgfmt -o /dev/null -c --statistics $$i; \
		echo ""; \
	done


binary: binary-indep
.PHONY: build clean binary-indep binary-arch binary install patch unpatch checkpo