From owner-freebsd-questions@FreeBSD.ORG Tue Jul 24 10:21:03 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 553ED106566B for ; Tue, 24 Jul 2012 10:21:03 +0000 (UTC) (envelope-from kron24@gmail.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id C14C78FC0C for ; Tue, 24 Jul 2012 10:21:02 +0000 (UTC) Received: by laai10 with SMTP id i10so903882laa.13 for ; Tue, 24 Jul 2012 03:21:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=HoDW0N1er5DS4P7OTsAUu3kQDdBwjrWc9xFvYL28Q+c=; b=XjppFhInnr3vLdqPkQt7+aE8zmcWkEpBmrjm0I5H3XjRnJuQuPsr/l5trw7wMUcA0U CjoaJk332WYvEd3F/vQwVj0FWiQ5vCBvWV8jJNw2nyBOgb6KHamdilZsJGq7iTJdLbYs bZGesMDzFcFL5rDXnSFDPqotlav81knUE7UzTHHgoAopJeP2K9OXTr7yPkOz+lB+LqVL CmlXD9zgRnUhmIShUL8fqcgTrB8XqpnKKpTqqnnG//L/un17cjR4fwEyUm6w5uH8rMTd AbaAycbyS5aG+qmpUHn9+ZSM6TpLpMHbMCUpHzHNaAbhWYjmomOCZAVJ0zujIcOtwsVC N+CQ== Received: by 10.152.131.9 with SMTP id oi9mr20700554lab.39.1343125261495; Tue, 24 Jul 2012 03:21:01 -0700 (PDT) Received: from nbvk.local (uidzr185150.sattnet.cz. [212.96.185.150]) by mx.google.com with ESMTPS id sm7sm16176479lab.5.2012.07.24.03.20.57 (version=SSLv3 cipher=OTHER); Tue, 24 Jul 2012 03:21:00 -0700 (PDT) Message-ID: <500E7707.8020801@gmail.com> Date: Tue, 24 Jul 2012 12:20:55 +0200 From: kron User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120620 Thunderbird/13.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <24DFC78A-422A-4831-9B74-E762C9245DCD@distal.com> <20120724121400.55b96aee@fabiankeil.de> In-Reply-To: <20120724121400.55b96aee@fabiankeil.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Locally modifying ports 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: Tue, 24 Jul 2012 10:21:03 -0000 On 2012/07/24 12:14, Fabian Keil wrote: > Chris Ross wrote: > >> So, I've been a NetBSD user for many years, and am looking more >> at FreeBSD now. Trying to build myself a system, I find that I have a >> long-held delta to a package on my NetBSD system, and I keep it >> in a patch-local-* file in NetBSD pkgsrc. >> >> I can't figure out if FreeBSD ports has a way to keep and automatically >> apply "local" patches to ports. I want to modify the way the internals of >> a package/port operate, and not in a way that makes sense to move up- >> stream. It's just my preference. >> >> Is there a way in FreeBSD ports to keep a "make this change to the >> source code after extracting and before compiling" type of thing in the >> tree? > > I'm not aware of something similar to pkgsrc's $LOCALPATCHES, but you > can still drop local patches in the "files" directory of the port: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/slow-patch.html > > Fabian > I use in /etc/make.conf: ... .if ${.CURDIR:M*/ports/x11-wm/openbox} EXTRA_PATCHES+=/home/ok/patches/openbox/patch-VK-NULL_SELF_TITLE.diff EXTRA_PATCHES+=/home/ok/patches/openbox/patch-VK-SPEED_FOCUS.diff .endif ... HTH O.K.