Subject: Re: creating user before configuration starts
To: Hannes Frederic Sowa <satbran@web.de>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 05/21/2002 19:13:09
--5I6of5zJg18YgZEa
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Tue, May 21, 2002 at 07:52:48PM +0200, Hannes Frederic Sowa wrote:
> I need to create a user before the configuration of the port starts.
> My Makefile:
>=20
> pre-configure:
> ${GROUPADD} vchkpw; \
> ${USERADD} -g vchkpw -d ${VPOPMAILDIR} vpopmail; \
>=20
> There will be also a notfication for that in DEINSTALL and MESSAGE.
>=20
> Would that be acceptable or is there a better method to do that?
check mail/qmail-users and mail/qmail how to do it better way.
> I would like to take a uid and gid below 100. In FreeBSD they use 89 for=
=20
> that. Would that also be possible in NetBSD?
you can specify uid/gid, check mk/bsd.pkg.install.mk for details.
anyway, what's the purpose of having uid below 100? note that 89 can be
reserved in other OS using pkgsrc (Solaris, random Linux distribution, etc.)
regards,
--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org> ASCII Ribbon campaign against /"\=
--
-- <salo@silcnet.org> e-mail in gratuitous HTML and \ /=
--
-- Microsoft proprietary formats X =
--
-- PGPkey: http://Xtrmntr.org/salo.pgp / \=
--
-- Key Fingerprint: DBEC 8BEC 9A90 ECEC 0FEF 716E 59CE B70B 7E3B 70E2 =
--
--5I6of5zJg18YgZEa
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (NetBSD)
iD8DBQE86oAkWc63C347cOIRAh8NAKDq4Nm29pCXGJoEddIbnk6f2sfKtwCgoDj2
Bx5HkAqDVwCkpqkEMuR/KWM=
=pnCy
-----END PGP SIGNATURE-----
--5I6of5zJg18YgZEa--