RFC: $USE_[GU]ID for consistent [GU]ID handling
Florent Thoumie
flz at xbsd.org
Tue Dec 9 08:28:46 PST 2008
On Sun, Dec 7, 2008 at 6:32 PM, Hiroki Sato <hrs at 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 at FreeBSD.org
FreeBSD Committer
More information about the freebsd-ports
mailing list