File: rules

package info (click to toggle)
mailreader 2.3.36-3.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,632 kB
  • ctags: 131
  • sloc: perl: 3,496; sh: 405; makefile: 68
file content (87 lines) | stat: -rwxr-xr-x 3,231 bytes parent folder | download | duplicates (2)
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
85
86
87
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

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


build: build-stamp
build-stamp:
	dh_testdir
	cp cgi-bin/compose.cgi cgi-bin/compose.cgi-standard
	cp cgi-bin/network.cgi cgi-bin/network.cgi-standard
	cp cgi-bin/nph-mr.cgi cgi-bin/nph-mr.cgi-standard
	cd cgi-bin; cat ../debian/japanese.patch | patch
	mv cgi-bin/compose.cgi cgi-bin/compose.cgi-japan
	mv cgi-bin/network.cgi cgi-bin/network.cgi-japan
	mv cgi-bin/nph-mr.cgi cgi-bin/nph-mr.cgi-japan
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	-mv cgi-bin/compose.cgi-standard cgi-bin/compose.cgi
	-mv cgi-bin/network.cgi-standard cgi-bin/network.cgi
	-mv cgi-bin/nph-mr.cgi-standard cgi-bin/nph-mr.cgi
	-rm cgi-bin/*-japan
	rm -f build-stamp
	rm -f changelog.gz
	rm -f `find html -type l`
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs


# Build architecture-independent files here.
binary-indep: build install
	sh debian/installhtml
	touch debian/mailreader/etc/mailreader/server.cfg
	touch debian/mailreader/etc/mailreader/main.cfg
	-install -m 644 -o root -g root debian/logrotate debian/mailreader/etc/logrotate.d/mailreader
	-install -m 755 -o root -g root cgi-bin/*.cgi debian/mailreader/usr/lib/cgi-bin/mailreader/
	-install -m 755 -o root -g root cgi-bin/*.cgi-* debian/mailreader/usr/lib/cgi-bin/mailreader/
	-install -m 644 -o root -g root cgi-bin/*.cfg debian/mailreader/usr/lib/cgi-bin/mailreader/
	-rm debian/mailreader/usr/lib/cgi-bin/mailreader/main.cfg
	-install -m 644 -o www-data -g www-data gfx/* debian/mailreader/var/www/mailreader/gfx
	uudecode -o debian/mailreader/var/www/mailreader/gfx/ads/debian/debian.jpg ads/debian/debian.jpg.uu
	uudecode -o debian/mailreader/var/www/mailreader/gfx/ads/debian/logo-50.jpg ads/debian/logo-50.jpg.uu
	-install -m 644 -o www-data -g www-data ads/debian/ad.* debian/mailreader/var/lib/mailreader/ads/debian/
	-install -m 644 -o www-data -g www-data cgi-bin/english.words debian/mailreader/usr/lib/cgi-bin/mailreader/
	-install -m 644 -o www-data -g www-data ads/html/* debian/mailreader/var/lib/mailreader/ads/html/
	-install -m 644 -o www-data -g www-data ads/perl/ad.cfg debian/mailreader/var/lib/mailreader/ads/perl/
	-install -m 755 -o root -g root ads/perl/ad.cgi debian/mailreader/var/lib/mailreader/ads/perl/
	install -m 644 debian/overrides $(CURDIR)/debian/mailreader/usr/share/lintian/overrides/mailreader
	touch debian/mailreader/var/lib/mailreader/cache/noremove

# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installexamples
	dh_installcron
	dh_installman debian/mailreader.cfg.5
	dh_installchangelogs ChangeLog
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	chown -R www-data debian/mailreader/var/lib/mailreader
	chgrp -R www-data debian/mailreader/var/lib/mailreader
	dh_installdebconf
#	debconf-mergetemplate debian/mailreader.templates* >debian/mailreader/DEBIAN/templates
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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