Bug 85047 - net-mgmt/cricket install is broken when installing from pkg
Summary: net-mgmt/cricket install is broken when installing from pkg
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-17 14:50 UTC by Vladimir Kotal
Modified: 2005-08-29 16:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!