portsnap and local patches

Paul Schmehl pauls at utdallas.edu
Wed Mar 14 14:39:38 UTC 2007


--On Tuesday, March 13, 2007 23:26:26 -0700 Nate Eldredge <nge at cs.hmc.edu> 
wrote:

> Hi all,
>
> portsnap is a very nice way to keep your ports tree in sync, but it has
> the disadvantage that it keeps your ports tree in sync :)  If you make
> local changes (e.g. adding a patch) they get clobbered.  Does anyone know
> of a convenient way to keep ports up to date while preserving local
> patches?
>
That's why God made shell scripting???

if [ -f ${port/path/mypatch} ]; then
  cp $mypatch ${port/path/mypatch}
fi

Paul Schmehl (pauls at utdallas.edu)
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


More information about the freebsd-ports mailing list