From owner-freebsd-ports@FreeBSD.ORG Mon Mar 25 03:40:42 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 40C167C9 for ; Mon, 25 Mar 2013 03:40:42 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-ie0-x22c.google.com (mail-ie0-x22c.google.com [IPv6:2607:f8b0:4001:c03::22c]) by mx1.freebsd.org (Postfix) with ESMTP id 17C84733 for ; Mon, 25 Mar 2013 03:40:42 +0000 (UTC) Received: by mail-ie0-f172.google.com with SMTP id c10so6943710ieb.3 for ; Sun, 24 Mar 2013 20:40:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=aNoFiEJbVLTF1XpMKNFHkN6Go4cLqiqoDTMeDypT/7c=; b=VyFKulNlx2a/FaFh3wwYjIVPkDmcQ/QgZBtbfoPEuo/gmGp9RpWgDODlN2LIMOZBT1 46pZ92Z4Rl2rBl41HrHUK6Mun7KbcC4WrbyT1t3Rs2ofsHe/A0Fu269lM9Nf1sdAPsYi 6ou/MxMQHYVNnJmIYV18jV1wbdDSydthbBHgrXS/TW+doXpxnMPH9LXP0GAdzb+LC0I+ MQnktesbMiSKhJsAzzQmdw+wTf8SLLTNoO533+EqGrsxGSVbLxC0rNFtt4GbXImi/Ckl W0IHt6X43WQBvZ22jPhO6kiXIDQMI8cUgoTpld7piLc6G56XJBe5pCmE1STYjF2ztItP xFIQ== MIME-Version: 1.0 X-Received: by 10.50.135.8 with SMTP id po8mr6702144igb.41.1364182841840; Sun, 24 Mar 2013 20:40:41 -0700 (PDT) Received: by 10.50.45.135 with HTTP; Sun, 24 Mar 2013 20:40:41 -0700 (PDT) In-Reply-To: <514FC573.8060806@peterschmitt.fr> References: <1364123355503-5798581.post@n5.nabble.com> <514EF84F.1090208@peterschmitt.fr> <1364126459718-5798594.post@n5.nabble.com> <514FC573.8060806@peterschmitt.fr> Date: Sun, 24 Mar 2013 22:40:41 -0500 Message-ID: Subject: Re: Ports should provide knobs disabling unwanted network services From: Scot Hetzel To: Florent Peterschmitt Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-ports@freebsd.org 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: Mon, 25 Mar 2013 03:40:42 -0000 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 wrote= : >>> I would be very happy to submit a patch, if I actually knew how to writ= e >>> 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: diff -u /path/to/original/port/MyFile /path/to/modified/port/MyFile > /place/to/save/patch/port.diff or if you modifed several files: diff -ruN /path/to/original/port /path/to/modified/port > /place/to/save/patch/port.diff --=20 DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.