File: rules

package info (click to toggle)
clustershell 1.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,060 kB
  • sloc: python: 19,691; makefile: 147
file content (29 lines) | stat: -rwxr-xr-x 1,349 bytes parent folder | download
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

#export DH_VERBOSE=1
export PYBUILD_NAME=clustershell
export PYBUILD_DESTDIR_python3 = debian/python3-$(PYBUILD_NAME)
export PYBUILD_AFTER_INSTALL_python3 = rm -rf {destdir}/etc/clustershell

%:
	dh $@ --with python3 --buildsystem=pybuild

get-orig-tarball:
	uscan --verbose --force-download

override_dh_auto_install:
	dh_auto_install
	dh_movefiles --package=$(PYBUILD_NAME) --sourcedir=$(PYBUILD_DESTDIR_python3) usr/bin
	dh_install --package=$(PYBUILD_NAME) conf/clush.conf etc/clustershell
	dh_install --package=$(PYBUILD_NAME) conf/groups.conf etc/clustershell
	dh_install --package=$(PYBUILD_NAME) conf/groups.conf.d etc/clustershell
	dh_install --package=$(PYBUILD_NAME) conf/groups.d etc/clustershell
	dh_install --package=$(PYBUILD_NAME) debian/clustershell.yaml usr/share/vim/registry
	dh_install --package=$(PYBUILD_NAME) debian/clustershell.yaml usr/share/vim/registry
	dh_install --package=$(PYBUILD_NAME) doc/extras/vim/ftdetect/clustershell.vim usr/share/vim/addons/ftdetect
	dh_install --package=$(PYBUILD_NAME) doc/extras/vim/syntax/clushconf.vim usr/share/vim/addons/syntax
	dh_install --package=$(PYBUILD_NAME) doc/extras/vim/syntax/groupsconf.vim usr/share/vim/addons/syntax

override_dh_auto_clean:
	dh_auto_clean
	rm -rf scripts/nodeset scripts/clush scripts/clubak scripts/cluset lib/ClusterShell.egg-info