I am building mail/mailman from ports. I need to override the default User ID and Group ID for the Mailman user.
mail/mailman automatically assigns USERID=91 to the mailman user, and then sets the GROUPID to the value of the USERID. This conflicts with my environment (another user has already been assigned UID=91 and GID=91). I need to set a different UID for the Mailman user.
I thought I could override this variable using an environment variable, but my environment variable is ignored.
Note how I set MM_USERID in the environment, but make still says "MM_USERID=91".
I also tried adding `MM_USERID=501` to /etc/make.conf, as suggested at http://www.freebsdwiki.net/index.php/Etc/make.conf , but make still sets `MM_USERID=91`.
mail/mailman automatically assigns USERID=91 to the mailman user, and then sets the GROUPID to the value of the USERID. This conflicts with my environment (another user has already been assigned UID=91 and GID=91). I need to set a different UID for the Mailman user.
Code:
[root@host /usr/ports/mail/mailman]# grep USERID Makefile
MM_USERID?= 91
MM_GROUPID?= ${MM_USERID}
@${ECHO} "MM_USERID=91 The user ID of the Mailman user."
@${ECHO} "MM_GROUPID=MM_USERID The group ID for the Mailman user."
I thought I could override this variable using an environment variable, but my environment variable is ignored.
Note how I set MM_USERID in the environment, but make still says "MM_USERID=91".
Code:
[root@host /usr/ports/mail/mailman]# make MM_USERID=501
===> License GPLv2 accepted by the user
===> Found saved configuration for mailman-2.1.14_6
You may change the following build options:
MM_USERNAME=mailman The username of the Mailman user.
MM_USERID=91 The user ID of the Mailman user.
MM_GROUPNAME=mailman The group to which the Mailman user will belong.
MM_GROUPID=MM_USERID The group ID for the Mailman user.
MM_DIR=mailman Mailman will be installed in /usr/local/mailman.
CGI_GID=www The group name or id under which your web server executes CGI scripts.
IMGDIR=www/icons Icon images will be installed in /usr/local/www/icons.
I also tried adding `MM_USERID=501` to /etc/make.conf, as suggested at http://www.freebsdwiki.net/index.php/Etc/make.conf , but make still sets `MM_USERID=91`.