From owner-freebsd-ports@FreeBSD.ORG Tue Oct 12 09:01:35 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2E7D1065672 for ; Tue, 12 Oct 2010 09:01:35 +0000 (UTC) (envelope-from florent.thoumie@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 8DBAA8FC1B for ; Tue, 12 Oct 2010 09:01:35 +0000 (UTC) Received: by qyk30 with SMTP id 30so497217qyk.13 for ; Tue, 12 Oct 2010 02:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type; bh=/C9qFBc9U599MdjgKT2irRyOAfKV8o6PyjsFzUUGqcA=; b=UrZ4fmN1du7ELlxpFaaLEWzLYXqlFNT3vQAVn6z5tgJh3A7kx4ykj/qpWObclvFCgl M+Wbz9PJrH3VLObmvmlo7/V1jrtzsE4yLztmjTlJ9tjphzCb345RmSLtvJMKDr+/+Sh4 DuJiRlluZK+V66AbOCEMa7c9QgStdLrcuAC44= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=S5WuqqxP7ZREeLcKc5HmS5ZCLDnsW+1OxAP9SrFpSRvOguRiiZq1ZDHlikAdju2zuO 5MojK2CGkhUN5dNv1Ln0X0P53A35cBq3S/5pQYq8x3oF93qCJmte7NElJKWTtDHdTZlM SQg9c9g1K2ueEIp6yL0CXCUbyvqp7enkkQi4U= Received: by 10.224.37.14 with SMTP id v14mr2767722qad.383.1286872512007; Tue, 12 Oct 2010 01:35:12 -0700 (PDT) MIME-Version: 1.0 Sender: florent.thoumie@gmail.com Received: by 10.229.85.148 with HTTP; Tue, 12 Oct 2010 01:34:51 -0700 (PDT) In-Reply-To: References: From: Florent Thoumie Date: Tue, 12 Oct 2010 09:34:51 +0100 X-Google-Sender-Auth: eJcQV4z9F3wKqEZXxVV7VuQah1E Message-ID: To: David DEMELIER Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-ports Subject: Re: Users needed or not by 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: Tue, 12 Oct 2010 09:01:36 -0000 On Mon, Oct 11, 2010 at 5:01 PM, David DEMELIER wrote: > Hello, > > Before writing a patch for the ports framework, I just want to be sure > that FreeBSD ports shouldn't use a same user added by ports. For > example pulseaudio adds some users to the system (pulse, > pulse-whatever) and should these users be needed from others ports ? > > My plan is : > > 1. Register users added and needed by ports in files like +USERS +GROUPS, > 2. When make deinstall or pkg_delete port_name check if the user is > still needed by other port (if this is possible) > 3. Print a message like "The following users and group are not needed > anymore by the system : xxx yyy" > > pkgsrc already use something like this, so a port should be really > easy to be done. This has already been discussed (including in a thread that you started [1]). This needs support in both ports and pkg_install. [1] http://www.mail-archive.com/freebsd-ports@freebsd.org/msg27486.html -- Florent Thoumie flz@FreeBSD.org FreeBSD Committer