USERS/GROUPS in bsd.port.mk [was: FreeBSD Port: postfix-2.8.4, 1]

Miroslav Lachman 000.fbsd at quip.cz
Tue Aug 2 13:09:53 UTC 2011


Sahil Tandon wrote:
> On Tue, 2011-08-02 at 00:04:14 +0200, olli hauer wrote:
>
>> No, you don't hit the limitation. It seems you really found a bug in
>> the Framework!
>>
>>  From the Framework code in bsd.port.mk existing groups should honored.
>
> Along those lines, what about using groupmod instead of usermod?
> Perhaps due to my ignorance, it seems more straightforward and does not
> require much sed-fu; I've attached a (probably incomplete) patch to
> illustrate my thinking.  I understand what I am suggesting could
> introduce other problems, so please do not construe it as an as-is
> suggestion, but rather something to stoke discussion.

I tested your patch and it works for me.

# pkg_version -vIL = | grep postfix
postfix-2.7.2,1    <   needs updating (index has 2.8.4,1)

# id postfix
uid=125(postfix) gid=125(postfix) groups=125(postfix),6(mail),3125(maildirs)

# patch < ~/bsd.port.mk.diff

# portmaster postfix-2.7.2,1

===>>> The following actions were performed:
         Upgrade of mysql-client-5.1.53 to mysql-client-5.1.58
         Upgrade of libtool-2.2.10 to libtool-2.4
         Upgrade of cyrus-sasl-2.1.23_1 to cyrus-sasl-2.1.23_3
         Upgrade of postfix-2.7.2,1 to postfix-2.8.4,1

# id postfix
uid=125(postfix) gid=125(postfix) groups=125(postfix),6(mail),3125(maildirs)

It was tested on really old testing system...

Thank you for your time and working solution.

Miroslav Lachman


More information about the freebsd-ports mailing list