1
0
mirror of https://bitbucket.org/anguist/ntpa synced 2025-10-05 10:30:56 +00:00

Added Makefile

This commit is contained in:
2016-03-19 23:08:38 +01:00
parent 0db48ed940
commit 1a9c007d9a
2 changed files with 21 additions and 10 deletions

21
INSTALL
View File

@ -27,23 +27,27 @@ if needed.
Install
Build the solution with:
# xbuild Ntp.Analyzer.sln
# make
To build a pure server version without GTK:
# xbuild Ntp.Analyzer.sln /property:Configuration=Server
Build a pure server version (no GTK) with:
# make server
Copy the output in bin folder to /opt/ntpa or another suitable
location.
Copy the output files in the bin folder to /opt/ntpa or any other
suitable location and copy ntpa.stat.conf from example to
/etc/ntpa.conf
Setup
Configuration
Copy ntpa.stat.conf from example to /etc/ntpa.conf
In ntpa.conf Hostname must point to a name or IP reachable by ntpq.
ConfigFile must must point to ntp.conf. ConfigFile is only needed
when generating graphs and pages. Adjust the values of HostName and
ConfigFile settings accordingly.
Set database user name and password in the top of ntpa.conf. Leave the
Create setting to 1 if you want all tables and data created automatically.
Be sure the user you entered in ntpa.conf exists in your MySQL database.
If you want to generate graphs and pages then also copy ntp.conf from
NTP host to the machine running ntpa and add timeserver ID from
support.ntp.org. Search using google.com with f.x.
@ -51,9 +55,6 @@ support.ntp.org. Search using google.com with f.x.
For servers not registered on support.ntp.org just add 10000 and above.
See ntp.conf in examples on how to add time server IDs.
Set database user name and password in the top of ntpa.conf. Leave the
Create setting to 1 if you want all tables and data created automatically.
Be sure the user you entered in ntpa.conf exists in your MySQL database.
Configuration can be validate with the validation tool:
# mono ntpav.exe /etc/ntpa.conf

10
Makefile Normal file
View File

@ -0,0 +1,10 @@
all:
xbuild Ntp.Analyzer.sln
server:
xbuild Ntp.Analyzer.sln /property:Configuration=Server
clean:
xbuild Ntp.Analyzer.sln /t:clean