commit: 3c1354662cde382fd31bab661134828121b8acc9 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> AuthorDate: Sun Feb 13 22:04:00 2022 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Tue Mar 15 15:43:28 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c135466
eclass/postgres.eclass: migrate to glep-81 Closes: https://github.com/gentoo/gentoo/pull/24185 Closes: https://bugs.gentoo.org/802498 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> eclass/postgres.eclass | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/eclass/postgres.eclass b/eclass/postgres.eclass index 0d7a1aa50f39..cd9f90fc1c31 100644 --- a/eclass/postgres.eclass +++ b/eclass/postgres.eclass @@ -1,7 +1,6 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -inherit user EXPORT_FUNCTIONS pkg_setup # @ECLASS: postgres.eclass @@ -119,32 +118,6 @@ postgres_check_slot() { fi } -# @FUNCTION: postgres_new_user -# @USAGE: [user [(uid|-1) [(shell|-1) [(homedir|-1) [groups]]]]] -# @DESCRIPTION: -# Creates the "postgres" system group and user -- which is separate from -# the database user -- and, optionally, the developer defined user. There -# are no required parameters. -# -# When given a user to create, it'll be created with the next available -# uid, default shell set to /bin/false, default homedir is /dev/null, -# and added to the "postgres" system group. You can use "-1" to skip any -# parameter except user or groups. -postgres_new_user() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - if [[ $# -gt 0 ]] ; then - if [[ "$1" = "postgres" ]] ; then - ewarn "Username 'postgres' implied, skipping" - else - local groups=$5 - [[ -n "${groups}" ]] && groups+=",postgres" || groups="postgres" - enewuser "$1" "${2:--1}" "${3:--1}" "${4:--1}" "${groups}" - fi - fi -} - # @FUNCTION: postgres_pkg_setup # @DESCRIPTION: # Initialize environment variable(s) according to the best