Date: Tue, 24 Jul 2012 12:20:55 +0200 From: kron <kron24@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: Locally modifying ports Message-ID: <500E7707.8020801@gmail.com> In-Reply-To: <20120724121400.55b96aee@fabiankeil.de> References: <24DFC78A-422A-4831-9B74-E762C9245DCD@distal.com> <20120724121400.55b96aee@fabiankeil.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2012/07/24 12:14, Fabian Keil wrote: > Chris Ross <cross+freebsd@distal.com> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?500E7707.8020801>