Date: Sat, 21 Jan 2006 14:46:47 -0600 From: Scot Hetzel <swhetzel@gmail.com> To: Mikhail Teterin <mi+kde@aldan.algebra.com> Cc: ports@freebsd.org Subject: Re: framework for adding/removing port-specific user Message-ID: <790a9fff0601211246l40a5b467pcf04b7635d71ebc0@mail.gmail.com> In-Reply-To: <200601211443.28802@aldan> References: <200601211443.28802@aldan>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1/21/06, Mikhail Teterin <mi+kde@aldan.algebra.com> wrote: > Hello! > > Is there any framework in development to add port- and package-specific > users/groups to the system? > > I think, I need a special user for a new port I'm working on, and don't w= ant > to reinvent the wheel... > > If not, any takers? So that a port can just declare > > CUSTOM_USER=3D user:group > > (or any part thereof) and have the neccessary spells cast for it? > The problem is that we can't do it in Mk/bsd.port.mk as the user will need to be created when a package is installed. I was working on a pkg_subr port (similar to rc_subr), that would allow a package to use common sub routines used by ports. A few of the subroutines allow the pkg-install/deinstall scripts to: - add/remove/disable users and groups - add/remove/disable entries in files (/etc/rc.conf, /etc/inetd.conf, ...) Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0601211246l40a5b467pcf04b7635d71ebc0>