3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
8 override_dh_auto_clean:
12 override_dh_auto_build:
13 gcc $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o nscd nscd.c -lsystemd
14 help2man --name 'nscd which does not hang' \
15 --include debian/help2man \
17 ./nscd > debian/unscd.man
18 ln -fs unscd.man debian/nscd.man
20 override_dh_auto_install:
21 install -d debian/unscd/usr/sbin/
22 install -t debian/unscd/usr/sbin/ nscd
23 install -d debian/unscd/etc/
24 install -m644 -t debian/unscd/etc/ debian/nscd.conf
26 override_dh_systemd_start:
27 dh_systemd_start --restart-after-upgrade --no-stop-on-upgrade