2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: NTP, bilgisayar saatlerini bir ağ üzerinden senkronize etmek için tasarlanmış bir protokoldür.
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# URL: http://www.ntp.org/
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler:
|
2017-01-01 01:58:13 +01:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=ntp
|
|
|
|
|
surum=4.2.8p5
|
|
|
|
|
devir=1
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
kaynak=( http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/$isim-4.2/$isim-$surum.tar.gz)
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd $isim-$surum
|
2016-02-24 01:27:23 +01:00
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
|
--bindir=/usr/sbin \
|
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
|
--infodir=/usr/share/info \
|
|
|
|
|
--enable-linuxcaps \
|
|
|
|
|
--with-lineeditlibs=readline \
|
2017-10-28 14:10:23 +02:00
|
|
|
|
--docdir=/usr/share/doc/$isim-$surum
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
make
|
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
mkdir -p $PKG/var/lib/ntp
|
|
|
|
|
install -v -o ntp -g ntp -d $PKG/var/lib/ntp
|
|
|
|
|
mkdir -p $PKG/etc
|
|
|
|
|
|
|
|
|
|
cat > $PKG/etc/ntp.conf << "EOF"
|
|
|
|
|
|
|
|
|
|
# Europe
|
2017-01-01 01:58:13 +01:00
|
|
|
|
server 0.tr.pool.ntp.org
|
|
|
|
|
server 1.tr.pool.ntp.org
|
|
|
|
|
server 2.tr.pool.ntp.org
|
|
|
|
|
server 3.tr.pool.ntp.org
|
2016-02-24 01:27:23 +01:00
|
|
|
|
server 0.europe.pool.ntp.org
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Africa
|
|
|
|
|
server tock.nml.csir.co.za
|
|
|
|
|
|
|
|
|
|
# Asia
|
|
|
|
|
server 0.asia.pool.ntp.org
|
|
|
|
|
|
|
|
|
|
# Australia
|
|
|
|
|
server 0.oceania.pool.ntp.org
|
|
|
|
|
|
|
|
|
|
# North America
|
|
|
|
|
server 0.north-america.pool.ntp.org
|
|
|
|
|
|
|
|
|
|
# South America
|
|
|
|
|
server 2.south-america.pool.ntp.org
|
|
|
|
|
|
|
|
|
|
driftfile /var/lib/ntp/ntp.drift
|
|
|
|
|
pidfile /var/run/ntpd.pid
|
|
|
|
|
|
|
|
|
|
# Security session
|
|
|
|
|
restrict default limited kod nomodify notrap nopeer noquery
|
|
|
|
|
restrict -6 default limited kod nomodify notrap nopeer noquery
|
|
|
|
|
|
|
|
|
|
restrict 127.0.0.1
|
|
|
|
|
restrict ::1
|
|
|
|
|
EOF
|
|
|
|
|
# service
|
2017-01-01 01:58:13 +01:00
|
|
|
|
|
|
|
|
|
make DESTDIR=$PKG install
|
2016-02-24 01:27:23 +01:00
|
|
|
|
}
|