From owner-freebsd-ports@FreeBSD.ORG Fri Apr 3 13:45:15 2009 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 80FDF1065673 for ; Fri, 3 Apr 2009 13:45:15 +0000 (UTC) (envelope-from kimelto@gmail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id 1280F8FC14 for ; Fri, 3 Apr 2009 13:45:14 +0000 (UTC) (envelope-from kimelto@gmail.com) Received: by ewy19 with SMTP id 19so937304ewy.43 for ; Fri, 03 Apr 2009 06:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=qm3zhAH6Z0Tix8u7KJD6ABZb9nobmBSfn1lPrb2j71g=; b=kah8CQQrrnXyMyXUl1PODcsSDdo2abtYTzcFAWq+XY5lzn4o5SSsFruElLJ2CuVzV/ WmBBo5PPwt8lFk3cP68CbYz2fAsuQfJfoXEP3VPQT3rmJjxytkZ2TLaEHi4DfCrzM0k5 OzIS2ChZ0+A/0iueR1Mo2sKG9KXZ+7Ciy3SG4= 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:content-transfer-encoding; b=frhae9oVqCY8MJVkSeAc+HLwGL9txsUCxzeLolORHSqfgukDM6xrFMDvTPnPmt8gRZ pVCpRs+2pT7mvu3oRU/0sKshiYdWjshUp0bYsEE994c65YL0sB69tX2OKDfQIq+iwhc9 03esMh2/d1aeMWs8/GLEKIjOk+Y58+XZmwHE4= MIME-Version: 1.0 Received: by 10.216.54.194 with SMTP id i44mr407189wec.93.1238764936436; Fri, 03 Apr 2009 06:22:16 -0700 (PDT) In-Reply-To: <20090403134020.7f1d1331@gumby.homeunix.com> References: <200904031212.18475.subbsd@gmail.com> <20090403134020.7f1d1331@gumby.homeunix.com> Date: Fri, 3 Apr 2009 15:22:16 +0200 Message-ID: From: Julien Laffaye To: RW Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: adding 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: Fri, 03 Apr 2009 13:45:15 -0000 On Fri, Apr 3, 2009 at 2:40 PM, RW wrote: > On Fri, 3 Apr 2009 12:12:18 +0400 > subbsd wrote: > > >> My question - why do not make this facility by generic (for example >> create add/del/check-existence procedure in >> some /usr/ports/Mk/bsd.users.mk file) ? > > Presumably because the same functionality has to go into package files, > and work for someone that doesn't have a ports tree installed. That's where the staged installs are interesting. You implement the functionnality into the pkg_tools and the ports tree use them (make package before make install). It will also ensure that all post 'make package' features are supported by the pkg_tools because the ports tree will rely on that. An other solution, less elegant IMHO, is that the *.mk facilities generates the files/pkg-install.in file, which will be executed later by make or the pkg_tools. Well... that's *very* crappy :-)