summaryrefslogtreecommitdiff
path: root/extra/ntp
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ntp')
-rw-r--r--extra/ntp/PKGBUILD21
-rw-r--r--extra/ntp/ntp.conf3
-rwxr-xr-xextra/ntp/ntpd47
-rw-r--r--extra/ntp/ntpd.conf5
-rw-r--r--extra/ntp/ntpd.service1
-rwxr-xr-xextra/ntp/ntpdate29
-rw-r--r--extra/ntp/ntpdate.service1
7 files changed, 6 insertions, 101 deletions
diff --git a/extra/ntp/PKGBUILD b/extra/ntp/PKGBUILD
index edaaa9464..3fc20f5b8 100644
--- a/extra/ntp/PKGBUILD
+++ b/extra/ntp/PKGBUILD
@@ -1,32 +1,26 @@
-# $Id: PKGBUILD 184344 2013-05-06 10:28:53Z bisson $
+# $Id: PKGBUILD 191962 2013-08-02 03:24:15Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: kevin <kevin@archlinux.org>
pkgname=ntp
pkgver=4.2.6.p5
_realver=4.2.6p5
-pkgrel=14
+pkgrel=17
pkgdesc='Network Time Protocol reference implementation'
url='http://www.ntp.org/'
license=('custom')
arch=('i686' 'x86_64' 'mips64el')
makedepends=('perl-html-parser')
depends=('openssl' 'libcap' 'libedit')
-backup=('etc/ntp.conf' 'etc/conf.d/ntpd.conf')
+backup=('etc/ntp.conf')
source=("http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${_realver}.tar.gz"
- 'ntpd'
- 'ntpdate'
'ntp.conf'
- 'ntpd.conf'
'ntpd.service'
'ntpdate.service')
sha1sums=('4a5353a4791b6f4315a66c28d504ec6c7926b192'
- '4e324e625c1f080b5c028be5092aa71adbf9bd99'
- '01394b8a952f5edc85d19df8335eeac3980320f4'
- 'f6a2292c26a201d9305669e99463fb54e5603b3f'
- '4537d1f58b299d463db5048129cb264511474b0b'
- 'ffbabfaab90f1ba4dc769c84fbbfe89c5c01ee95'
- '0cb9dbd285e2e8ac51ff47dee08af69e12a09855'
+ 'd3496dbeb7d531dd6ab071dbce3262c3c9618d8b'
+ 'ff8370719f003f184563b7d6068c03086678482f'
+ 'e1c48cba549b7d21501aadf513926e463884c090'
)
install=install
@@ -50,10 +44,7 @@ package() {
rmdir "${pkgdir}"/usr/{lib,sbin}
install -d -o 87 "${pkgdir}"/var/lib/ntp
- install -Dm755 ../ntpd "${pkgdir}"/etc/rc.d/ntpd
- install -Dm755 ../ntpdate "${pkgdir}"/etc/rc.d/ntpdate
install -Dm644 ../ntp.conf "${pkgdir}"/etc/ntp.conf
- install -Dm644 ../ntpd.conf "${pkgdir}"/etc/conf.d/ntpd.conf
install -Dm644 ../ntpd.service "${pkgdir}"/usr/lib/systemd/system/ntpd.service
install -Dm644 ../ntpdate.service "${pkgdir}"/usr/lib/systemd/system/ntpdate.service
install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
diff --git a/extra/ntp/ntp.conf b/extra/ntp/ntp.conf
index 2c0a34571..25135fb3b 100644
--- a/extra/ntp/ntp.conf
+++ b/extra/ntp/ntp.conf
@@ -17,6 +17,3 @@ restrict ::1
# Location of drift file
driftfile /var/lib/ntp/ntp.drift
-
-# NOTE: If you run dhcpcd and have lines like 'restrict' and 'fudge' appearing
-# here, be sure to add '-Y -N' to the dhcpcd_ethX variables in /etc/conf.d/net
diff --git a/extra/ntp/ntpd b/extra/ntp/ntpd
deleted file mode 100755
index 480fa1088..000000000
--- a/extra/ntp/ntpd
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/conf.d/ntpd.conf
-
-unset PID
-PIDFILE='/run/ntpd.pid'
-
-if [[ -r ${PIDFILE} ]]; then
- read -r PID <"${PIDFILE}"
- if [[ -n ${PID} && ! -d /proc/${PID} ]]; then
- rm -f "${PIDFILE}"
- unset PID
- fi
-fi
-
-case "$1" in
- start)
- stat_busy "Starting NTP Daemon"
- if [[ -z ${PID} ]] && /usr/bin/ntpd ${NTPD_ARGS} -p "${PIDFILE}" &>/dev/null; then
- add_daemon ntpd
- stat_done
- else
- stat_fail
- exit 1
- fi
- ;;
- stop)
- stat_busy "Stopping NTP Daemon"
- if [[ -n ${PID} ]] && kill "${PID}" &>/dev/null; then
- rm ${PIDFILE}
- rm_daemon ntpd
- stat_done
- else
- stat_fail
- exit 1
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
diff --git a/extra/ntp/ntpd.conf b/extra/ntp/ntpd.conf
deleted file mode 100644
index 047961fde..000000000
--- a/extra/ntp/ntpd.conf
+++ /dev/null
@@ -1,5 +0,0 @@
-# client options for "ntpd -q" - ntpdate equivalent
-NTP_CLIENT_OPTION="-g -u ntp"
-
-# arguments passed to ntpd when started
-NTPD_ARGS="-g -u ntp"
diff --git a/extra/ntp/ntpd.service b/extra/ntp/ntpd.service
index 4e3290858..45239877f 100644
--- a/extra/ntp/ntpd.service
+++ b/extra/ntp/ntpd.service
@@ -6,7 +6,6 @@ After=network.target nss-lookup.target
Type=forking
PrivateTmp=true
ExecStart=/usr/bin/ntpd -g -u ntp:ntp
-ControlGroup=cpu:/
Restart=always
[Install]
diff --git a/extra/ntp/ntpdate b/extra/ntp/ntpdate
deleted file mode 100755
index a8e746785..000000000
--- a/extra/ntp/ntpdate
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/conf.d/ntpd.conf
-
-case "$1" in
- start)
- stat_busy "Starting NTP Client"
- if /usr/bin/ntpd -q ${NTP_CLIENT_OPTION} &>/dev/null; then
- add_daemon ntpdate
- stat_done
- else
- stat_fail
- exit 1
- fi
- ;;
- stop)
- stat_busy "Stopping NTP Client"
- rm_daemon ntpdate
- stat_done
- ;;
- restart)
- $0 stop
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
diff --git a/extra/ntp/ntpdate.service b/extra/ntp/ntpdate.service
index 82d72d8b6..094dd42c8 100644
--- a/extra/ntp/ntpdate.service
+++ b/extra/ntp/ntpdate.service
@@ -6,7 +6,6 @@ After=network.target nss-lookup.target
Type=oneshot
PrivateTmp=true
ExecStart=/usr/bin/ntpd -q -g -u ntp:ntp
-ControlGroup=cpu:/
[Install]
WantedBy=multi-user.target