1

Topic: Package build options on FreeBSD

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): Unreleased 1.3.2 from Github
- Deployed with iRedMail Easy or the downloadable installer? Download from Github
- Linux/BSD distribution name and version: FreeBSD 12.1-RELEASE-p10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL 12.x
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Suggestions:

- Amavis: UNSET DOCS
Turns out `Docs` here is related to the package documentation, and Not some check on `.doc(x)` file. This can be turned OFF as all others.

    # Amavisd-new. REQUIRED.
    cat > /var/db/ports/security_amavisd-new/options <<EOF
. . .
# FROM:
OPTIONS_FILE_SET+=DOCS
# TO:
OPTIONS_FILE_UNSET+=DOCS

- Nginx: UNSET DEBUGLOG
Configure DEBUGLOG the same as DEBUG.

    # Nginx
    cat > /var/db/ports/www_nginx/options <<EOF
. . .
# FROM:
OPTIONS_FILE_SET+=DEBUGLOG
# TO:
OPTIONS_FILE_UNSET+=DEBUGLOG

2

Re: Package build options on FreeBSD

- I added "OPTIONS_FILE_UNSET+=DOCS" to all ports (listed in functions/packages_freebsd.sh), but not all other dependent ports.
- Nginx "DEBUGLOG" option must be enabled. It's very useful if you need to debug nginx configuration (with the global parameter "error_log /var/log/... debug").

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee