@sample won't overwrite existing configs in /etc. Also, the example is just an
example. People should read `man thingsd.conf` if they are confused to change
the NIC interface. I don't know, perhaps the sample is too exhaustive. Also, the
interface can be completely removed to listen on all interfaces. So, I would
prefer the man approach for .conf information without any type of notice.

Also, I believe without @sample, in deinstall, the notice to remove the config
gets lost. I'll be corrected if wrong.

Thanks for your testing.

On Wed, May 08, 2019 at 06:10:34PM +0200, Ampie Niemand wrote:
> Stephen / Tracey; Maybe it just needs a 'notice' after the port
> installation is done.
> 
> I'm just wary of this instruction in the porters manual:
> Note: make sure host-dependent files go in /etc or /etc/<name>, but
> NEVER REPLACE OR MODIFY existing files in /etc. Best to have install
> place them in /usr/local/share/<name> and then copy to /etc or
> /etc/<name> only if the files do not exist. If the files exist,
> display a message that says such-and-such files need to be modified.
> This also guarantees that the files will be included in the package
> since everything under /usr/local is included in the PLIST. To handle
> the copying carefully, the @sample keyword is preferably used within
> the PLIST. After a package has been installed the contents of
> pkg/MESSAGE will be displayed if it exists.
> 
> If I misread this, please let me know. I'm a willing student.
> 
> Tracey,  everything still installs and deinstalls perfectly, Maybe
> also inform the user in the 'notice' to set the listening NIC to the
> driver in use on your system.  For example I had to change re1 to re0.
> But that is best case scenario. For my taste, this is good enough.
> 
> Regard
> - Ampie
> 
> On Wed, 8 May 2019 at 00:50, Stuart Henderson <[email protected]> wrote:
> >
> > On 2019/05/07 20:05, Ampie Niemand wrote:
> > > I did a:
> > > mv /usr/local/share/examples/thingsd/thingsd.conf /etc {I edited the
> > > interface to read re1 to re0}
> >
> > You shouldn't have to do this. The port needs an @sample line.
> >

Reply via email to