X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debian%2Frules;h=413cdd5f2814ca78f056a586ebcb099fc1fa0fd1;hb=2866357cf8b7106e16b39c7547fbdc24d6ecc9ec;hp=b93568908ee54cf7404cd48c5396f9a745679fee;hpb=759a4f5f4595d3a5089517529dcb193535449804;p=unscd.git diff --git a/debian/rules b/debian/rules index b935689..413cdd5 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,7 @@ #!/usr/bin/make -f %: - dh $@ + dh $@ --with systemd override_dh_auto_clean: rm -f nscd @@ -9,9 +9,17 @@ override_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