acct-group/chrony: Add user chrony
acct-user/chrony: Add user chrony

BUG=b/181206986
TEST=presubmit and validation
RELEASE_NOTE=None

Change-Id: Iee014c1689662341c61fc942dcca5853bc8a4fcf
Reviewed-on: https://cos-review.googlesource.com/c/third_party/overlays/eclass-overlay/+/13130
Reviewed-by: Robert Kolchmeyer <rkolchmeyer@google.com>
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
diff --git a/acct-group/chrony/chrony-0.0.1.ebuild b/acct-group/chrony/chrony-0.0.1.ebuild
new file mode 100644
index 0000000..bd2139c
--- /dev/null
+++ b/acct-group/chrony/chrony-0.0.1.ebuild
@@ -0,0 +1,15 @@
+# Copyright 2020 The Chromium OS Authors. All rights reserved.
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+SLOT="0"
+KEYWORDS="*"
+
+inherit user
+
+# TODO(crbug/1026816): this is a placeholder (to satisfy Gentoo
+#  openssh dependencies) while acct-{group,user} are implemented.
+pkg_setup() {
+	enewgroup chrony
+}
diff --git a/acct-user/chrony/chrony-0.0.1.ebuild b/acct-user/chrony/chrony-0.0.1.ebuild
new file mode 100644
index 0000000..ee3457b
--- /dev/null
+++ b/acct-user/chrony/chrony-0.0.1.ebuild
@@ -0,0 +1,15 @@
+# Copyright 2020 The Chromium OS Authors. All rights reserved.
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+SLOT="0"
+KEYWORDS="*"
+
+inherit user
+
+# TODO(crbug/1026816): this is a placeholder (to satisfy Gentoo
+#  openssh dependencies) while acct-{group,user} are implemented.
+pkg_setup() {
+	enewuser chrony
+}
diff --git a/profiles/base/accounts/group/chrony b/profiles/base/accounts/group/chrony
new file mode 100644
index 0000000..b43058c
--- /dev/null
+++ b/profiles/base/accounts/group/chrony
@@ -0,0 +1,3 @@
+group:chrony
+gid:300
+users:
diff --git a/profiles/base/accounts/user/chrony b/profiles/base/accounts/user/chrony
new file mode 100644
index 0000000..8099175
--- /dev/null
+++ b/profiles/base/accounts/user/chrony
@@ -0,0 +1,6 @@
+user:chrony
+uid:300
+gid:300
+gecos:chrony daemon
+home:/dev/null
+shell:/bin/false