File: build.adoc

package info (click to toggle)
ntpsec 1.2.0%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 10,044 kB
  • sloc: ansic: 60,737; python: 31,610; sh: 1,494; yacc: 1,291; makefile: 176; javascript: 138
file content (109 lines) | stat: -rw-r--r-- 3,968 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
= Building and Installing the Distribution
include::include-html.ad[]

[cols="10%,90%",frame="none",grid="none",style="verse"]
|==============================
|image:pic/beaver.gif[]|
{millshome}pictures.html[from 'Pogo', Walt Kelly]

For putting out compiler fires.

|==============================

== Related Links

include::includes/install.adoc[]

== Table of Contents

* link:#waf[Autoconf has been replaced with waf]
* link:#build[Building and Installing the Distribution]
* link:#unix[Building and Installing for Unix]
* link:#conf[Configuration]
* link:#prob[If You Have Problems]
* link:#additional[Additional +waf+ Commands]

'''''

[[waf]]
=== Autoconf has been replaced with waf

The autoconf build system used in NTP Classic has been replaced with
waf, a more modern and much faster build engine.  It is not necessary
to install any separate waf package; the build engine is a Python
script included in your NTPsec distribution.

[[build]]
== Building and Installing the Distribution

It is not possible in a software distribution such as this to support
every individual computer and operating system with a common
executable, even with the same system but different versions and
options. Therefore, it is necessary to configure, build and install
for each system and version. In almost all cases, these procedures are
completely automatic, The user types +./waf configure+, +./waf build+,
and +./waf install+ in that order and the build system does the
rest. There are some exceptions, as noted below.

This page provides only a general introduction to building the code.
Please consult the INSTALL file in the distribution root for the
most detailed information on build-time dependencies and configuration
options.

[[unix]]
== Building and Installing for Unix

This distribution uses common compilers and tools that come with most
Unix distributions. Not all of these tools exist in the standard
distribution of modern Unix versions (compilers are likely to be an
add-on product). If this is the case, consider using the GNU tools and
+gcc+ compiler included as freeware in some systems. For a successful
build, all of these tools should be accessible via the current path.

The first thing to do is uncompress the distribution and extract the
source tree. In the distribution base directory use the
+./waf configure+ command to perform an automatic configuration procedure.
This command inspects the hardware and software environment and
configures the build process accordingly. Use the +./waf build+ command to
compile and link the distribution and the +./waf install+ command to install
the executables by default in +/usr/local/bin+.

[[conf]]
== Configuration

You are now ready to configure the daemon. You will need to create an NTP
configuration file by default in +{ntpconfpath}+. Newbies should see the
link:quick.html[Client Quick Start Guide].  Seasoned
veterans can start with the link:ntpd.html[+ntpd+ - Network Time Protocol
(NTP) Daemon] and link:ntp_conf.html[+ntpd+ Configuration File] pages and
move on to the specific configuration option pages.

[[prob]]
== If You Have Problems

If you have problems with your hardware and software environment,
a tutorial on debugging technique is in
the link:debug.html[NTP Debugging Technique] page. A list of important
system log messages is on the link:msyslog.html[+ntpd+ System Log
Messages] page.

The first line of general assistance is the NTPsec web site
{project-weblink} and the helpful documents resident
there. Requests for assistance of a general nature and of interest to
other timekeepers should be sent to the NTP newsgroup
comp.protocols.time.ntp.

Users are invited to report bugs and offer suggestions via the
link:bugs.html[NTP Bug Reporting Procedures] page.

[[additional]]
== Additional +waf+ commands

+./waf clean+::
  Cleans out object files, programs and temporary files.
+./waf distclean+::
  Removes the build directory.

'''''

include::includes/footer.adoc[]