File: rules

package info (click to toggle)
sinfo 0.0.48-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,320 kB
  • ctags: 947
  • sloc: sh: 11,213; cpp: 6,722; makefile: 270; xml: 151; perl: 149
file content (48 lines) | stat: -rwxr-xr-x 1,640 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
#
# Modified to make a template file for a multi-binary package with separated
# build-arch and build-indep targets  by Bill Allombert 2001

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

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DEB_CXXFLAGS_MAINT_APPEND=-std=gnu++98

%:
	dh $@ --with autotools-dev,systemd


override_dh_auto_configure:
	dh_auto_configure -- --enable-SIMPLE_USER_CACHE --enable-CPUNO_ADJUST --with-boost-libdir=/usr/lib/$(DEB_HOST_MULTIARCH)

override_dh_install:
	dh_install
	# remove files we don't want to install for now
	rm $(CURDIR)/debian/sinfo/usr/bin/sshallsinfo
	rm $(CURDIR)/debian/sinfo/usr/share/man/man1/sshallsinfo.1
	# remove .la file, they are not needed on Debian and cause harm
	# for multiarch
	rm $(CURDIR)/debian/sinfo/usr/lib/*/sinfo/*.la
	# rename sinfo to sinfo-client to not conflict with slurm-client
	mv $(CURDIR)/debian/sinfo/usr/bin/sinfo $(CURDIR)/debian/sinfo/usr/bin/sinfo-client
	mv $(CURDIR)/debian/sinfo/usr/share/man/man1/sinfo.1 $(CURDIR)/debian/sinfo/usr/share/man/man1/sinfo-client.1
	mv html/man_sinfo.html html/man_sinfo-client.html

override_dh_installdocs:
	dh_installdocs	-XMakefile -X.xml -X.fig README html


override_dh_installinit:
	dh_installinit --update-rcd-params="defaults 80 10"

override_dh_fixperms:
	dh_fixperms
	# fix cgi permissions
	chmod 755 $(CURDIR)/debian/sinfo/usr/share/sinfo/sinfo.pl.cgi

# This is not a shared library for public use, the libs are only
# used internally
override_dh_makeshlibs: