File: rules

package info (click to toggle)
unscd 0.53-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 392 kB
  • sloc: ansic: 7,637; sh: 102; perl: 36; makefile: 19
file content (25 lines) | stat: -rwxr-xr-x 591 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
#!/usr/bin/make -f

%:
	dh $@ --with systemd

override_dh_auto_clean:
	rm -f nscd
	dh_auto_clean

override_dh_auto_build:
	gcc $(CFLAGS) $(LDFLAGS) -o nscd nscd.c
	help2man --name 'nscd which does not hang' \
		--include debian/help2man \
		--no-info \
		./nscd > debian/unscd.man
	ln -fs unscd.man debian/nscd.man

override_dh_auto_install:
	install -d debian/unscd/usr/sbin/
	install -t debian/unscd/usr/sbin/ nscd
	install -d debian/unscd/etc/
	install -m644 -t debian/unscd/etc/ debian/nscd.conf

override_dh_systemd_start:
	dh_systemd_start --restart-after-upgrade --no-stop-on-upgrade