From owner-freebsd-ports@FreeBSD.ORG Tue Mar 26 08:13:17 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 283501DC for ; Tue, 26 Mar 2013 08:13:17 +0000 (UTC) (envelope-from florent@peterschmitt.fr) Received: from peterschmitt.fr (peterschmitt.fr [5.135.177.31]) by mx1.freebsd.org (Postfix) with ESMTP id B5AA6718 for ; Tue, 26 Mar 2013 08:13:16 +0000 (UTC) Received: from [192.168.0.23] (4ab54-4-88-163-248-31.fbx.proxad.net [88.163.248.31]) by peterschmitt.fr (Postfix) with ESMTPSA id E74794AB80B for ; Tue, 26 Mar 2013 09:13:20 +0100 (CET) Message-ID: <515158B2.2080900@peterschmitt.fr> Date: Tue, 26 Mar 2013 09:13:38 +0100 From: Florent Peterschmitt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130325 Thunderbird/17.0.4 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: Ports should provide knobs disabling unwanted network services References: <1364123355503-5798581.post@n5.nabble.com> <514EF84F.1090208@peterschmitt.fr> <1364126459718-5798594.post@n5.nabble.com> <514FC573.8060806@peterschmitt.fr> In-Reply-To: X-Enigmail-Version: 1.6a1pre Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2IPDLJHSLPSLVEEODIKNH" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Mar 2013 08:13:17 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2IPDLJHSLPSLVEEODIKNH Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Le 25/03/2013 04:40, Scot Hetzel a =E9crit : > On Sun, Mar 24, 2013 at 10:33 PM, Florent Peterschmitt > wrote: >> Le 24/03/2013 17:34, Scot Hetzel a =E9crit : >>> On Sun, Mar 24, 2013 at 7:00 AM, Beeblebrox wr= ote: >>>> I would be very happy to submit a patch, if I actually knew how to w= rite >>>> one... >>>> >>> >>> It is quite simple to create the patch. >>> >>> If you have a working copy checked out with svn, then it would be: >>> >>> cd /usr/ports/[category]/[port] >>> - Make the necessary changes to the port >>> - After testing the port make sure to do a 'make clean' >>> svn diff > port.diff >>> >>> Otherwise make a copy of the port: >>> >>> cd /usr/ports/[catagory] >>> cp port port-orig >>> cd port >>> - Make the necessary changes to port >>> - After testing port make sure to do a 'make clean' >>> cd .. >>> diff -ruN port-orig port > port.diff >>> >>> Then just submit the port.diff in a PR using either send-pr or >>> http://www.freebsd.org/send-pr.html. >>> >> >> Is there a way to manually make a patch that will say : >> >> --- MyFile >> +++ MyFile >> >> Even if these files are in two distinct trees ? >> > There is always a way to do that: >=20 > diff -u /path/to/original/port/MyFile /path/to/modified/port/MyFile > > /place/to/save/patch/port.diff >=20 > or if you modifed several files: >=20 > diff -ruN /path/to/original/port /path/to/modified/port > > /place/to/save/patch/port.diff >=20 Hum yes but what I mean is that we'll have, for example: --- /home/florent-gentoo/patch/old/one 2013-03-24 14:04:20.757200724 +010= 0 +++ /home/florent-gentoo/patch/new/one 2013-03-24 14:04:08.541201548 +010= 0 [=85] And what I want is: --- /home/florent-gentoo/patch/old/one 2013-03-24 14:04:20.757200724 +010= 0 +++ /home/florent-gentoo/patch/old/one 2013-03-24 14:04:08.541201548 +010= 0 [=85] SCM make patches like the second one and I'm no sure it is possible to do without modifying by hand the patch generated. --=20 Florent Peterschmitt +33 (0)6 64 33 97 92 florent@peterschmitt.fr ------enig2IPDLJHSLPSLVEEODIKNH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRUViyAAoJEMtO2Sol0IIm6V8H+gKqkZX38f7pFaEMenTB37FN L5CNMVi0c8mdwT2k058grKIImJgVIJWEJJ77A5ucEZXcOGq911cYI99K8f0pjJdO TSsNgWOaC8pnGYtE8288JyicXLV+4/6MypX0rYGqeD0w/92OQ8rn3QriqLY6ZLZl cdaeaweYsDEtqZcV+TPPgmrZQShNQH9isdNHQkFcfXBDFvsrcMEA3obwIfCtZccM 75J6mc4XU0xTR6aYCfNgtWWLTAEi9XmkCj5BqZvms29QQLn2cfuYwt6L4xOhEKMe k/eBNdIHgE2DZF6OBR8uO/cXiNANGuAAu3YL/w/tLwHhE8K9XulSNBsr/HXhiCc= =UZXq -----END PGP SIGNATURE----- ------enig2IPDLJHSLPSLVEEODIKNH--