Changeset 139143


Ignore:
Timestamp:
Aug 3, 2015, 10:30:57 PM (2 years ago)
Author:
devans@…
Message:

libpwquality: update to version 1.3.0, ABI compatible with previous version.

  • remove +python26 variant, add +python34 now the default.
  • fix python configuration to install python bindings in the correct site-packages directory.
  • disable PAM support on El Capitan due to enhanced (SIP) security issues, see comments for details.
  • remove outdated configuration items, general cleanup.
Location:
trunk/dports/devel/libpwquality
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/libpwquality

  • trunk/dports/devel/libpwquality/Portfile

    r125546 r139143  
    55
    66name                libpwquality
    7 version             1.2.4
     7version             1.3.0
    88license             LGPL-2.1+
    99categories          devel
     
    2222use_bzip2           yes
    2323
    24 checksums           rmd160  be197dccb5b1ea4592a7498c9198d65f65999581 \
    25                     sha256  9ad67be364a66dc8b334a473c77d9f531137ee0e9d85d81f567f410a375857c7
     24checksums           rmd160  5ca6e8eea9c3ee277ecb9aa9b2875748fe3ff000 \
     25                    sha256  74d2ea90e103323c1f2d6a6cc9617cdae6877573eddb31aaf31a40f354cc2d2a
    2626
    2727depends_build       port:pkgconfig
     
    3131                    port:cracklib
    3232
    33 patchfiles          patch-src-pam_pwquality.c.diff
     33patchfiles          patch-python-Makefile.in.diff \
     34                    patch-src-pam_pwquality.c.diff
    3435
    35 configure.ldflags-append \
    36                     -lintl
     36configure.args       --disable-pam
    3737
    38 configure.args      --with-securedir=/usr/lib/pam \
    39                     --with-sconfigdir=/etc/security
    40 
    41 # installs PAM modules in /usr/lib/pam
    42 
    43 destroot.violate_mtree yes
    44 
    45 variant python26 conflicts python27 description {Use python 2.6} {
    46     set python_ver          2.6
    47     depends_lib-append      port:python26
    48     configure.python        ${prefix}/bin/python${python_ver}
     38variant python27 conflicts python34 description {Build python 2.7 bindings} {
     39    set python_ver          2.7
     40    depends_lib-append      port:python27
    4941    set python_prefix       ${frameworks_dir}/Python.framework/Versions/${python_ver}
    5042    set python_site_path    ${python_prefix}/lib/python${python_ver}/site-packages
    51     configure.args-append   --with-python-rev=${python_ver} \
     43    configure.args-append   --with-python-binary=${prefix}/bin/python${python_ver} \
    5244                            --with-pythonsitedir=${python_site_path}
    5345}
    5446
    55 variant python27 conflicts python26 description {Use python 2.7} {
    56     set python_ver          2.7
    57     depends_lib-append      port:python27
    58     configure.python        ${prefix}/bin/python${python_ver}
     47variant python34 conflicts python27 description {Build python 3.4 bindings} {
     48    set python_ver          3.4
     49    depends_lib-append      port:python34
    5950    set python_prefix       ${frameworks_dir}/Python.framework/Versions/${python_ver}
    6051    set python_site_path    ${python_prefix}/lib/python${python_ver}/site-packages
    61     configure.args-append   --with-python-rev=${python_ver} \
     52    configure.args-append   --with-python-binary=${prefix}/bin/python${python_ver} \
    6253                            --with-pythonsitedir=${python_site_path}
    6354}
    6455
    65 if {![variant_isset python26]} {
    66     default_variants +python27
    67 }
    68 
    69 post-patch {
    70     reinplace "s|python setup.py|${configure.python} setup.py|g" \
    71         ${worksrcpath}/python/Makefile.am \
    72         ${worksrcpath}/python/Makefile.in
     56if {![variant_isset python27]} {
     57    default_variants +python34
    7358}
    7459
    7560platform darwin {
    76     if {${os.major} < 10} {
    77         configure.args-append --disable-pam
     61# On darwin 15 (El Capitan), System Integrity Protection (SIP)
     62# blocks, by default, any attempt by non-AppStore applications
     63# to install content in system locations.  This causes
     64# activation of PAM modules in /usr/lib/pam by MacPorts to fail.
     65# Disabling optional PAM support on this platform.
     66    if {${os.major} > 9 && ${os.major} < 15} {
     67        configure.args-delete --disable-pam
     68        configure.args-append --with-securedir=/usr/lib/pam \
     69                              --with-sconfigdir=/etc/security
     70        # installs PAM modules into /usr/lib/pam
     71        destroot.violate_mtree yes
    7872    }
    7973}
     
    8276livecheck.url       ${master_sites}
    8377livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
    84 
Note: See TracChangeset for help on using the changeset viewer.