e.g. make fetch
modify source code
make install
later portsnap fetch extract or portsnap fetch update may cover my modification
Is there any mechanism like merge for ports?
I usually have ports tree in git and create my own branch which is periodically rebased to master.
Something like this:
Code:
git clone https://github.com/freebsd/freebsd-ports
mv freebsd-ports /usr/ports
cd /usr/ports
git checkout -b my-branch
...
git pull ; git rebase origin/master
It is nothing fancy, but it works, I am used to git, and no more need for portdowngrade so it's another plus.
Also, as others already said: pkg lock -y <custom package> so it doesn't get replaced with stock one after pkg upgrade.
I would stop using portsnap snap immediately and switch to Subversion or Git retrieval. As recommended use "pkg lock" and put patches into files/. This what I do with several ports for now.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.