]> git.pld-linux.org Git - packages/ntp.git/commitdiff
drop all Upstart hacks auto/th/ntp-4.2.8-3
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Thu, 23 Apr 2015 07:21:25 +0000 (09:21 +0200)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Thu, 23 Apr 2015 07:21:25 +0000 (09:21 +0200)
Release: 3

ntp.spec
ntp.upstart [deleted file]
ntpd.init
ntpdate.init
ntpdate.upstart [deleted file]

index 0d75fdc39a8c2bfdf3ea40222d0a2f30e1accca6..9350fd4199573d38c53a5f89040298a0b8113b9f 100644 (file)
--- a/ntp.spec
+++ b/ntp.spec
@@ -12,7 +12,7 @@ Summary(pl.UTF-8):    Narzędzia do synchronizacji czasu (Network Time Protocol)
 Summary(pt_BR.UTF-8):  Network Time Protocol versão 4
 Name:          ntp
 Version:       4.2.8
-Release:       2
+Release:       3
 License:       distributable
 Group:         Networking/Daemons
 Source0:       http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/%{name}-%{version}.tar.gz
@@ -25,8 +25,6 @@ Source5:      %{name}date.init
 Source6:       %{name}date.sysconfig
 Source7:       %{name}-manpages.tar.gz
 # Source7-md5: 208fcc9019e19ab26d28e4597290bffb
-Source8:       %{name}.upstart
-Source9:       %{name}date.upstart
 Source10:      %{name}date-wrapper
 Source11:      %{name}d.service
 Source12:      %{name}date.service
@@ -140,19 +138,6 @@ referência de horário. Este pacote contém utilitários e servidores que
 sincronizarão o relógio do seu computador com o horário universal
 (UTC) através do protocolo NTP e utilizando servidores NTP públicos.
 
-%package -n ntpd-upstart
-Summary:       Upstart job description for the NTP daemon
-Summary(pl.UTF-8):     Opis zadania Upstart dla demona NTP
-Group:         Daemons
-Requires:      ntpd = %{version}-%{release}
-Requires:      upstart >= 0.6
-
-%description -n ntpd-upstart
-Upstart job description for the NTP daemon.
-
-%description -n ntpd-upstart -l pl.UTF-8
-Opis zadania Upstart dla demona NTP.
-
 %package -n ntpdate
 Summary:       Utility to set the date and time via NTP
 Summary(pl.UTF-8):     Klient do synchronizacji czasu po NTP (Network Time Protocol)
@@ -184,19 +169,6 @@ servers.
 %description -n ntpdate -l pl.UTF-8
 Klient do synchronizacji czasu po NTP (Network Time Protocol).
 
-%package -n ntpdate-upstart
-Summary:       Upstart job description for NTP client
-Summary(pl.UTF-8):     Opis zadania Upstart dla klienta NTP
-Group:         Daemons
-Requires:      ntpdate = %{version}-%{release}
-Requires:      upstart >= 0.6
-
-%description -n ntpdate-upstart
-Upstart job description for the NTP client.
-
-%description -n ntpdate-upstart -l pl.UTF-8
-Opis zadania Upstart dla klienta NTP.
-
 %package -n mibs-ntp
 Summary:       MIBs for NTP time entities
 Summary(pl.UTF-8):     Pliki MIB dla elementów czasu NTP
@@ -312,7 +284,7 @@ CPPFLAGS="%{rpmcppflags} -I/usr/include/readline"
 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}
+       $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,cron.hourly}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
@@ -325,8 +297,6 @@ install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/ntpd
 install -p %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/ntpdate
 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/ntpd
 cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ntpdate
-cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/init/ntpd.conf
-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
@@ -383,12 +353,6 @@ if [ "$1" = "0" ]; then
 fi
 %systemd_reload
 
-%post -n ntpd-upstart
-%upstart_post ntpd
-
-%postun -n ntpd-upstart
-%upstart_postun ntpd
-
 %pre -n ntpdate
 %groupadd -g 246 ntp
 %useradd -u 246 -d %{_sysconfdir} -g ntp -c "NTP Daemon" ntp
@@ -412,12 +376,6 @@ if [ "$1" = "0" ]; then
 fi
 %systemd_reload
 
-%post -n ntpdate-upstart
-%upstart_post ntpdate
-
-%postun -n ntpdate-upstart
-%upstart_postun ntpdate
-
 %triggerun -n ntpd -- ntp < 4.2.4p8-3.14
 # Prevent preun from ntp from working
 chmod a-x /etc/rc.d/init.d/ntpd
@@ -476,10 +434,6 @@ fi
 %dir %attr(770,root,ntp) /var/lib/ntp
 %attr(640,ntp,ntp) %ghost /var/lib/ntp/drift
 
-%files -n ntpd-upstart
-%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) /etc/init/ntpd.conf
-
 %files -n ntpdate
 %defattr(644,root,root,755)
 %doc COPYRIGHT
@@ -491,10 +445,6 @@ fi
 %{systemdunitdir}/ntpdate.service
 %{_mandir}/man1/ntpdate.1*
 
-%files -n ntpdate-upstart
-%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) /etc/init/ntpdate.conf
-
 %files -n mibs-ntp
 %defattr(644,root,root,755)
 %{mibdir}/ntpv4-mib.mib
diff --git a/ntp.upstart b/ntp.upstart
deleted file mode 100644 (file)
index 9e53e6b..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-description "NTP daemon"
-
-start on pld.network-started
-stop on pld.shutdown-started
-
-env NTPD_USER="ntp"
-env NTPD_OPTIONS=""
-
-respawn
-
-pre-start script
-       # do not bother to start if not configured
-       [ -f /etc/ntp/ntp.conf ] || /sbin/initctl stop
-end script
-
-script
-       # Source old-style ntp service configuration
-       [ -f /etc/sysconfig/ntpd ] && . /etc/sysconfig/ntpd
-
-       exec /usr/sbin/ntpd -n -c /etc/ntp/ntp.conf -p /var/run/ntpd.pid ${NTPD_USER:+-u $NTPD_USER} $NTPD_OPTIONS
-end script
index 17f6f2713622e700b841d1ffcd926bdb3f788650..fa7692fe8d7d0625088989e696fac915d3a38cd1 100755 (executable)
--- a/ntpd.init
+++ b/ntpd.init
@@ -9,8 +9,6 @@
 # Source function library.
 . /etc/rc.d/init.d/functions
 
-upstart_controlled
-
 # Source networking configuration.
 . /etc/sysconfig/network
 
index 324513b77ef179048ed79ba3d90bb738b98843aa..14e59ad695bac76906ebba9fe0cfc6f600a2df74 100755 (executable)
@@ -8,8 +8,6 @@
 # Source function library.
 . /etc/rc.d/init.d/functions
 
-upstart_controlled
-
 # Source networking configuration.
 . /etc/sysconfig/network
 
diff --git a/ntpdate.upstart b/ntpdate.upstart
deleted file mode 100644 (file)
index 2f55a12..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-description "Synchronizes time with ntpdate (NTP client)"
-
-# TODO: act on "have default gateway"
-# start on net-device-added INTERFACE!=lo
-# TODO: run before ntpd
-
-start on pld.network-started
-stop on pld.shutdown-started
-
-task
-
-# mark that ntpdate fail is ok (task marked as done and hwclock skipped)
-normal exit 0 1
-
-exec /usr/sbin/ntpdate-wrapper
This page took 0.203291 seconds and 4 git commands to generate.