blob: c9312c3026cd9c51ef9ddbbc3b236a95d4ad8ca3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/usr/bin/make -f
-include /usr/share/dpkg/buildtools.mk
export CC
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
BASE=debian/chrony
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- --mandir=/usr/share/man \
--sysconfdir=/etc/chrony \
--without-readline \
--with-user=_chrony \
--enable-scfilter \
--chronyrundir=/run/chrony \
--with-ntp-era=$(shell date -d '1970-01-01 00:00:00+00:00' +'%s') \
--enable-ntp-signd \
--with-hwclockfile=/etc/adjtime \
--with-pidfile=/run/chronyd.pid \
--host-system=Linux
override_dh_install:
dh_install
install -m 0640 -t $(BASE)/usr/share/chrony/ debian/chrony.keys
install -m 0755 -T examples/chrony.nm-dispatcher $(BASE)/etc/NetworkManager/dispatcher.d/20-chrony
install -m 0644 -T examples/chrony.logrotate $(BASE)/etc/logrotate.d/chrony
dh_apparmor --profile-name=usr.sbin.chronyd -pchrony
install -D -p -m 0644 debian/chrony.dhcp $(BASE)/etc/dhcp/dhclient-exit-hooks.d/chrony
override_dh_fixperms:
dh_fixperms -X usr/share/chrony/chrony.keys
|