X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debian%2Frules;h=413cdd5f2814ca78f056a586ebcb099fc1fa0fd1;hb=48f6f3c11047742b2f6d6d9951e407a1b7cdc715;hp=59e1de4d90f8570931befd9d1da6119fcd765cb7;hpb=faa068f74625dc051569fe58913562e005aab815;p=unscd.git diff --git a/debian/rules b/debian/rules index 59e1de4..413cdd5 100755 --- a/debian/rules +++ b/debian/rules @@ -1,13 +1,25 @@ #!/usr/bin/make -f -%: - dh $@ +%: + 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 + 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