]> git.donarmstrong.com Git - unscd.git/blob - debian/rules
Debhelper 10 automatically builds --with systemd
[unscd.git] / debian / rules
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
5 %:
6         dh $@
7
8 override_dh_auto_clean:
9         rm -f nscd
10         dh_auto_clean
11
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 \
16                 --no-info \
17                 ./nscd > debian/unscd.man
18         ln -fs unscd.man debian/nscd.man
19
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
25
26 override_dh_systemd_start:
27         dh_systemd_start --restart-after-upgrade --no-stop-on-upgrade