From owner-freebsd-ports@FreeBSD.ORG Wed Dec 7 19:54:39 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 200F71065670 for ; Wed, 7 Dec 2011 19:54:39 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id E6D028FC0A for ; Wed, 7 Dec 2011 19:54:38 +0000 (UTC) Received: by iafi7 with SMTP id i7so2266836iaf.13 for ; Wed, 07 Dec 2011 11:54:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=CPVlMR8QBhKiWBFjpVH6oraZS+DDP4qzusAsxpU0rvk=; b=P9XJJizT72t5tSR39YUgXoudR8YDtuSIVAcQqK8cdyDA5vS9XtVYyl8HDNOhfyEuw/ ANFXsc4ok+ok1toXLwHx5NTcMOsxi9Axfzyha7ulBoLAY2KSn/zTM9+YWK167KJNydrf F34MtxmUw3rK6HVwZyigEShdUZrE2wz0z3gT8= Received: by 10.42.154.7 with SMTP id o7mr230508icw.48.1323287678318; Wed, 07 Dec 2011 11:54:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.167.83 with HTTP; Wed, 7 Dec 2011 11:54:07 -0800 (PST) From: Chris Rees Date: Wed, 7 Dec 2011 19:54:07 +0000 Message-ID: To: ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Creation of users in ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2011 19:54:39 -0000 Hi all, I'm at a loss as to how to restore functionality for creating (or using) customised users in ports. For example, using the old method (pkg-install scripts) many ports allowed the user to change the username used for the port. With the new functionality, if the username isn't found in /usr/ports/UIDs it's rejected, and the port can't use it. Can anyone explain to me why it would be a bad idea to include the system's passwd and group files in the search? This would allow the ports system to accept any user that already exists, as well as creating the correct code in the plist. For example; someone wants to install postgresql as username Fred, so s/he sets PG_USER=Fred in /etc/make.conf. Currently this causes an error on build, because Fred is not in /usr/ports/UIDs. Were /etc/master.passwd and /etc/group searched too, that wouldn't cause a problem. Any obvious oversights? Chris http://www.bayofrum.net/~crees/patches/bsd.port.mk-allow-existing-users.diff.txt