File: rules

package info (click to toggle)
hoteldruid 2.3.2-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 11,364 kB
  • sloc: php: 125,403; sh: 271; xml: 40; makefile: 17
file content (29 lines) | stat: -rwxr-xr-x 772 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

DESTDIR=$(CURDIR)/debian/hoteldruid

%:
	dh $@

override_dh_install:
	dh_install
	# Already installed to /var/lib/ and /usr/share/doc
	rm -rf $(DESTDIR)/usr/share/hoteldruid/dati
	rm -rf $(DESTDIR)/usr/share/hoteldruid/doc

override_dh_fixperms:
	dh_fixperms
	# Allow www-data to write pages and data files
	chown -R www-data.root $(DESTDIR)/var/lib/hoteldruid/data
	chown -R www-data.root $(DESTDIR)/var/lib/hoteldruid/pages
	chmod 700 $(DESTDIR)/var/lib/hoteldruid/data

	# Standard permission for webapp configuration
	chown -R root.www-data $(DESTDIR)/etc/hoteldruid
	chmod 640 $(DESTDIR)/etc/hoteldruid/database.php

override_dh_installchangelogs:
	dh_installchangelogs doc/CHANGELOG