Date: Tue, 9 Dec 2008 16:06:19 +0000 From: "Florent Thoumie" <flz@xbsd.org> To: "Hiroki Sato" <hrs@freebsd.org> Cc: ports@freebsd.org Subject: Re: RFC: $USE_[GU]ID for consistent [GU]ID handling Message-ID: <a01628140812090806vb4395efo5157bad92eae19e4@mail.gmail.com> In-Reply-To: <20081208.033250.137441016.hrs@allbsd.org> References: <20081208.033250.137441016.hrs@allbsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 7, 2008 at 6:32 PM, Hiroki Sato <hrs@freebsd.org> wrote: > Hello, > > I would like your comments about the attached patch. This is for > adding USE_UID and USE_GID which allow uid/gid addition on > installation and the removal on deinstallation. It uses > ${PORTSDIR}/[GU]IDs for the detail information and can eliminate > complex shell scripts from individual ports. > > For example, if you define > > USE_UID= foo > > in Makefile, the uid "foo" is added before pre-su-install, and > removed on deinstallation by using pw(8). If the uid already exists, > no error occurred. The multiple uids are also allowed. > > The attached patch includes an example of rewrite of an existing > ports (japanese/sj3-server). After investigating ~300 ports in the > ports tree which add uid/gid I think the attached implementation can > cover most of the use case, but there may be something I missed. > Comments are welcome. Hi Hiroki-san, There's an open PR with patches for this feature (ports/108514). Could you have a look and maybe send your comments? -- Florent Thoumie flz@FreeBSD.org FreeBSD Committer
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a01628140812090806vb4395efo5157bad92eae19e4>