talimat 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Description: NTP, bilgisayar saatlerini bir ağ üzerinden senkronize etmek için tasarlanmış bir protokoldür.
  2. # URL: http://www.ntp.org/
  3. # Packagers: milisarge
  4. # Depends on:
  5. name=ntp
  6. version=4.2.8p5
  7. release=1
  8. source=( http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/$name-4.2/$name-$version.tar.gz)
  9. build() {
  10. cd $name-$version
  11. ./configure --prefix=/usr \
  12. --bindir=/usr/sbin \
  13. --sysconfdir=/etc \
  14. --mandir=/usr/share/man \
  15. --infodir=/usr/share/info \
  16. --enable-linuxcaps \
  17. --with-lineeditlibs=readline \
  18. --docdir=/usr/share/doc/$name-$version
  19. make
  20. make DESTDIR=$PKG install
  21. mkdir -p $PKG/var/lib/ntp
  22. install -v -o ntp -g ntp -d $PKG/var/lib/ntp
  23. mkdir -p $PKG/etc
  24. cat > $PKG/etc/ntp.conf << "EOF"
  25. # Europe
  26. server 0.tr.pool.ntp.org
  27. server 1.tr.pool.ntp.org
  28. server 2.tr.pool.ntp.org
  29. server 3.tr.pool.ntp.org
  30. server 0.europe.pool.ntp.org
  31. # Africa
  32. server tock.nml.csir.co.za
  33. # Asia
  34. server 0.asia.pool.ntp.org
  35. # Australia
  36. server 0.oceania.pool.ntp.org
  37. # North America
  38. server 0.north-america.pool.ntp.org
  39. # South America
  40. server 2.south-america.pool.ntp.org
  41. driftfile /var/lib/ntp/ntp.drift
  42. pidfile /var/run/ntpd.pid
  43. # Security session
  44. restrict default limited kod nomodify notrap nopeer noquery
  45. restrict -6 default limited kod nomodify notrap nopeer noquery
  46. restrict 127.0.0.1
  47. restrict ::1
  48. EOF
  49. # service
  50. make DESTDIR=$PKG install
  51. }