File: rules

package info (click to toggle)
firefox-sage 1.3.6-4etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 220 kB
  • ctags: 1
  • sloc: makefile: 43
file content (74 lines) | stat: -rwxr-xr-x 1,421 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
#!/usr/bin/make -f
# Based upon mozilla-mozgest which was based upon mozilla-locale-da 

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

ID="{a6ca9b3b-5e52-4f47-85d8-cca35bb57596}"

configure: configure-stamp
configure-stamp:
	dh_testdir

	touch configure-stamp

build: configure-stamp build-stamp
build-stamp:
	dh_testdir

	mkdir -p temp
	unzip -o -d temp *.xpi

# apply iceweasel 2.0 support patch
	patch -p0 < debian/iceweasel20.patch
	
# apply patch for security vulnerabilities
# CVE-2006-4711
# CVE-2006-4712	

	cd temp/chrome && unzip -d sage sage.jar
	cd temp/chrome/sage && patch -p1 < ../../../debian/xss_fix.patch
	rm temp/chrome/sage.jar
	cd temp/chrome/sage && zip -r ../sage.jar content locale skin


	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp

	-rm -rf temp

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	dh_install


# Build architecture-independent files here.
binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installdocs debian/MPL-1.1.txt -i  
	dh_installchangelogs -i
	dh_link -i 
	dh_compress -XMPL -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

# Build architecture-dependent files here.
binary-arch: build install
# We have nothing to do by default.

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure