From owner-freebsd-ports@FreeBSD.ORG Fri Feb 27 18:35:17 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3B9528FB for ; Fri, 27 Feb 2015 18:35:17 +0000 (UTC) Received: from udns.ultimatedns.net (unknown [IPv6:2602:d1:b4d6:e600:4261:86ff:fef6:aa2a]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 10C933F1 for ; Fri, 27 Feb 2015 18:35:17 +0000 (UTC) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id t1RIa1os048208; Fri, 27 Feb 2015 10:36:01 -0800 (PST) (envelope-from bsd-lists@bsdforge.com) To: FreeBSD Ports ML , Patrick Powell In-Reply-To: <54F09CC7.1000407@astart.com> References: <54F09CC7.1000407@astart.com> From: "Chris H" Subject: Re: Generating port changes easily Date: Fri, 27 Feb 2015 10:36:01 -0800 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: <8a1225bf495b7192cf46ffbfb88d1c79@ultimatedns.net> Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2015 18:35:17 -0000 On Fri, 27 Feb 2015 08:35:19 -0800 Patrick Powell wrote > I have made some modifications to a port - couple of lines in the > Makefile, and an updated pkg-plist. > > Once upon a time I was shown a script (run_this_script?) to help with > updating a port. > > 1. Copy the original files in the port to XXX.orig (or something) > For example cp Makefile Makefile.orig > 2. Make your changes > For example: vi Makefile .... > 3. Now run this script which will generate a DIFF file which can be posted: > run_this_script ... >/tmp/changes.shar ? > run_this_script ... >/tmp/diffs ? > 4. Post the generated file to bugzilla with an update request. > > Ummm... is there such a 'run_this_script' or am I indulging in wishful > thinking? svn(1) is your friend; #check out the currently kisted version of your port: $ svn co --depth empty svn://svn.freebsd.org/ports/head 2015-02-27 $ svn up --set-depth empty 2015-02-27/ $ svn up 2015-02-27// # make your modifications to your port, then... $ cd 2015-02-27/ $ svn diff > 2015-02-27.diff NOTE: if you add, or delete files in the port, you will also need to issue the appropriate command to svn(1) (delete/add) prior to creating the diff. But the real answers lie within the svn man pages. :) Also have a look at diff(1), and patch (1), diff -u -N newfile.orig newfile > patch-pathname-newfile and https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ for even greater depth to these topics. :) HTH --Chris > > -- > Patrick Powell Astart Technologies > papowell@astart.com 1530 Jamacha Rd, Suite X > Network and System San Diego, CA 92019 > Consulting 858-874-6543 FAX 858-751-2435 > Web: www.astart.com > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"