From owner-freebsd-ports@FreeBSD.ORG Thu Feb 25 15:52:01 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 71C6E106566B for ; Thu, 25 Feb 2010 15:52:01 +0000 (UTC) (envelope-from jhelfman@e-e.com) Received: from mail.experts-exchange.com (mail.experts-exchange.com [64.156.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id 5BAA88FC13 for ; Thu, 25 Feb 2010 15:52:01 +0000 (UTC) Received: from eggman.experts-exchange.com (unknown [75.15.155.190]) by mail.experts-exchange.com (Postfix) with ESMTP id 36B714A2E97B; Thu, 25 Feb 2010 07:47:43 -0800 (PST) Received: by eggman.experts-exchange.com (sSMTP sendmail emulation); Thu, _d Feb 2010 07:52:00 -0800 Date: Thu, 25 Feb 2010 07:52:00 -0800 From: Jason To: Dominic Fandrey Message-ID: <20100225155200.GA1833@Jason-Helfmans-MacBook-Pro.local> References: <20100225052506.GA987@Jason-Helfmans-MacBook-Pro.local> <4B8633E5.4070605@bsdforen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <4B8633E5.4070605@bsdforen.de> X-Operating-System: Darwin 10.2.0 X-Living-The-Dream: I love the SLO Life! User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-ports@freebsd.org Subject: Re: make package for ports, general question 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: Thu, 25 Feb 2010 15:52:01 -0000 On Thu, Feb 25, 2010 at 09:25:09AM +0100, Dominic Fandrey thus spake: >On 25/02/2010 06:25, Jason wrote: >> That being said, I ran into an item today that had me perplexed. >> >> Basically, it comes down to this: >> http://www.freebsd.org/doc/en/books/porters-handbook/pkg-install.html >> >> Why is it that "make package" doesn't include the execution instructions >> noted in the Makefile. To me, with my new knowledge of the ports system, >> seems like double the work for development and maintaining a port and >> package. ... > >It's not like that at all. You should only add stuff into the ports >Makefile that installs new files into the system. > This make much more sense now. >Everything else, like creating groups and users, updating an index >and so forth, should only be done in the pkg-install script. > That's unfortunate for the user installation, as you can use the native USERS directive in Makefiles to install users. I've started using local UID and GID files to install users, and it has worked out rather well. I suppose removing the functionality from the Makefile, yet keeping those files up-to-date for reference, is still a good idea. Do: BINMODE SHAREMODE CHOWN CHMOD need to go into a pkg-install file? I saw that there is a "Do & Dont's" on the todo list at wiki.freebsd.org for Ports. Maybe adding some of this information in there would be good. >There is no redundancy. > Thank you for the explanation, Jason >-- >A: Because it fouls the order in which people normally read text. >Q: Why is top-posting such a bad thing? >A: Top-posting. >Q: What is the most annoying thing on usenet and in e-mail? >