File: rules

package info (click to toggle)
awstats 8.0-3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 13,244 kB
  • sloc: perl: 40,711; xml: 1,785; javascript: 1,493; java: 359; sh: 152; makefile: 40; php: 29
file content (54 lines) | stat: -rwxr-xr-x 1,506 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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk
DEB_UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | cut -d+ -f1)

%:
	dh $@

override_dh_auto_build:
	dh_auto_build \
		--buildsystem=ant \
		--sourcedirectory=wwwroot/classes -- \
		-Dversion=$(DEB_UPSTREAM_VERSION) bin-jar

override_dh_auto_install:
	dh_auto_install

	dh_install \
		wwwroot/classes/awgraphapplet-$(DEB_UPSTREAM_VERSION).jar \
		usr/share/java/awstats/

	cp wwwroot/cgi-bin/awstats.model.conf debian/awstats/etc/awstats/awstats.conf

override_dh_link:
	rm debian/awstats/usr/share/doc/awstats/html/images/awstats_logo6.png
	dh_link

	dh_link \
		usr/share/java/awstats/awgraphapplet-$(DEB_UPSTREAM_VERSION).jar \
		usr/share/java/awstats/awgraphapplet.jar

override_dh_compress:
	dh_compress -X.sh -X.pl -X.ico

override_dh_fixperms:
	dh_fixperms
	chmod +x debian/awstats/usr/share/doc/awstats/examples/*.pl
	chmod +x debian/awstats/usr/share/doc/awstats/examples/*.sh
	chmod +x debian/awstats/usr/share/awstats/tools/*.pl
	chmod -x debian/awstats/usr/share/awstats/lang/tooltips*/*.txt
	chmod -x debian/awstats/usr/share/awstats/lang/*.txt
	chmod -x debian/awstats/usr/share/awstats/plugins/*.pm

override_dh_installchangelogs:
	dh_installchangelogs docs/awstats_changelog.txt

override_dh_auto_clean:
	-dh_auto_clean \
		--buildsystem=ant \
		--sourcedirectory=wwwroot/classes -- \
		-Dversion=$(DEB_UPSTREAM_VERSION)

	-rm wwwroot/classes/awgraphapplet-$(DEB_UPSTREAM_VERSION).jar
	-rm wwwroot/classes/src/AWGraphApplet.class