Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Oct 2010 18:01:46 +0200
From:      David DEMELIER <demelier.david@gmail.com>
To:        freebsd-ports <freebsd-ports@freebsd.org>
Subject:   Users needed or not by ports
Message-ID:  <AANLkTimXPS4xBtx%2B2XJm99eetbwjBvsfC3PrjZSs14XT@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello,

Before writing a patch for the ports framework, I just want to be sure
that FreeBSD ports shouldn't use a same user added by ports. For
example pulseaudio adds some users to the system (pulse,
pulse-whatever) and should these users be needed from others ports ?

My plan is :

1. Register users added and needed by ports in files like +USERS +GROUPS,
2. When make deinstall or pkg_delete port_name check if the user is
still needed by other port (if this is possible)
3. Print a message like "The following users and group are not needed
anymore by the system : xxx yyy"

pkgsrc already use something like this, so a port should be really
easy to be done.

-- 
Demelier David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimXPS4xBtx%2B2XJm99eetbwjBvsfC3PrjZSs14XT>