Subject: Re: Support adding admin users/groups via defs.${OPSYS}.mk
To: Juan RP <juan@xtraeme.unixbsd.org>
From: Michal Pasternak <michal@pasternak.w.lub.pl>
List: tech-pkg
Date: 01/11/2004 07:48:38
Juan RP [Sun, Jan 11, 2004 at 05:08:27AM +0100]:
> I would like to commit this patch, and modify all defs.${OPSYS}.mk files, with
> that change all platforms should be able to create users/groups when
> using PKG_{USERS,GROUPS}.
> 
> This patch changes defs.FreeBSD.mk, which was my test system.
> 
> Comments?

For some other operating system, order can be important here:

> +				${USERADD} \
> +					${USERADD_DESCR_ARG} "${descr}"		\
>  					${userid_option} ${userid}	\
> +					${USERADD_GROUPID_ARG} "${group}"	\
> +					${USERADD_HOME_ARG} "${home}"		\
> +					${USERADD_SHELL_ARG} "${shell}"		\
> +					${USERADD_NAME_ARG} "${user}"

If you can get order of USERADD parameters customizeable, then it would be
ideal.


-- 
Michal Pasternak :: http://pasternak.w.lub.pl :: http://winsrc.sf.net
::don't use MySQL::details on http://sql-info.de/mysql/gotchas.html::