File: rules

package info (click to toggle)
carbon-c-relay 2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 680 kB
  • sloc: ansic: 7,204; sh: 113; python: 112; makefile: 52
file content (17 lines) | stat: -rwxr-xr-x 528 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

UPSTREAM_VERSION := $(strip $(shell dpkg-parsechangelog| sed -e '/^Version/!d' -e 's,.* ,,;s,-.*,,'))
%:
	dh $@ --with systemd

override_dh_auto_install:
	cp relay carbon-c-relay
	help2man \
	    -n 'carbon-compatible graphite line mode relay' \
	    -s 1 \
	    -S 'Debian' \
	    -N ./carbon-c-relay \
	    --version-string='$(UPSTREAM_VERSION)' |\
	   	 sed 	-e 's,^.B relay,.B carbon-c-relay,' \
		 	-e '/worker threads/s,to [0-9]*,to the number of cpu cores,' > debian/carbon-c-relay.1
	dh_auto_install