File: rules

package info (click to toggle)
pgcluu 4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,332 kB
  • sloc: javascript: 24,645; perl: 24,092; makefile: 14; sh: 14
file content (23 lines) | stat: -rwxr-xr-x 655 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
#!/usr/bin/make -f

%:
	dh $@ --with apache2

export DESTDIR = $(CURDIR)/debian/pgcluu

override_dh_auto_configure:
	perl ./tools/updt_embedded_rsc.pl
	dh_auto_configure

override_dh_auto_install:
	dh_auto_install
	# remove bogus directories
	rm -rfv debian/pgcluu/bin debian/pgcluu/var/run

override_dh_installsystemd:
	# only enable data collection by default; pgcluu.service is not needed if the CGI is used
	dh_installsystemd --no-enable pgcluu.service
	dh_installsystemd --no-enable pgcluu.timer
	dh_installsystemd pgcluu_collectd.service
	# move unit files to /usr on systems that support it
	if test -x /usr/bin/dh_movetousr; then dh_movetousr; fi