From ba8c171f7ce4f865c75a8743ecc87b77360763c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Mon, 8 Dec 2014 22:07:42 +0100 Subject: [PATCH] - provide ntp-units.d file for systemd --- ntp.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ntp.spec b/ntp.spec index a822520..58e8e8a 100644 --- a/ntp.spec +++ b/ntp.spec @@ -296,6 +296,7 @@ CPPFLAGS="%{rpmcppflags} -I/usr/include/readline" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir}/man1,%{systemdunitdir}} \ + $RPM_BUILD_ROOT%{_libexecdir}/systemd/ntp-units.d \ $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,cron.hourly,init} %{__make} install \ @@ -315,6 +316,8 @@ cp -p %{SOURCE9} $RPM_BUILD_ROOT/etc/init/ntpdate.conf install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sbindir}/ntpdate-wrapper cp -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}/ntpd.service cp -p %{SOURCE12} $RPM_BUILD_ROOT%{systemdunitdir}/ntpdate.service +echo 'ntpd.service' > \ + $RPM_BUILD_ROOT%{_libexecdir}/systemd/ntp-units.d/50-ntpd.list cp -p man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 @@ -435,6 +438,7 @@ fi %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ntpd %attr(754,root,root) /etc/rc.d/init.d/ntpd %{systemdunitdir}/ntpd.service +%{_libexecdir}/systemd/ntp-units.d/50-ntpd.list %attr(755,root,root) %{_sbindir}/ntpd %attr(755,root,root) %{_sbindir}/ntpdc %attr(755,root,root) %{_sbindir}/ntp-keygen -- 2.44.0