Difference between revisions of "NTP"

From CBLFS
Jump to navigationJump to search
(I added the "Additional Configuration Options" section.)
Line 1: Line 1:
 
{| style="text-align: left; background-color: AliceBlue;"
 
{| style="text-align: left; background-color: AliceBlue;"
|-
+
|-valign="top"
 
!Download Source:
 
!Download Source:
 
| http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-{{NTP-Version}}.tar.gz
 
| http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-{{NTP-Version}}.tar.gz
Line 15: Line 15:
 
=== Optional ===
 
=== Optional ===
 
*[[OpenSSL]]
 
*[[OpenSSL]]
 +
 +
== Additional Configuration Options ==
 +
 +
''--with-crypto'': Enables [[OpenSSL]] support.
  
 
== Non-Multilib ==
 
== Non-Multilib ==
Line 31: Line 35:
  
 
  make install
 
  make install
  install -v -m755 -d /usr/share/doc/ntp-{{NTP-Version}} &&
+
  install -dv -m755 /usr/share/doc/ntp-{{NTP-Version}} &&
  cp -v -R html /usr/share/doc/ntp-{{NTP-Version}}/
+
  cp -Rv html /usr/share/doc/ntp-{{NTP-Version}}/
  
 
== Multilib ==
 
== Multilib ==
Line 52: Line 56:
  
 
  make install &&
 
  make install &&
  install -v -m755 -d /usr/share/doc/ntp-{{NTP-Version}} &&
+
  install -dv -m755 /usr/share/doc/ntp-{{NTP-Version}} &&
  cp -v -R html /usr/share/doc/ntp-{{NTP-Version}}/
+
  cp -Rv html /usr/share/doc/ntp-{{NTP-Version}}/
  
 
=== N32 ===
 
=== N32 ===
Line 70: Line 74:
  
 
  make install &&
 
  make install &&
  install -v -m755 -d /usr/share/doc/ntp-{{NTP-Version}} &&
+
  install -dv -m755 /usr/share/doc/ntp-{{NTP-Version}} &&
  cp -v -R html /usr/share/doc/ntp-{{NTP-Version}}/
+
  cp -Rv html /usr/share/doc/ntp-{{NTP-Version}}/
  
 
=== 64Bit ===
 
=== 64Bit ===
Line 88: Line 92:
  
 
  make install &&
 
  make install &&
  install -v -m755 -d /usr/share/doc/ntp-{{NTP-Version}} &&
+
  install -dv -m755 /usr/share/doc/ntp-{{NTP-Version}} &&
  cp -v -R html /usr/share/doc/ntp-{{NTP-Version}}/
+
  cp -Rv html /usr/share/doc/ntp-{{NTP-Version}}/
  
 
== Configuring ==
 
== Configuring ==

Revision as of 18:25, 8 January 2007

Download Source: http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2.8p10.tar.gz

Introdction to NTP

The NTP package contains a client and server to keep the time synchronized between various computers over a network. This package is the official reference implementation of the NTP protocol.

Dependencies

Optional

Additional Configuration Options

--with-crypto: Enables OpenSSL support.

Non-Multilib

Silc-toolkit provides a md5.h that is incompatible with NTP. Add the following entry to config.cache to make sure the header isn't used:

echo "ac_cv_header_md5_h=no" > config.cache

Compile the package:

./configure --prefix=/usr --bindir=/usr/sbin \
    --sysconfdir=/etc --cache-file=config.cache &&
make

Install the package

make install
install -dv -m755 /usr/share/doc/ntp-4.2.8p10 &&
cp -Rv html /usr/share/doc/ntp-4.2.8p10/

Multilib

This package does not provide any libraries so only one installation is needed.

32Bit

Silc-toolkit provides a md5.h that is incompatible with NTP. Add the following entry to config.cache to make sure the header isn't used:

echo "ac_cv_header_md5_h=no" > config.cache

Compile the package:

CC="gcc ${BUILD32}" USE_ARCH=32 ./configure  --prefix=/usr \
--bindir=/usr/sbin --sysconfdir=/etc --cache-file=config.cache &&
make

Install the package

make install &&
install -dv -m755 /usr/share/doc/ntp-4.2.8p10 &&
cp -Rv html /usr/share/doc/ntp-4.2.8p10/

N32

Silc-toolkit provides a md5.h that is incompatible with NTP. Add the following entry to config.cache to make sure the header isn't used:

echo "ac_cv_header_md5_h=no" > config.cache

Compile the package:

CC="gcc ${BUILDN32}" USE_ARCH=n32 ./configure  --prefix=/usr \
--bindir=/usr/sbin --sysconfdir=/etc --cache-file=config.cache &&
make

Install the package

make install &&
install -dv -m755 /usr/share/doc/ntp-4.2.8p10 &&
cp -Rv html /usr/share/doc/ntp-4.2.8p10/

64Bit

Silc-toolkit provides a md5.h that is incompatible with NTP. Add the following entry to config.cache to make sure the header isn't used:

echo "ac_cv_header_md5_h=no" > config.cache

Compile the package:

CC="gcc ${BUILD64}" USE_ARCH=64 ./configure  --prefix=/usr \
    --bindir=/usr/sbin --sysconfdir=/etc --cache-file=config.cache &&
make

Install the package

make install &&
install -dv -m755 /usr/share/doc/ntp-4.2.8p10 &&
cp -Rv html /usr/share/doc/ntp-4.2.8p10/

Configuring

Bootscript

Install the init script provided by the blfs-bootscripts package:

make install-ntp
ln -v -sf ../init.d/setclock /etc/rc.d/rc0.d/K46setclock &&
ln -v -sf ../init.d/setclock /etc/rc.d/rc6.d/K46setclock
Retrieved from "?title=NTP&oldid=6733"