These are the commands I use to update the port.
I will give you this email as a tip for speedy updates :)
Post by Rodrigo OsorioPost by Li-Wen HsuI would suggest you start with trying to update the version number in
Makefile, and distinfo file (`make makesum`), then checking if the
patches are still valid. Then build, install and test.
Best,
Li-Wen
Command to check if the patch is still valid
make -C /usr/ports/net-mgmt/cacti/ -D PATCH_DEBUG patch
PATCH_DEBUG is explained in Mk/bsd.port.mk, but not in detail.
Post by Rodrigo OsorioHi,
I open an issue this morning with a patch to upgrade cacti,
and I can confirm that as expected the update wasn't that
easy at least for a first try.
This is the PR link for cacti: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256325
Most of the updates seem to be in pkg-plist, but I use sdiff to update pkg-plist.
textproc/meld, for example, is probably rather famous.
# Generate a new pkg-plist.
make -C /usr/ports/net-mgmt/cacti/ stage
make -C /usr/ports/net-mgmt/cacti/ makeplist > /tmp/pkg-plist
# Merge with sdiff.
sdiff -o /usr/ports/net-mgmt/cacti/pkg-plist.new -a -w 80 -s -d /usr/ports/net-mgmt/cacti/pkg-plist /tmp/pkg-plist
# After merging by l, r, or eb, replace it with a new pkg-plist.
mv /usr/ports/net-mgmt/cacti/pkg-plist.new /usr/ports/net-mgmt/cacti/pkg-plist
Maybe there is a more convenient way, but maybe some people need one example first :)