From owner-freebsd-ports@FreeBSD.ORG Tue Oct 12 15:56:39 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 A05ED106564A for ; Tue, 12 Oct 2010 15:56:39 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2C4F48FC1A for ; Tue, 12 Oct 2010 15:56:38 +0000 (UTC) Received: by bwz16 with SMTP id 16so1717678bwz.13 for ; Tue, 12 Oct 2010 08:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=Bj7wYvdEZyb87GlVWawu7oAWMAlL138oWnwptfQnP+I=; b=EVYO9JzkgCrekcugldCzJjeD4rYsoudsFJnTqrVOV87Kx15rRPbpAc1ya5Ek/W4/jh DGlaCO1VcyVkHKCxPI9DJKRdRQSOKOEmRjx1O8OQgbBLuHRCfmB+D8XPdZCYl1aLGNsw +1/RZZdMEInFZGg5dXQS+VlLWbf+zDAnwivP8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=agAzprUXSWIB/mSjn4hXFbRcHTMbHrn3+DNA+BHXFG5/44XtmwBalxLeqd4Txbx3Pu O7UEwLa+R6nMr0d9V7kiGHrb4t5FIgj8A5xAUB9Y3MJOWPl3xSLR0aOC0OGIf792oB9/ rYgsMXvP0jvmvpir78S7DaPftoFi9SuFQ8RTY= MIME-Version: 1.0 Received: by 10.204.113.200 with SMTP id b8mr4431063bkq.151.1286898994543; Tue, 12 Oct 2010 08:56:34 -0700 (PDT) Received: by 10.204.97.208 with HTTP; Tue, 12 Oct 2010 08:56:34 -0700 (PDT) In-Reply-To: References: Date: Tue, 12 Oct 2010 17:56:34 +0200 Message-ID: From: David DEMELIER To: Florent Thoumie Content-Type: text/plain; charset=UTF-8 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 15:56:39 -0000 2010/10/12 Florent Thoumie : > 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 > Yes, for pkg_install I think I will talk to bapt because he's working on pkgng so maybe he has a great idea and a better knowledge in C, for the moment I made some changes in ports/Mk directory but not finished. I still need to know if a multiple ports could use a same user that has been added by one of them. I don't find any good example for this issue. -- Demelier David