Commit 2dcb2631 authored by Xuetian Weng's avatar Xuetian Weng

ntp: update and use our own pool domain

parent 80f131a0
pkgname=ntp
pkgver=4.2.8.p2
_realver=4.2.8p2
_pkgname=ntp #-dev
_pkgver=4.2.8p3
pkgver=${_pkgver/p/.p}
pkgrel=1
pkgdesc="NTP (Network Time Protocol) tries to keep servers in sync"
arch=('x86_64')
license=('custom')
pkgdesc='Network Time Protocol reference implementation'
url="http://www.ntp.org/"
depends=('openssl' 'libedit' 'libcap')
license=('custom')
arch=('x86_64')
depends=('openssl' 'libcap' 'libedit')
makedepends=('perl-html-parser')
backup=('etc/ntp.conf')
install=install
source=("http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${_realver}.tar.gz"
#source=("http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/${_pkgname}/${_pkgname}-${_pkgver}.tar.gz"
source=("http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/${_pkgname}-${_pkgver}.tar.gz"
'ntp.conf'
'ntpdate.service'
'ntpd.service')
md5sums=('fa37049383316322d060ec9061ac23a9'
'ac884ad959850731d8f27667681bbdf8'
'11c7dea7e35034ffc370dafae49f1d45'
'77d51b701d417aeb2e8911e24287496e')
'ntpd.service'
'ntpdate.service')
sha1sums=('fc624396f8d9f9bc282da30c8e8e527ade7d420f'
'76045019df8182c8b759828549dbd957e26c4d6e'
'0cccca872385e0142888ab48d273fec0669b30a8'
'059b382d1af0c55202e2d17f2ae065a2cbfec9ee')
options=('!emptydirs')
install=install
build() {
cd "${srcdir}/${pkgname}-${_realver}"
cd "${srcdir}/${pkgname}-${_pkgver}"
./configure --prefix=/usr \
--libexecdir=/usr/lib \
......@@ -32,7 +36,7 @@ build() {
}
package() {
cd "${srcdir}/${pkgname}-$_realver"
cd "${srcdir}/${pkgname}-${_pkgver}"
make DESTDIR="${pkgdir}" install
......
# With the default settings below, ntpd will only synchronize your clock.
# Please consider joining the pool:
#
# For details, see:
# - the ntp.conf man page
# - http://support.ntp.org/bin/view/Support/GettingStarted
# http://www.pool.ntp.org/join.html
#
# For additional information see:
# - https://wiki.archlinux.org/index.php/Network_Time_Protocol_daemon
# - http://support.ntp.org/bin/view/Support/GettingStarted
# - the ntp.conf man page
# Select three geolocalized NTP public servers; see http://www.pool.ntp.org/
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
# Associate to Chakra's NTP pool
server 0.chakra.pool.ntp.org
server 1.chakra.pool.ntp.org
server 2.chakra.pool.ntp.org
server 3.chakra.pool.ntp.org
# Only allow read-only access from localhost
restrict default noquery nopeer
# By default, the server allows:
# - all queries from the local host
# - only time queries from remote hosts, protected by rate limiting and kod
restrict default kod limited nomodify nopeer noquery notrap
restrict 127.0.0.1
restrict ::1
# Location of drift and log files
# 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment