File: rules

package info (click to toggle)
sql-ledger 3.2.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 33,080 kB
  • sloc: perl: 73,172; sql: 36,530; sh: 34; makefile: 21
file content (33 lines) | stat: -rwxr-xr-x 965 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
30
31
32
33
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	# Generate default configuration file
	sed -e 's|^\$$userspath = .*$$|$$userspath = "/var/lib/sql-ledger/users";|' \
	    -e 's|^\$$memberfile = .*$$|$$memberfile = "/var/lib/sql-ledger/users/members";|' \
	    -e 's|^#$$latex = .*$$|$$latex = 1;|' \
	sql-ledger.conf.default > sql-ledger.conf
	# Build missing UTF-8 locale files
	cd locale && sh ../debian/create_utf8_locales.sh

override_dh_auto_clean:
	rm -f sql-ledger.conf
	if [ -e locale/generated ]; then \
	     cd locale; \
	     rm -f $(cat locale/generated 2>/dev/null); \
	fi

override_dh_auto_install:
	# No build system

override_dh_install:
	dh_install
	# Drop unwanted license files
	find debian/sql-ledger/usr/share/sql-ledger -name COPYING -print0 | xargs -0 rm -f

override_dh_fixperms:
	dh_fixperms
	# Ensure webserver has the right on various files that must be editable
	chown -R www-data:www-data debian/sql-ledger/var/lib/sql-ledger/*