From owner-freebsd-questions@FreeBSD.ORG Fri Sep 3 12:53:18 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C533F10656C3 for ; Fri, 3 Sep 2010 12:53:18 +0000 (UTC) (envelope-from ltsampros@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 77AB68FC13 for ; Fri, 3 Sep 2010 12:53:18 +0000 (UTC) Received: by yxn35 with SMTP id 35so767314yxn.13 for ; Fri, 03 Sep 2010 05:53:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:from:to:cc :subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; bh=kTKVuljLTX279BwB8dvnswJ9g6g/TvZrgJU9tuBuVJI=; b=cpfJu6ItpRiIHnJOgIwMu7ZuJPV04R3eBerQMtafUYsxhWVILa1oVpi0HspbKvPPlS GmKLODsrevk0dZslTDW/1UXE4cPOCqhZWfCn2Up8EYVfLf0FkePt583ayoGH93z2GV3o X2pkJigBsjiJ4CzHIMSN8vTj7sVph8L4ZCM9k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; b=ZkUDh/2gRhUkyJOz9BAA63CGPTUC5BqWvIbScWYbS1K9ftBUtorpQ63th9Cy2QGlcP W/AP7kTPrxNPfl8gajh4VN4m97IK+PhRKGWuuURCNAbtgDl8Mw8o6yG+5Vxd3cC6AuXW AZb45tHZdyeWeuHA38gnYklwH23D+GNQ2nSQQ= Received: by 10.100.6.2 with SMTP id 2mr859868anf.39.1283516702936; Fri, 03 Sep 2010 05:25:02 -0700 (PDT) Received: from ltsampros-laptop (vader.bytemobile-rio.ondsl.gr [83.235.57.37]) by mx.google.com with ESMTPS id a33sm688752vco.41.2010.09.03.05.24.52 (version=SSLv3 cipher=RC4-MD5); Fri, 03 Sep 2010 05:25:02 -0700 (PDT) Sender: Leonidas Tsampros Received: from ltsampros-laptop (localhost [127.0.0.1]) by ltsampros-laptop (Postfix) with ESMTP id CCA5940383; Fri, 3 Sep 2010 15:20:40 +0300 (EEST) From: Leonidas Tsampros To: bsd In-Reply-To: <4AB42548-002B-41A5-8603-638CF97DC7E9@todoo.biz> (bsd@todoo.biz's message of "Fri, 3 Sep 2010 09:53:19 +0200") References: <4AB42548-002B-41A5-8603-638CF97DC7E9@todoo.biz> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Date: Fri, 03 Sep 2010 15:20:31 +0300 Message-ID: <8762ynxblc.fsf@ltsampros-laptop.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Fri, 03 Sep 2010 13:26:09 +0000 Cc: Liste FreeBSD Subject: Re: Applying a patch to a port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2010 12:53:18 -0000 bsd writes: > Hello, > > I have a patch for clamav that was submited by a developer of clamav. > I don't know how to apply It to the source code of the port. > > What I would like to do: > > 1. Get the source code > 2. cd to the source directory > 3. Apply the patch > 4. Recompile > 5. Test Hi, as a starting point you could follow this procedure: a) cd /usr/ports/security/clamav b) make extract c) cd work/clamav-whatever-version d) patch -p0 < the.patch.file.provided.by.the.clamav.developer.diff e) cd ../.. f) make install (as usual) Hope this helps. Best Regards Leonidas Tsampros