File: rules

package info (click to toggle)
awstats 7.6+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 15,492 kB
  • sloc: perl: 39,337; xml: 1,785; java: 359; sh: 146; makefile: 39; php: 29
file content (49 lines) | stat: -rwxr-xr-x 1,495 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
#!/usr/bin/make -f

DEB_VERSION := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
DEB_UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | cut -d+ -f1)

%:
	dh $@

override_dh_installchangelogs:
	dh_installchangelogs docs/awstats_changelog.txt

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_auto_build:
	dh_auto_build \
		--buildsystem=ant \
		--sourcedirectory=wwwroot/classes -- \
		-Dversion=$(DEB_UPSTREAM_VERSION) bin-jar

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