* [gentoo-dev] [PATCH 1/2] acct-group/minecraft: New group for games-server/minecraft-server
@ 2019-08-04 18:07 Conrad Kostecki
2019-08-04 18:07 ` [gentoo-dev] [PATCH 2/2] acct-user/minecraft: New user " Conrad Kostecki
0 siblings, 1 reply; 4+ messages in thread
From: Conrad Kostecki @ 2019-08-04 18:07 UTC (permalink / raw
To: gentoo-dev
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Conrad Kostecki <conrad@kostecki.com>
---
acct-group/minecraft/metadata.xml | 12 ++++++++++++
acct-group/minecraft/minecraft-0.ebuild | 10 ++++++++++
2 files changed, 22 insertions(+)
create mode 100644 acct-group/minecraft/metadata.xml
create mode 100644 acct-group/minecraft/minecraft-0.ebuild
diff --git a/acct-group/minecraft/metadata.xml b/acct-group/minecraft/metadata.xml
new file mode 100644
index 00000000000..54d5423c406
--- /dev/null
+++ b/acct-group/minecraft/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ck+gentoo@bl4ckb0x.de</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/acct-group/minecraft/minecraft-0.ebuild b/acct-group/minecraft/minecraft-0.ebuild
new file mode 100644
index 00000000000..4b075b5967f
--- /dev/null
+++ b/acct-group/minecraft/minecraft-0.ebuild
@@ -0,0 +1,10 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit acct-group
+
+DESCRIPTION="A group for the Minecraft server"
+
+ACCT_GROUP_ID="490"
--
2.22.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-dev] [PATCH 2/2] acct-user/minecraft: New user for games-server/minecraft-server
2019-08-04 18:07 [gentoo-dev] [PATCH 1/2] acct-group/minecraft: New group for games-server/minecraft-server Conrad Kostecki
@ 2019-08-04 18:07 ` Conrad Kostecki
2019-08-04 18:54 ` Michael Orlitzky
0 siblings, 1 reply; 4+ messages in thread
From: Conrad Kostecki @ 2019-08-04 18:07 UTC (permalink / raw
To: gentoo-dev
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Conrad Kostecki <conrad@kostecki.com>
---
acct-user/minecraft/metadata.xml | 12 ++++++++++++
acct-user/minecraft/minecraft-0.ebuild | 15 +++++++++++++++
2 files changed, 27 insertions(+)
create mode 100644 acct-user/minecraft/metadata.xml
create mode 100644 acct-user/minecraft/minecraft-0.ebuild
diff --git a/acct-user/minecraft/metadata.xml b/acct-user/minecraft/metadata.xml
new file mode 100644
index 00000000000..54d5423c406
--- /dev/null
+++ b/acct-user/minecraft/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ck+gentoo@bl4ckb0x.de</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/acct-user/minecraft/minecraft-0.ebuild b/acct-user/minecraft/minecraft-0.ebuild
new file mode 100644
index 00000000000..0f8f6295f52
--- /dev/null
+++ b/acct-user/minecraft/minecraft-0.ebuild
@@ -0,0 +1,15 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit acct-user
+
+DESCRIPTION="A user for the Minecraft server"
+
+ACCT_USER_GROUPS=( "minecraft" )
+ACCT_USER_HOME="/var/lib/minecraft-server"
+ACCT_USER_HOME_OWNER="minecraft:minecraft"
+ACCT_USER_ID="490"
+
+acct-user_add_deps
--
2.22.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] [PATCH 2/2] acct-user/minecraft: New user for games-server/minecraft-server
2019-08-04 18:07 ` [gentoo-dev] [PATCH 2/2] acct-user/minecraft: New user " Conrad Kostecki
@ 2019-08-04 18:54 ` Michael Orlitzky
2019-08-04 19:40 ` Re[2]: " Conrad Kostecki
0 siblings, 1 reply; 4+ messages in thread
From: Michael Orlitzky @ 2019-08-04 18:54 UTC (permalink / raw
To: gentoo-dev
On 8/4/19 2:07 PM, Conrad Kostecki wrote:
> +
> +ACCT_USER_GROUPS=( "minecraft" )
> +ACCT_USER_HOME="/var/lib/minecraft-server"
> +ACCT_USER_HOME_OWNER="minecraft:minecraft"
You don't have to set ACCT_USER_HOME_OWNER here. That ownership is the
common case, so the eclass will do the right thing for you and set it by
default. From acct-user.eclass:
if [[ ${ACCT_USER_HOME} != /dev/null ]]; then
# default ownership to user:group
if [[ -z ${ACCT_USER_HOME_OWNER} ]]; then
ACCT_USER_HOME_OWNER=${ACCT_USER_NAME}:${ACCT_USER_GROUPS[0]}
fi
fowners "${ACCT_USER_HOME_OWNER}" "${ACCT_USER_HOME}"
fperms "${ACCT_USER_HOME_PERMS}" "${ACCT_USER_HOME}"
fi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re[2]: [gentoo-dev] [PATCH 2/2] acct-user/minecraft: New user for games-server/minecraft-server
2019-08-04 18:54 ` Michael Orlitzky
@ 2019-08-04 19:40 ` Conrad Kostecki
0 siblings, 0 replies; 4+ messages in thread
From: Conrad Kostecki @ 2019-08-04 19:40 UTC (permalink / raw
To: gentoo-dev
Am 04.08.2019 20:54:07, "Michael Orlitzky" <mjo@gentoo.org> schrieb:
>On 8/4/19 2:07 PM, Conrad Kostecki wrote:
>You don't have to set ACCT_USER_HOME_OWNER here. That ownership is the
>common case, so the eclass will do the right thing for you and set it by
>default. From acct-user.eclass:
>
> if [[ ${ACCT_USER_HOME} != /dev/null ]]; then
> # default ownership to user:group
> if [[ -z ${ACCT_USER_HOME_OWNER} ]]; then
> ACCT_USER_HOME_OWNER=${ACCT_USER_NAME}:${ACCT_USER_GROUPS[0]}
> fi
> fowners "${ACCT_USER_HOME_OWNER}" "${ACCT_USER_HOME}"
> fperms "${ACCT_USER_HOME_PERMS}" "${ACCT_USER_HOME}"
> fi
>
Thanks! Updated.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-08-04 19:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-04 18:07 [gentoo-dev] [PATCH 1/2] acct-group/minecraft: New group for games-server/minecraft-server Conrad Kostecki
2019-08-04 18:07 ` [gentoo-dev] [PATCH 2/2] acct-user/minecraft: New user " Conrad Kostecki
2019-08-04 18:54 ` Michael Orlitzky
2019-08-04 19:40 ` Re[2]: " Conrad Kostecki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox