Date: Sat, 21 Jan 2006 16:46:29 -0500 From: Kris Kennaway <kris@obsecurity.org> To: Scot Hetzel <swhetzel@gmail.com> Cc: ports@freebsd.org, Mikhail Teterin <mi+kde@aldan.algebra.com> Subject: Re: framework for adding/removing port-specific user Message-ID: <20060121214629.GA85103@xor.obsecurity.org> In-Reply-To: <790a9fff0601211246l40a5b467pcf04b7635d71ebc0@mail.gmail.com> References: <200601211443.28802@aldan> <790a9fff0601211246l40a5b467pcf04b7635d71ebc0@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 21, 2006 at 02:46:47PM -0600, Scot Hetzel wrote: > 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= want > > 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. >=20 > 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. >=20 > A few of the subroutines allow the pkg-install/deinstall scripts to: >=20 > - add/remove/disable users and groups > - add/remove/disable entries in files (/etc/rc.conf, /etc/inetd.conf, ...) In the meantime you can just copy the common code fragments used by many ports. Kris --17pEHd4RhPHOinZp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD0qu0Wry0BWjoQKURAqMVAJ45P0l4jBliTTOkuYY8jWLYpMncgQCdFWX1 pEXe8MpibsnoGEgoagyNO3o= =gIkV -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060121214629.GA85103>