Re: Cacti 1.2.17
- In reply to: Rodrigo Osorio : "Re: Cacti 1.2.17"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 01 Jun 2021 22:45:06 UTC
These are the commands I use to update the port. I will give you this email as a tip for speedy updates :) Rodrigo Osorio wrote on 2021/06/01 21:00: > On 6/1/21 11:06 AM, Li-Wen Hsu wrote: >> I 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. > Hi, > > 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 :)