View Full Version : How to keep ports modifications
February 3rd, 2009, 13:37
I did some modifications on one of the ports, but each time i'm rebuilding after an update, it is rebuilded and i'm loosing the modifications.
I there any way i can keep my modifications ?
I'm using csup and portupgrade.
February 3rd, 2009, 18:00
As far as I know, csup compares the FreeBSD ports repository with your local and does the sync. So it's pretty obvious you loose your stuff. The sync can be omitted with a .cvsignore in the directory (check the one in /usr/ports/.cvsignore, it contains 'packages' and 'distfiles').
February 3rd, 2009, 20:34
It seems csup just sync some packages definitions.
When building, the distfiles are downloaded (if needed), unpacked, patched, builded and then the source tree is removed when the port is cleaned.
I'm gonna try to modify the package definition to add my patch. If possible, then it should be merged by csup when updating.
Actually it's easy as creating a 'files' directory and putting patches inside :D
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.