File: rules

package info (click to toggle)
centrifuge 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 11,864 kB
  • sloc: cpp: 51,936; perl: 1,919; python: 1,538; makefile: 618; sh: 352
file content (31 lines) | stat: -rwxr-xr-x 1,128 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
#!/usr/bin/make -f

# DH_VERBOSE := 1

include /usr/share/dpkg/default.mk
# this provides:
# DEB_SOURCE: the source package name

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export POPCNT_CAPABILITY=0
%:
	dh $@

override_dh_auto_install:
	dh_auto_install -- prefix=/usr/lib/centrifuge
	mv debian/$(DEB_SOURCE)/usr/lib/centrifuge/bin/* debian/$(DEB_SOURCE)/usr/lib/centrifuge/
	rmdir debian/$(DEB_SOURCE)/usr/lib/centrifuge/bin
	# move documentation to correct location
	mkdir -p debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/html
	mv debian/$(DEB_SOURCE)/usr/lib/centrifuge/share/$(DEB_SOURCE)/doc/*html \
	   debian/$(DEB_SOURCE)/usr/lib/centrifuge/share/$(DEB_SOURCE)/doc/*css  \
	   debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/html
	# remove useless stuff in documentation dir
	rm -rf debian/$(DEB_SOURCE)/usr/lib/centrifuge/share/doc/

override_dh_install:
	dh_install
	for pl in `grep -Rl '#![[:space:]]*/usr/bin/env[[:space:]]\+perl' debian/*/usr/*` ; do \
	    sed -i '1s?^#![[:space:]]*/usr/bin/env[[:space:]]\+perl?#!/usr/bin/perl?' $${pl} ; \
	done
	rm -rf debian/*/usr/lib/centrifuge/share/centrifuge/doc