[MacPorts] #67727: zeek, zeek-devel @6.0.0: Image error: /opt/local/etc/zeek/networks.cfg already exists and does not belong to a registered port
MacPorts
noreply at macports.org
Wed Aug 23 20:45:24 UTC 2023
#67727: zeek, zeek-devel @6.0.0: Image error: /opt/local/etc/zeek/networks.cfg
already exists and does not belong to a registered port
-------------------------------+-------------------------
Reporter: ryandesign | Owner: Schamschula
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: zeek, zeek-devel |
-------------------------------+-------------------------
Comment (by ryandesign):
Well you can see in the post-activate block removed by
[aad2bf728fc23c9c07d2a5a736e2f4b4915cd667/macports-ports] how the files
previously got there. And now the port wants to claim those files as its
own, which conflicts with the previous unclaimed files.
Is the user still expected to edit these files (node.cfg, networks.cfg,
zeekctl.cfg)? If yes, the port should not own the files; it should install
sample config files and copy them to the non-sample names if they don't
already exist (in other words, reinstate the deleted post-activate block;
see wiki:PortfileRecipes#configfiles).
If the user is not expected to edit these files anymore, then all you need
is a pre-activate block to delete the old unregistered files.
--
Ticket URL: <https://trac.macports.org/ticket/67727#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list