Changeset 69e86505


Ignore:
Timestamp:
03/09/2024 06:23:13 PM (7 weeks ago)
Author:
Thomas Trepl <thomas@…>
Branches:
ken/TL2024, trunk
Children:
469426fe
Parents:
c6514f57
Message:

Upgrade postfix-3.9.0

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • introduction/welcome/changelog.xml

    rc6514f57 r69e86505  
    4343      <itemizedlist>
    4444        <listitem>
     45          <para>[thomas] - Upgrade to postfix-3.9.0. Fixes
     46          <ulink url="&blfs-ticket-root;19436">#19436</ulink>.</para>
     47        </listitem>
     48        <listitem>
    4549          <para>[thomas] - Upgrade to libxfce4ui-4.18.6. Fixes
    4650          <ulink url="&blfs-ticket-root;19436">#19436</ulink>.</para>
  • packages.ent

    rc6514f57 r69e86505  
    748748
    749749<!ENTITY exim-version                 "4.97.1">
    750 <!ENTITY postfix-version              "3.8.5">
     750<!ENTITY postfix-version              "3.9.0">
    751751<!ENTITY sendmail-version             "8.18.1">
    752752
  • server/mail/postfix.xml

    rc6514f57 r69e86505  
    1010  <!ENTITY postfix-download-http "https://ghostarchive.org/postfix/postfix-release/official/postfix-&postfix-version;.tar.gz">
    1111  <!ENTITY postfix-download-ftp  " ">
    12   <!ENTITY postfix-md5sum        "ae12d4dfc965a74a691a22ace14e7207">
    13   <!ENTITY postfix-size          "4.6 MB">
     12  <!ENTITY postfix-md5sum        "3eda9b945ed6cdf11ef58a731c574a04">
     13  <!ENTITY postfix-size          "4.7 MB">
    1414  <!ENTITY postfix-buildsize     "208 MB">
    1515  <!ENTITY postfix-time          "0.1 SBU (Using parallelism=4)">
     
    173173      </para>
    174174
     175      <para>
     176        Initialize the <envar>CCARGS</envar> and <envar>AUXLIBS</envar>
     177        according to the note above:
     178      </para>
     179
     180<screen><userinput>CCARGS="-DNO_NIS -DNO_DB"
     181AUXLIBS=""</userinput></screen>
     182
     183      <para>
     184        Next, the <envar>CCARGS</envar> and the <envar>AUXLIBS</envar>
     185        variables are filled with settings depending on the actual
     186        system configuration. If an optional package is installed but
     187        should <emphasis>not</emphasis> be included in the
     188        <application>Postfix</application> build, simply skip the
     189        corresponding <code>if [ ... ]; then</code> scriptlets.
     190      </para>
     191
    175192      <sect4>
    176193        <title>Cyrus-SASL</title>
     
    181198        </para>
    182199
    183 <screen><literal>CCARGS="-DNO_NIS -DNO_DB \
    184         -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
    185 AUXLIBS='-lsasl2'</literal></screen>
     200<screen><userinput>if [ -r /usr/lib/libsasl2.so ]; then
     201  CCARGS="$CCARGS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
     202  AUXLIBS="$AUXLIBS -lsasl2"
     203fi</userinput></screen>
    186204      </sect4>
    187205
     
    193211        </para>
    194212
    195 <screen><literal>CCARGS='-DNO_NIS -DNO_DB -DHAS_LMDB'
    196 AUXLIBS_LMDB='-llmdb'</literal></screen>
     213<screen><userinput>if [ -r /usr/lib/liblmdb.so ]; then
     214  CCARGS="$CCARGS -DHAS_LMDB"
     215  AUXLIBS="$AUXLIBS -llmdb"
     216fi</userinput></screen>
    197217      </sect4>
    198218
     
    205225        </para>
    206226
    207 <screen><literal>CCARGS='-DNO_NIS -DNO_DB -DHAS_LDAP'
    208 AUXLIBS_LDAP='-lldap -llber'</literal></screen>
     227<screen><userinput>if [ -r /usr/lib/libldap.so -a -r /usr/lib/liblber.so ]; then
     228  CCARGS="$CCARGS -DHAS_LDAP"
     229  AUXLIBS="$AUXLIBS -lldap -llber"
     230fi</userinput></screen>
    209231
    210232      </sect4>
     
    218240        </para>
    219241
    220 <screen><literal>CCARGS='-DNO_NIS -DNO_DB -DHAS_SQLITE'
    221 AUXLIBS_SQLITE='-lsqlite3 -lpthread'</literal></screen>
     242<screen><userinput>if [ -r /usr/lib/libsqlite3.so ]; then
     243  CCARGS="$CCARGS -DHAS_SQLITE"
     244  AUXLIBS="$AUXLIBS -lsqlite3 -lpthread"
     245fi</userinput></screen>
    222246
    223247      </sect4>
     
    231255        </para>
    232256
    233 <screen><literal>CCARGS='-DNO_NIS -DNO_DB -DHAS_MYSQL -I/usr/include/mysql'
    234 AUXLIBS_MYSQL='-lmysqlclient -lz -lm'</literal></screen>
     257<screen><userinput>if [ -r /usr/lib/libmysqlclient.so ]; then
     258  CCARGS="$CCARGS -DHAS_MYSQL -I/usr/include/mysql"
     259  AUXLIBS="$AUXLIBS -lmysqlclient -lz -lm"
     260fi</userinput></screen>
    235261
    236262      </sect4>
     
    244270        </para>
    245271
    246 <screen><literal>CCARGS='-DNO_NIS -DNO_DB -DHAS_PGSQL -I/usr/include/postgresql'
    247 AUXLIBS_PGSQL='-lpq -lz -lm'</literal></screen>
     272<screen><userinput>if [ -r /usr/lib/libpq.so ]; then
     273  CCARGS="$CCARGS -DHAS_PGSQL -I/usr/include/postgresql"
     274  AUXLIBS="$AUXLIBS -lpq -lz -lm"
     275fi</userinput></screen>
    248276
    249277      </sect4>
     
    258286        </para>
    259287
    260 <screen><literal>CCARGS='-DNO_NIS -DNO_DB -DHAS_CDB'
    261 AUXLIBS_CDB='<replaceable>&lt;/path/to/CDB&gt;</replaceable>/libcdb.a'</literal></screen>
     288<screen><literal>if [ -r <replaceable>&lt;/path/to/CDB&gt;</replaceable>/libcdb.a ]; then
     289  CCARGS="$CCARGS -DHAS_CDB"
     290  AUXLIBS="$AUXLIBS <replaceable>&lt;/path/to/CDB&gt;</replaceable>/libcdb.a"
     291fi</literal></screen>
    262292
    263293      </sect4>
     
    271301        </para>
    272302
    273 <screen><literal>CCARGS='-DNO_NIS -DNO_DB -DUSE_TLS -I/usr/include/openssl/'
    274 AUXLIBS='-lssl -lcrypto'</literal></screen>
     303<screen><userinput>if [ -r /usr/lib/libssl.so -a -r /usr/lib/libcrypto.so ]; then
     304  CCARGS="$CCARGS -DUSE_TLS -I/usr/include/openssl/"
     305  AUXLIBS="$AUXLIBS -lssl -lcrypto"
     306fi</userinput></screen>
     307        <para>
     308          <application>OpenSSL</application> is installed by LFS so it
     309          should be always there. The <code>if ... then</code> is here
     310          just for consistency.
     311        </para>
    275312      </sect4>
    276313
     
    281318
    282319      <para>
    283         Adjust the following according to your needs. For example,
    284         if you have <application>Cyrus SASL</application> and
    285         <application>LMDB</application>,
    286         install <application>Postfix</application> by running the following
    287         commands:
    288       </para>
    289 
    290 <screen><userinput>make CCARGS="-DNO_NIS -DNO_DB -DUSE_TLS -I/usr/include/openssl/    \
    291              -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl  \
    292              -DHAS_LMDB"                                           \
    293      AUXLIBS="-lssl -lcrypto -lsasl2"                              \
    294      AUXLIBS_LMDB="-llmdb"                                         \
    295      makefiles &amp;&amp;
     320        There might be duplicate settings in <envar>AUXLIBS</envar>
     321        like <code>-lm</code> when both, <application>MariaDB</application>
     322        and <application>PostgreSQL</application> are used. They do
     323        not harm. Install <application>Postfix</application> by
     324        running the following commands:
     325      </para>
     326
     327<screen><userinput>make CCARGS="$CCARGS" AUXLIBS="$AUXLIBS" makefiles &amp;&amp;
    296328make</userinput></screen>
    297329
Note: See TracChangeset for help on using the changeset viewer.