framework for adding/removing port-specific user
kris at obsecurity.org
Sat Jan 21 13:46:31 PST 2006
On Sat, Jan 21, 2006 at 02:46:47PM -0600, Scot Hetzel wrote:
> On 1/21/06, Mikhail Teterin <mi+kde at 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= 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, ...)
In the meantime you can just copy the common code fragments used by
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060121/ce142a55/attachment.bin
More information about the freebsd-ports