Bug 85047

Summary: net-mgmt/cricket install is broken when installing from pkg
Product: Ports & Packages Reporter: Vladimir Kotal <vlada>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Vladimir Kotal 2005-08-17 14:50:14 UTC
      net-mgmt/cricket port creates user and group in do-install phase. However, it passes user/uid, group/gid via enviroment variables which does not work when installing via package.

Fix: 

do not pass user/uid, group/gid from Makefile to pkg-install, but use them in pkg-install directly.
How-To-Repeat: 1. update ports tree
2. cd /usr/ports/net-mgmt/cricket
3. make package
4. make deinstall
5. pkg_add cricket-1.0.5_1.tgz

You will notice that the port attempts to create user/group according to the enviroment variables and not the variables defined in Makefile:

wheel:*:0:root,vladak
You already have a group "wheel", so I will use it.
lada:*:1000:1000::0:0:Vladimir Kotal:/home/vladak:/usr/local/bin/bash
You already have a user "vladak", so I will use it.

Instead, user wwwadm(uid:81) and group www(gid:80) should be created accroding to the port's Makefile.

This behavior produces package which is not usable.
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-08-29 16:10:54 UTC
State Changed
From-To: open->closed

Fixed, thanks!