[Bug 272066] sysutils/scanbd: fix port tool warnings and make sure the scanbd.conf file is a sample

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 25 Jun 2023 15:31:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272066

Robert Clausecker <fuz@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fuz@FreeBSD.org,
                   |                            |trueos@norwegianrockcat.com
              Flags|                            |maintainer-feedback?(trueos
                   |                            |@norwegianrockcat.com)
           Assignee|ports-bugs@FreeBSD.org      |fuz@FreeBSD.org

--- Comment #1 from Robert Clausecker <fuz@FreeBSD.org> ---
In scanbd.conf, you should dynamically patch in the correct PREFIX.  We support
compiling packages for a different PREFIX than /usr/local.  For example, you
could have a static patch that just puts %%PREFIX%% into the file, then a
pre-configure target that does something like

    ${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' .../scanbd.conf

to patch in the right PREFIX.

There is a trailing space in scanbd.in.

I'm not very comfortable with you pointing the default configuration to the
examples directory.   This directory is meant for examples, not configuration
that can be hotwired into the tool.  Also, examples can be omitted if the port
is built without the EXAMPLES option.  I'm not sure what a better solution
would be.

Shall I commit the patch anyway?  You can fix these things in a future update.

-- 
You are receiving this mail because:
You are the assignee for the bug.