[arch-commits] Commit in ntp/repos (12 files)
Gaetan Bisson
bisson at nymeria.archlinux.org
Sun Jun 29 16:48:03 UTC 2014
Date: Sunday, June 29, 2014 @ 18:48:02
Author: bisson
Revision: 215578
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
ntp/repos/testing-i686/
ntp/repos/testing-i686/PKGBUILD
(from rev 215577, ntp/trunk/PKGBUILD)
ntp/repos/testing-i686/install
(from rev 215577, ntp/trunk/install)
ntp/repos/testing-i686/ntp.conf
(from rev 215577, ntp/trunk/ntp.conf)
ntp/repos/testing-i686/ntpd.service
(from rev 215577, ntp/trunk/ntpd.service)
ntp/repos/testing-i686/ntpdate.service
(from rev 215577, ntp/trunk/ntpdate.service)
ntp/repos/testing-x86_64/
ntp/repos/testing-x86_64/PKGBUILD
(from rev 215577, ntp/trunk/PKGBUILD)
ntp/repos/testing-x86_64/install
(from rev 215577, ntp/trunk/install)
ntp/repos/testing-x86_64/ntp.conf
(from rev 215577, ntp/trunk/ntp.conf)
ntp/repos/testing-x86_64/ntpd.service
(from rev 215577, ntp/trunk/ntpd.service)
ntp/repos/testing-x86_64/ntpdate.service
(from rev 215577, ntp/trunk/ntpdate.service)
--------------------------------+
testing-i686/PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++
testing-i686/install | 11 +++++++
testing-i686/ntp.conf | 19 +++++++++++++
testing-i686/ntpd.service | 13 +++++++++
testing-i686/ntpdate.service | 12 ++++++++
testing-x86_64/PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++
testing-x86_64/install | 11 +++++++
testing-x86_64/ntp.conf | 19 +++++++++++++
testing-x86_64/ntpd.service | 13 +++++++++
testing-x86_64/ntpdate.service | 12 ++++++++
10 files changed, 220 insertions(+)
Copied: ntp/repos/testing-i686/PKGBUILD (from rev 215577, ntp/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2014-06-29 16:48:02 UTC (rev 215578)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: kevin <kevin at archlinux.org>
+
+pkgname=ntp
+_pkgname=ntp-dev
+_pkgver=4.2.7p446
+pkgver=${_pkgver/p/.p}
+pkgrel=1
+pkgdesc='Network Time Protocol reference implementation'
+url='http://www.ntp.org/'
+license=('custom')
+arch=('i686' 'x86_64')
+depends=('openssl' 'libcap' 'libedit')
+backup=('etc/ntp.conf')
+source=("http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/${_pkgname}/${_pkgname}-${_pkgver}.tar.gz"
+ 'ntp.conf'
+ 'ntpd.service'
+ 'ntpdate.service')
+sha1sums=('634afa46e77c1fd7f0a797f4d46a4f0654b9ca8d'
+ 'd3496dbeb7d531dd6ab071dbce3262c3c9618d8b'
+ 'dd24216e8333e12d5080965696602591c72537b1'
+ '059b382d1af0c55202e2d17f2ae065a2cbfec9ee')
+
+options=('!emptydirs')
+install=install
+
+build() {
+ cd "${srcdir}/${_pkgname}-${_pkgver}"
+
+ ./configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib \
+ --enable-linuxcaps \
+ --enable-ntp-signd \
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${_pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+
+ install -Dm644 ../ntp.conf "${pkgdir}"/etc/ntp.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"
+
+ install -d -o 87 "${pkgdir}"/var/lib/ntp
+ echo > "${pkgdir}/var/lib/ntp/.placeholder"
+
+ install -dm755 "${pkgdir}/usr/lib/systemd/ntp-units.d"
+ echo 'ntpd.service' > "${pkgdir}/usr/lib/systemd/ntp-units.d/50-${pkgname}.list"
+}
Copied: ntp/repos/testing-i686/install (from rev 215577, ntp/trunk/install)
===================================================================
--- testing-i686/install (rev 0)
+++ testing-i686/install 2014-06-29 16:48:02 UTC (rev 215578)
@@ -0,0 +1,11 @@
+post_install() {
+ getent group ntp &>/dev/null || groupadd -g 87 ntp >/dev/null
+ getent passwd ntp &>/dev/null || useradd -u 87 -g ntp -d /var/lib/ntp -c 'Network Time Protocol' -s /bin/false ntp >/dev/null
+ true
+}
+
+post_remove() {
+ getent passwd ntp &>/dev/null && userdel ntp >/dev/null
+ getent group ntp &>/dev/null && groupdel ntp >/dev/null
+ true
+}
Copied: ntp/repos/testing-i686/ntp.conf (from rev 215577, ntp/trunk/ntp.conf)
===================================================================
--- testing-i686/ntp.conf (rev 0)
+++ testing-i686/ntp.conf 2014-06-29 16:48:02 UTC (rev 215578)
@@ -0,0 +1,19 @@
+# With the default settings below, ntpd will only synchronize your clock.
+#
+# For details, see:
+# - the ntp.conf man page
+# - http://support.ntp.org/bin/view/Support/GettingStarted
+# - https://wiki.archlinux.org/index.php/Network_Time_Protocol_daemon
+
+# Associate to public NTP pool servers; see http://www.pool.ntp.org/
+server 0.pool.ntp.org
+server 1.pool.ntp.org
+server 2.pool.ntp.org
+
+# Only allow read-only access from localhost
+restrict default noquery nopeer
+restrict 127.0.0.1
+restrict ::1
+
+# Location of drift file
+driftfile /var/lib/ntp/ntp.drift
Copied: ntp/repos/testing-i686/ntpd.service (from rev 215577, ntp/trunk/ntpd.service)
===================================================================
--- testing-i686/ntpd.service (rev 0)
+++ testing-i686/ntpd.service 2014-06-29 16:48:02 UTC (rev 215578)
@@ -0,0 +1,13 @@
+[Unit]
+Description=Network Time Service
+After=network.target nss-lookup.target
+
+[Service]
+Type=forking
+PrivateTmp=true
+PIDFile=/run/ntpd.pid
+ExecStart=/usr/bin/ntpd -g -u ntp:ntp -p /run/ntpd.pid
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
Copied: ntp/repos/testing-i686/ntpdate.service (from rev 215577, ntp/trunk/ntpdate.service)
===================================================================
--- testing-i686/ntpdate.service (rev 0)
+++ testing-i686/ntpdate.service 2014-06-29 16:48:02 UTC (rev 215578)
@@ -0,0 +1,12 @@
+[Unit]
+Description=One-Shot Network Time Service
+After=network.target nss-lookup.target
+Before=ntpd.service
+
+[Service]
+Type=oneshot
+PrivateTmp=true
+ExecStart=/usr/bin/ntpd -q -n -g -u ntp:ntp
+
+[Install]
+WantedBy=multi-user.target
Copied: ntp/repos/testing-x86_64/PKGBUILD (from rev 215577, ntp/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2014-06-29 16:48:02 UTC (rev 215578)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: kevin <kevin at archlinux.org>
+
+pkgname=ntp
+_pkgname=ntp-dev
+_pkgver=4.2.7p446
+pkgver=${_pkgver/p/.p}
+pkgrel=1
+pkgdesc='Network Time Protocol reference implementation'
+url='http://www.ntp.org/'
+license=('custom')
+arch=('i686' 'x86_64')
+depends=('openssl' 'libcap' 'libedit')
+backup=('etc/ntp.conf')
+source=("http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/${_pkgname}/${_pkgname}-${_pkgver}.tar.gz"
+ 'ntp.conf'
+ 'ntpd.service'
+ 'ntpdate.service')
+sha1sums=('634afa46e77c1fd7f0a797f4d46a4f0654b9ca8d'
+ 'd3496dbeb7d531dd6ab071dbce3262c3c9618d8b'
+ 'dd24216e8333e12d5080965696602591c72537b1'
+ '059b382d1af0c55202e2d17f2ae065a2cbfec9ee')
+
+options=('!emptydirs')
+install=install
+
+build() {
+ cd "${srcdir}/${_pkgname}-${_pkgver}"
+
+ ./configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib \
+ --enable-linuxcaps \
+ --enable-ntp-signd \
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${_pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+
+ install -Dm644 ../ntp.conf "${pkgdir}"/etc/ntp.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"
+
+ install -d -o 87 "${pkgdir}"/var/lib/ntp
+ echo > "${pkgdir}/var/lib/ntp/.placeholder"
+
+ install -dm755 "${pkgdir}/usr/lib/systemd/ntp-units.d"
+ echo 'ntpd.service' > "${pkgdir}/usr/lib/systemd/ntp-units.d/50-${pkgname}.list"
+}
Copied: ntp/repos/testing-x86_64/install (from rev 215577, ntp/trunk/install)
===================================================================
--- testing-x86_64/install (rev 0)
+++ testing-x86_64/install 2014-06-29 16:48:02 UTC (rev 215578)
@@ -0,0 +1,11 @@
+post_install() {
+ getent group ntp &>/dev/null || groupadd -g 87 ntp >/dev/null
+ getent passwd ntp &>/dev/null || useradd -u 87 -g ntp -d /var/lib/ntp -c 'Network Time Protocol' -s /bin/false ntp >/dev/null
+ true
+}
+
+post_remove() {
+ getent passwd ntp &>/dev/null && userdel ntp >/dev/null
+ getent group ntp &>/dev/null && groupdel ntp >/dev/null
+ true
+}
Copied: ntp/repos/testing-x86_64/ntp.conf (from rev 215577, ntp/trunk/ntp.conf)
===================================================================
--- testing-x86_64/ntp.conf (rev 0)
+++ testing-x86_64/ntp.conf 2014-06-29 16:48:02 UTC (rev 215578)
@@ -0,0 +1,19 @@
+# With the default settings below, ntpd will only synchronize your clock.
+#
+# For details, see:
+# - the ntp.conf man page
+# - http://support.ntp.org/bin/view/Support/GettingStarted
+# - https://wiki.archlinux.org/index.php/Network_Time_Protocol_daemon
+
+# Associate to public NTP pool servers; see http://www.pool.ntp.org/
+server 0.pool.ntp.org
+server 1.pool.ntp.org
+server 2.pool.ntp.org
+
+# Only allow read-only access from localhost
+restrict default noquery nopeer
+restrict 127.0.0.1
+restrict ::1
+
+# Location of drift file
+driftfile /var/lib/ntp/ntp.drift
Copied: ntp/repos/testing-x86_64/ntpd.service (from rev 215577, ntp/trunk/ntpd.service)
===================================================================
--- testing-x86_64/ntpd.service (rev 0)
+++ testing-x86_64/ntpd.service 2014-06-29 16:48:02 UTC (rev 215578)
@@ -0,0 +1,13 @@
+[Unit]
+Description=Network Time Service
+After=network.target nss-lookup.target
+
+[Service]
+Type=forking
+PrivateTmp=true
+PIDFile=/run/ntpd.pid
+ExecStart=/usr/bin/ntpd -g -u ntp:ntp -p /run/ntpd.pid
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
Copied: ntp/repos/testing-x86_64/ntpdate.service (from rev 215577, ntp/trunk/ntpdate.service)
===================================================================
--- testing-x86_64/ntpdate.service (rev 0)
+++ testing-x86_64/ntpdate.service 2014-06-29 16:48:02 UTC (rev 215578)
@@ -0,0 +1,12 @@
+[Unit]
+Description=One-Shot Network Time Service
+After=network.target nss-lookup.target
+Before=ntpd.service
+
+[Service]
+Type=oneshot
+PrivateTmp=true
+ExecStart=/usr/bin/ntpd -q -n -g -u ntp:ntp
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list