summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-09-24 09:10:54 +0800
committerGitHub <noreply@github.com>2020-09-23 20:10:54 -0500
commit733a8ee77b975abc356a1e4d46cd9b80a1b9a3d1 (patch)
tree97cb4013bd1c934bb44d5bfba08ab3754ef18164 /var
parent72e03161e42addb8468a3c9a311c970126539709 (diff)
downloadspack-733a8ee77b975abc356a1e4d46cd9b80a1b9a3d1.tar.gz
spack-733a8ee77b975abc356a1e4d46cd9b80a1b9a3d1.tar.bz2
spack-733a8ee77b975abc356a1e4d46cd9b80a1b9a3d1.tar.xz
spack-733a8ee77b975abc356a1e4d46cd9b80a1b9a3d1.zip
Add new package: timedatex (#18823)
* Add new package: timedatex * timedatex: fix flake8 error
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/timedatex/package.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/timedatex/package.py b/var/spack/repos/builtin/packages/timedatex/package.py
new file mode 100644
index 0000000000..5ee5ef9d1c
--- /dev/null
+++ b/var/spack/repos/builtin/packages/timedatex/package.py
@@ -0,0 +1,27 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Timedatex(MakefilePackage):
+ """timedatex is a D-Bus service that implements the
+ org.freedesktop.timedate1 interface. It can be used to
+ read and set the system clock, the real-time clock (RTC),
+ the system timezone, get a list of valid timezones, and
+ enable or disable an NTP client installed on the system.
+ It is a replacement for the systemd-timedated service."""
+
+ homepage = "https://github.com/mlichvar/timedatex"
+ url = "https://github.com/mlichvar/timedatex/archive/v0.6.tar.gz"
+
+ version('0.6', sha256='6e24c015769ee49a92bde3b1f167e25119068a00e377f9e4187a425c262ce964')
+ version('0.5', sha256='bc54960bb9554bb2b34985ba2b8a78480db568c3c6a9d26f2ab34de1bc0aab11')
+ version('0.4', sha256='204285eb03c6cec9ae1c7fdb99e7c996259ec5a918d72bf6bc28564a6f738d4a')
+
+ depends_on('glib')
+
+ def install(self, spec, prefix):
+ make('install', 'prefix={0}'.format(prefix))