summaryrefslogtreecommitdiff
path: root/sntpc
diff options
context:
space:
mode:
Diffstat (limited to 'sntpc')
-rw-r--r--sntpc/.patch0
-rw-r--r--sntpc/Makefile6
-rw-r--r--sntpc/sntpc.service9
3 files changed, 15 insertions, 0 deletions
diff --git a/sntpc/.patch b/sntpc/.patch
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/sntpc/.patch
diff --git a/sntpc/Makefile b/sntpc/Makefile
new file mode 100644
index 0000000..2b8472d
--- /dev/null
+++ b/sntpc/Makefile
@@ -0,0 +1,6 @@
+url = https://dev.alpinelinux.org/archive/sntpc/sntpc-0.9.tar.xz
+configure_cmd = :
+inflate_cmd = xz -cd
+install_cmd = :
+
+include ../build.mk
diff --git a/sntpc/sntpc.service b/sntpc/sntpc.service
new file mode 100644
index 0000000..3c99322
--- /dev/null
+++ b/sntpc/sntpc.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=A simple NTP client for VMs
+
+[Service]
+Type=simple
+ExecStart=/usr/local/bin/sntpc -i 30 pool.ntp.org
+
+[Install]
+WantedBy=multi-user.target