adding new user for a port.
Nikola Lecic
nlecic at EUnet.yu
Mon Aug 27 11:16:21 PDT 2007
On Mon, 27 Aug 2007 17:16:31 +0300
Stefan Lambrev <stefan.lambrev at moneybookers.com> wrote:
> Hello,
>
> I'm trying to make a small port, but want to ask what is the right
> procedure,
> if my port requires a certain user to be on the installed system?
>
> Do I have to use pkg-install/pkg-deinstall for this?
Stefan,
Porter's Handbook, section "UIDs and GIDs":
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/dads-uid-and-gids.html
[...]
If your port requires a certain user to be on the installed system,
let the pkg-install script call pw to create it automatically. Look at
net/cvsup-mirror for an example. Please note that this is strongly
discouraged, please register user/group ID numbers as stated below.
[..]
Read the rest of this section. There is a lot of other ports that can
serve as examples, such as sysutils/hal (see files/pkg-install.in etc.
about the user haldaemon = "HAL Daemon User") or print/cups-base (see
Makefile and commands in pkg-plist about the user cups = "CUPS Owner").
Nikola Lečić
More information about the freebsd-ports
mailing list