acct-user/postgres: Add 'postgres' user (UID 70)
authorAaron W. Swenson <titanofold@gentoo.org>
Sat, 29 Feb 2020 12:17:57 +0000 (07:17 -0500)
committerAaron W. Swenson <titanofold@gentoo.org>
Sat, 29 Feb 2020 12:18:01 +0000 (07:18 -0500)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Aaron W. Swenson <titanofold@gentoo.org>
acct-user/postgres/metadata.xml [new file with mode: 0644]
acct-user/postgres/postgres-0.ebuild [new file with mode: 0644]

diff --git a/acct-user/postgres/metadata.xml b/acct-user/postgres/metadata.xml
new file mode 100644 (file)
index 0000000..d6136db
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="project">
+    <email>pgsql-bugs@gentoo.org</email>
+    <name>PostgreSQL and Related Package Development</name>
+  </maintainer>
+</pkgmetadata>
diff --git a/acct-user/postgres/postgres-0.ebuild b/acct-user/postgres/postgres-0.ebuild
new file mode 100644 (file)
index 0000000..e420798
--- /dev/null
@@ -0,0 +1,15 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit acct-user
+
+DESCRIPTION="PostgreSQL program user"
+ACCT_USER_ID=70
+ACCT_USER_GROUPS=( postgres )
+ACCT_USER_HOME=/var/lib/postgresql
+ACCT_USER_HOME_PERMS=0700
+ACCT_USER_SHELL=/bin/sh
+acct-user_add_deps
+SLOT="0"