databases/postgresql??-server: Properly set login class at start

PR:	275851 (submitted by takeda at takeda.tk)
This commit is contained in:
Palle Girgensohn 2023-12-28 11:20:24 +01:00
parent 956f4c0488
commit 16f2f4c4df
12 changed files with 12 additions and 12 deletions

View file

@ -1,7 +1,7 @@
DISTVERSION?= 11.22
# PORTREVISION must be ?= otherwise, all slave ports get this PORTREVISION and
# not their own. Probably best to keep it at ?=0 when reset here too.
PORTREVISION?= 1
PORTREVISION?= 2
MAINTAINER?= pgsql@FreeBSD.org

View file

@ -104,7 +104,7 @@ command_args="-D ${postgresql_data} ${postgresql_flags}"
postgresql_command()
{
${su_cmd} -l ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}"
${su_cmd} -l -c ${postgresql_login_class} ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}"
}
postgresql_initdb()

View file

@ -1,7 +1,7 @@
DISTVERSION?= 12.17
# PORTREVISION must be ?= otherwise, all slave ports get this PORTREVISION and
# not their own. Probably best to keep it at ?=0 when reset here too.
PORTREVISION?= 1
PORTREVISION?= 2
MAINTAINER?= pgsql@FreeBSD.org

View file

@ -104,7 +104,7 @@ command_args="-D ${postgresql_data} ${postgresql_flags}"
postgresql_command()
{
${su_cmd} -l ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}"
${su_cmd} -l -c ${postgresql_login_class} ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}"
}
postgresql_initdb()

View file

@ -1,7 +1,7 @@
DISTVERSION?= 13.13
# PORTREVISION must be ?= otherwise, all slave ports get this PORTREVISION and
# not their own. Probably best to keep it at ?=0 when reset here too.
PORTREVISION?= 1
PORTREVISION?= 2
MAINTAINER?= pgsql@FreeBSD.org

View file

@ -104,7 +104,7 @@ command_args="-D ${postgresql_data} ${postgresql_flags}"
postgresql_command()
{
${su_cmd} -l ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}"
${su_cmd} -l -c ${postgresql_login_class} ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}"
}
postgresql_initdb()

View file

@ -1,7 +1,7 @@
DISTVERSION?= 14.10
# PORTREVISION must be ?= otherwise, all slave ports get this PORTREVISION and
# not their own. Probably best to keep it at ?=0 when reset here too.
PORTREVISION?= 1
PORTREVISION?= 2
MAINTAINER?= pgsql@FreeBSD.org

View file

@ -104,7 +104,7 @@ command_args="-D ${postgresql_data} ${postgresql_flags}"
postgresql_command()
{
${su_cmd} -l ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}"
${su_cmd} -l -c ${postgresql_login_class} ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}"
}
postgresql_initdb()

View file

@ -1,7 +1,7 @@
DISTVERSION?= 15.5
# PORTREVISION must be ?= otherwise, all slave ports get this PORTREVISION and
# not their own. Probably best to keep it at ?=0 when reset here too.
PORTREVISION?= 1
PORTREVISION?= 2
MAINTAINER?= pgsql@FreeBSD.org

View file

@ -104,7 +104,7 @@ command_args="-D ${postgresql_data} ${postgresql_flags}"
postgresql_command()
{
${su_cmd} -l ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}"
${su_cmd} -l -c ${postgresql_login_class} ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}"
}
postgresql_initdb()

View file

@ -2,7 +2,7 @@ PORTNAME?= postgresql
DISTVERSION?= 16.1
# PORTREVISION must be ?= otherwise, all slave ports get this PORTREVISION and
# not their own. Probably best to keep it at ?=0 when reset here too.
PORTREVISION?= 1
PORTREVISION?= 2
CATEGORIES?= databases
MASTER_SITES= PGSQL/source/v${DISTVERSION}
PKGNAMESUFFIX?= ${PORTVERSION:R}${COMPONENT}

View file

@ -104,7 +104,7 @@ command_args="-D ${postgresql_data} ${postgresql_flags}"
postgresql_command()
{
${su_cmd} -l ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}"
${su_cmd} -l -c ${postgresql_login_class} ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}"
}
postgresql_initdb()