X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debian%2Frules;h=a5b6f487e82d013d9ddc4ff9f11cf38c806cc989;hb=a5e63009a9009ded670f4d7fbb2801dd42adbed4;hp=ca4fcbdb40bf57e2d17f5ad36c14defc57b15754;hpb=7be21575f08bba9b1088d8b87222644b29ec3f4a;p=unscd.git diff --git a/debian/rules b/debian/rules index ca4fcbd..a5b6f48 100755 --- a/debian/rules +++ b/debian/rules @@ -1,13 +1,27 @@ #!/usr/bin/make -f +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + %: - 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 $(CPPFLAGS) $(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