File: rules

package info (click to toggle)
ltsp 23.02-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 528 kB
  • sloc: sh: 3,401; python: 359; makefile: 18
file content (36 lines) | stat: -rwxr-xr-x 1,113 bytes parent folder | download | duplicates (3)
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

include /usr/share/dpkg/pkg-info.mk

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

# % calls are the following params, which then call these dh_ binaries:
# clean: dh_clean
# build: dh_update_autotools_config
# binary: dh_testroot, dh_prep, dh_installdirs, dh_install, dh_installdocs,
#   dh_installchangelogs, dh_perl, dh_link, dh_strip_nondeterminism,
#   dh_compress, dh_fixperms, dh_missing, dh_installdeb, dh_gencontrol,
#   dh_md5sums, dh_builddeb
# dh clean:
%:
	dh $@

override_dh_auto_configure:
	cd docs; ./Makefile.sh; cd -

override_dh_installinit:
	dh_installinit --no-scripts

override_dh_install:
	dh_install --exclude _.git
	sed "s/^\(_VERSION=\).*/\1'$(DEB_VERSION)'/" -i "$(CURDIR)"/debian/ltsp/usr/share/ltsp/ltsp
	cp ltsp/common/service/ltsp.service debian/
	mkdir -p "$(CURDIR)/debian/ltsp/usr/share/initramfs-tools/hooks"
	# hooks/ltsp conflicts with ltsp-client-core
	cp -a "$(CURDIR)/debian/ltsp.initramfs-hook" "$(CURDIR)/debian/ltsp/usr/share/initramfs-tools/hooks/ltsp-next"

override_dh_clean:
	rm -f debian/ltsp.service
	rm -rf docs/man
	dh_clean