X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debian%2Frules;h=e5e2a42358b9aec4a26b346c8a2a7f4828642e63;hb=3b90d0266b5c0a294a8e1e17b2a1a346cd1b7c2b;hp=b93568908ee54cf7404cd48c5396f9a745679fee;hpb=29b18bc91118cc5d139592b354dba943562f325a;p=unscd.git diff --git a/debian/rules b/debian/rules index b935689..e5e2a42 100755 --- a/debian/rules +++ b/debian/rules @@ -1,17 +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 + gcc $(CFLAGS) $(LDFLAGS) -o nscd nscd.c -lsystemd + 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