Subject: allow sysutils/user for non-NetBSD or custom switches for USERADD
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 10/04/2003 16:07:38
After a minor patch for sendmail, I got it to build for BSD/OS.

BSD/OS provides a adduser and groupadd commands.

     adduser [-dDv] [-c change_time] [-C class] [-e expire_time] [-g
             primary_group] [-G gecos] [-h home_directory_basedir] [-H
             home_directory] [-m home_directory_mode] [-p passwd] [-P
             encrypted_passwd] [-s shell] [-S skeleton_dir] [-u uid]
             [username...]

But mk/install/install has:

                                ${USERADD} -c "${descr}"                \
                                        ${userid_option} ${userid}      \
                                        -g "${group}"                   \
                                        -d "${home}"                    \
                                        -s "${shell}"                   \
                                        "${user}"


Creating user: smmsp
Sendmail Message Submission Program: invalid change time.
...
chown smmsp /var/spool/clientmqueue
chown: smmsp: illegal user name
*** Error code 1


I think it would be good to allow some settings like:
userdescr_option="-c"
userhome_option="-d"

And for BSDOS would use:
userdescr_option="-G"
userhome_option="-H"


Or allow sysutils/user to build (using libnbcompat) for other operating
systems.

Any comments?

(Yes, I know about PKG_CREATE_USERGROUP.)

   Jeremy C. Reed
   http://bsd.reedmedia.net/