summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <sven.eden@prydeworx.com>2022-06-24 10:39:58 +0200
committerSven Eden <sven.eden@prydeworx.com>2022-06-24 10:39:58 +0200
commita9c6511f07d59d4ba40a831c13bcae6e8617ea4a (patch)
treec39f502c28011660885cb5bc697af718e18d0cc3
parentacct-group/gridcoin: New group for gridcoin daemon (diff)
downloadseden-a9c6511f07d59d4ba40a831c13bcae6e8617ea4a.tar.gz
seden-a9c6511f07d59d4ba40a831c13bcae6e8617ea4a.tar.bz2
seden-a9c6511f07d59d4ba40a831c13bcae6e8617ea4a.zip
acct-user/gridcoin: New user for gridcoin daemon
Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
-rw-r--r--acct-user/gridcoin/gridcoin-0.ebuild23
-rw-r--r--acct-user/gridcoin/metadata.xml11
2 files changed, 34 insertions, 0 deletions
diff --git a/acct-user/gridcoin/gridcoin-0.ebuild b/acct-user/gridcoin/gridcoin-0.ebuild
new file mode 100644
index 0000000..3e63172
--- /dev/null
+++ b/acct-user/gridcoin/gridcoin-0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit acct-user
+
+ACCT_USER_ID=-1
+ACCT_USER_GROUPS=( gridcoin )
+
+DESCRIPTION="user for gridcoin daemon"
+IUSE="boinc"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ boinc? ( acct-user/boinc )
+"
+
+acct-user_add_deps
+
+pkg_setup() {
+ use boinc && ACCT_USER_GROUPS+=( boinc )
+}
diff --git a/acct-user/gridcoin/metadata.xml b/acct-user/gridcoin/metadata.xml
new file mode 100644
index 0000000..9626eb8
--- /dev/null
+++ b/acct-user/gridcoin/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>sven.eden@prydeworx.com</email>
+ <name>Sven Eden</name>
+ </maintainer>
+ <use>
+ <flag name="boinc">Add user to boinc group, too.</flag>
+ </use>
+</pkgmetadata>