Changeset 62922


Ignore:
Timestamp:
Jan 22, 2010, 12:28:45 AM (10 years ago)
Author:
ryandesign@…
Message:

apache2/apache20: when using +openldap variant, ensure apr-util/apr-util0 is installed with +openldap variant; see #19595

Location:
trunk/dports/www
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/www/apache2/Portfile

    r59494 r62922  
    132132        configure.args-append --enable-ldap --enable-authnz-ldap
    133133        depends_lib-append port:openldap
     134        pre-configure {
     135                if {-1 == [string first -lldap [exec ${prefix}/bin/apu-1-config --libs]]} {
     136                        ui_error "To install ${name} with the +openldap variant, apr-util must be installed"
     137                        ui_error "with the +openldap variant. Rebuild apr-util using:"
     138                        ui_error
     139                        ui_error "    sudo port upgrade --enforce-variants apr-util +openldap"
     140                        ui_error
     141                        return -code error "incompatible apr-util installation"
     142                }
     143        }
    134144}
    135145
  • trunk/dports/www/apache20/Portfile

    r58843 r62922  
    145145        configure.args-append --enable-ldap --enable-authnz-ldap
    146146        depends_lib-append port:openldap
     147        pre-configure {
     148                if {-1 == [string first -lldap [exec ${prefix}/bin/apu-config --libs]]} {
     149                        ui_error "To install ${name} with the +openldap variant, apr-util0 must be installed"
     150                        ui_error "with the +openldap variant. Rebuild apr-util0 using:"
     151                        ui_error
     152                        ui_error "    sudo port upgrade --enforce-variants apr-util0 +openldap"
     153                        ui_error
     154                        return -code error "incompatible apr-util0 installation"
     155                }
     156        }
    147157}
    148158
Note: See TracChangeset for help on using the changeset viewer.