File: rules

package info (click to toggle)
libapache2-authcookie-perl 3.27-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 440 kB
  • ctags: 110
  • sloc: perl: 1,472; sh: 64; makefile: 28
file content (36 lines) | stat: -rwxr-xr-x 1,046 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
#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

%:
	dh $@

override_dh_clean:
	dh_clean
	rm -rf $(CURDIR)/t/logs

override_dh_auto_test:
	mkdir -p $(CURDIR)/t/logs
	APACHE_TEST_EXTRA_ARGS="-httpd_conf $(CURDIR)/debian/apache2.conf" \
		dh_auto_test

override_dh_auto_install:
	dh_auto_install
	$(RM) -v $(TMP)/usr/share/man/man3/Apache::README.apache-2.4.3pm \
		$(TMP)/usr/share/perl5/Apache/README.apache-2.4.pod \
		$(TMP)/usr/share/man/man3/Apache2::AuthCookie::Base.3pm

override_dh_installexamples:
	dh_installexamples
	sed -i -e \
	'1i #!/usr/bin/perl\n' $(TMP)/usr/share/doc/$(PACKAGE)/examples/docs/logout.pl
	sed -i -e \
	'1i #!/usr/bin/perl\n' $(TMP)/usr/share/doc/$(PACKAGE)/examples/docs/protected/echo_user.pl
	sed -i -e \
	'1i #!/usr/bin/perl\n' $(TMP)/usr/share/doc/$(PACKAGE)/examples/docs/echo_cookie.pl

override_dh_fixperms:
	dh_fixperms
	chmod -x $(TMP)/usr/share/doc/$(PACKAGE)/examples/docs/echo-user.pl \
		$(TMP)/usr/share/doc/$(PACKAGE)/examples/docs/protected/echo_user.pl