File: rules

package info (click to toggle)
libapache-sessionx-perl 2.01-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 504 kB
  • sloc: perl: 1,320; makefile: 19; sh: 12
file content (28 lines) | stat: -rwxr-xr-x 642 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
#!/usr/bin/make -f

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

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	debconf-updatepo

override_dh_auto_test:
	# skip tests

override_dh_auto_install:
	dh_auto_install
	chmod -x $(TMP)/usr/share/perl5/Apache/SessionX.pm
	chmod -x $(TMP)/usr/share/perl5/Apache/SessionX/Generate/MD5.pm
	$(RM) $(TMP)/usr/share/perl5/Apache/testcount.pl

override_dh_fixperms:
	dh_fixperms

	for d in File FileFile FileFile/locks DB_File; do \
	  chown www-data.www-data $(TMP)/var/lib/libapache-sessionx-perl/$$d; \
	  chmod 0770 $(TMP)/var/lib/libapache-sessionx-perl/$$d; \
	done