From owner-freebsd-ports@FreeBSD.ORG Mon Aug 4 10:10:56 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CAA437B401 for ; Mon, 4 Aug 2003 10:10:56 -0700 (PDT) Received: from haggis.it.ca (haggis.it.ca [216.126.86.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id A229A43F75 for ; Mon, 4 Aug 2003 10:10:55 -0700 (PDT) (envelope-from paul@haggis.it.ca) Received: from haggis.it.ca (paul@localhost [127.0.0.1]) by haggis.it.ca (8.12.9/8.12.9) with ESMTP id h74H9u5X079459; Mon, 4 Aug 2003 13:09:57 -0400 (EDT) (envelope-from paul@haggis.it.ca) Received: (from paul@localhost) by haggis.it.ca (8.12.9/8.12.6/Submit) id h74H9uaL079458; Mon, 4 Aug 2003 13:09:56 -0400 (EDT) (envelope-from paul) Date: Mon, 4 Aug 2003 13:09:56 -0400 From: Paul Chvostek To: Heinrich Rebehn Message-ID: <20030804170956.GA76322@mail.it.ca> References: <3F2E1EAA.5030200@ant.uni-bremen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F2E1EAA.5030200@ant.uni-bremen.de> User-Agent: Mutt/1.4.1i cc: freebsd-ports@freebsd.org Subject: Re: How to apply private patches to port? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-ports@freebsd.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2003 17:10:56 -0000 On Mon, Aug 04, 2003 at 10:51:54AM +0200, Heinrich Rebehn wrote: > > Is there some documentation about how to add private patches/hacks to a > port? > Just add a patch-a{something} to the files directory? I'd recommend against local modification to the ports tree. Remember that if you add patches to the 'files' directory, they will magically disappear the next time you do a `make update` in /usr/ports. You can do a `make patch` in a port's directory, then go into the work directory that's been created and apply your own patches manually. I suspect the best option would be to make YOUR OWN port that includes the patches you want, and maintain it independently from the one in the ports tree. If your patch has widespread appeal, consider submitting it to the Project. Others may have better solutions. ;) > Also, where do i find all the possible options for the 'make' command (not > 'man make', but things line 'CFLAGS=... make install') You're probably looking for the stuff in `man make.conf`, but you should be aware that the /etc/make.conf file only gets used by things that are part of the FreeBSD source or ports. Many of the variables described in /etc/make.conf are widely accepted throughout the industry (CFLAGS, etc) but the real answer to your question is that every Makefile has a set of variables that can be set, and you have to read the Makefile to find out what they are. > Thanks for your help Any time. :) -- Paul Chvostek Operations / Abuse / Whatever it.canada, hosting and development http://www.it.ca/