From c3a190f94804dae9feef72fea0c69ffd821f0067 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 16 Aug 2017 22:59:45 -0400 Subject: Better document installation; change default prefix=/usr/local Go >= 1.4 is required, because 1.4 introduced os.Unsetenv, which we use. --- Makefile | 2 +- README.md | 19 +++++++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 7a4b797..01b739e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -prefix = / +prefix = /usr/local rootprefix = $(prefix) rootlibexecdir = $(rootprefix)/lib/systemd systemunitdir=$(rootprefix)/lib/systemd/system diff --git a/README.md b/README.md index ebb4993..28d59da 100644 --- a/README.md +++ b/README.md @@ -17,14 +17,21 @@ So, I'm introducing systemd-timesyncd-wait. It is a service that listens for messages from systemd-timesyncd, and block until it sees a message indicating that systemd-timesyncd has synchronized the time. -### Requirements +# Installation - go > 1.4 - make +To compile systemd-timesyncd-wait, you will need the following + - Go >= 1.4 + - GNU Make -### Installation +The only run-time dependencies are systemd (obviously), and the `rm` +program. -Clone the repo and execute: +To install, simply grab a copy of the repo, and run `make install`, +with any configuration options specified as arguments: - make && make install + make prefix=/usr install + +Of course, the desired value `prefix=` depends on your system. Arch +and Parabola users will be most happy with `prefix=/usr`, +Ubuntu Xenial users will want to set `prefix=/`. -- cgit v1.1-4-g5e80