From nobody@FreeBSD.org  Wed Aug 17 13:41:07 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 06D4E16A438
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 17 Aug 2005 13:41:07 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B75AE43D53
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 17 Aug 2005 13:41:06 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j7HDf5QR026523
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 17 Aug 2005 13:41:05 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j7HDf52M026522;
	Wed, 17 Aug 2005 13:41:05 GMT
	(envelope-from nobody)
Message-Id: <200508171341.j7HDf52M026522@www.freebsd.org>
Date: Wed, 17 Aug 2005 13:41:05 GMT
From: Vladimir Kotal <vlada@devnull.cz>
To: freebsd-gnats-submit@FreeBSD.org
Subject: net-mgmt/cricket install is broken when installing from pkg
X-Send-Pr-Version: www-2.3

>Number:         85047
>Category:       ports
>Synopsis:       net-mgmt/cricket install is broken when installing from pkg
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 17 13:50:14 GMT 2005
>Closed-Date:    Mon Aug 29 15:11:06 GMT 2005
>Last-Modified:  Mon Aug 29 15:11:06 GMT 2005
>Originator:     Vladimir Kotal
>Release:        4.10-RELEASE-p2
>Organization:
>Environment:
FreeBSD worm 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #1: Mon Sep 27 11:53:19 CEST 2004     lada@worm:/usr/src/sys/compile/GENERIC  i386
>Description:
      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.
>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.
>Fix:
      do not pass user/uid, group/gid from Makefile to pkg-install, but use them in pkg-install directly.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: vs 
State-Changed-When: Mon Aug 29 15:10:54 GMT 2005 
State-Changed-Why:  
Fixed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=85047 
>Unformatted:
