From owner-freebsd-questions Sat Nov 23 18:25:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E524137B401 for ; Sat, 23 Nov 2002 18:25:10 -0800 (PST) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6006143E4A for ; Sat, 23 Nov 2002 18:25:10 -0800 (PST) (envelope-from paulbeard@mac.com) Received: from mac.com (12-231-115-57.client.attbi.com[12.231.115.57]) by sccrmhc02.attbi.com (sccrmhc02) with SMTP id <2002112402250500200t2u06e>; Sun, 24 Nov 2002 02:25:05 +0000 Message-ID: <3DE0387B.4070201@mac.com> Date: Sat, 23 Nov 2002 18:24:59 -0800 From: paul beard User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2b) Gecko/20021116 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Josh Brooks Cc: freebsd-questions@FreeBSD.ORG Subject: Re: making source code changes to a port ? References: <20021123180213.R46279-100000@mail.econolodgetulsa.com> In-Reply-To: <20021123180213.R46279-100000@mail.econolodgetulsa.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Josh Brooks wrote: > Hi folks, > > I have a piece of software that I want to install via the ports > tree, but > due to a specific custom behavior I want to add to it, I need to > edit a > few lines in one of the source files. > > Right now, I am doing the following: > > cd /usr/ports/category/package > make install > cd work/package-1.2.3/src > (edit file) > cd /usr/ports/category/package > make deinstall > make install > > > and this works, but it is rather unelegant - can't there be a > way to do > this without install/deinstall/install ? > > that is, how can I get the port to download and unpack all the > work into > port/work directory but not actually install anything until I > finish with > the edits, ect? then after that I would go do the `make install`. > > Anyone ? this sounds like a job for patch(1). -- Paul Beard / 8040 27th Ave NE / Seattle WA 98115 / paulbeard [at] mac [ dot] com / 206 529 8400 weblog @ Democracy is the recurrent suspicion that more than half of the people are right more than half of the time. -- E. B. White To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message