File: rules

package info (click to toggle)
clustershell 1.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,164 kB
  • sloc: python: 20,703; makefile: 149
file content (30 lines) | stat: -rwxr-xr-x 1,530 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
30
#!/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

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

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/clush.conf.d 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) conf/topology.conf.example 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
	rm -rf $(PYBUILD_DESTDIR_python3)/usr/etc
	rm -rf $(PYBUILD_DESTDIR_python3)/usr/share/man

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