source: trunk/dports/devel/libpwquality/Portfile

Last change on this file was 139143, checked in by devans@…, 2 years ago

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.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 139143 2015-08-03 22:30:57Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libpwquality
7version             1.3.0
8license             LGPL-2.1+
9categories          devel
10maintainers         nomaintainer
11description         A library for password quality checking and \
12                    the generation of random passwords that \
13                    pass the checks.
14
15long_description    ${description}
16
17platforms           darwin
18
19homepage            https://fedorahosted.org/${name}/
20master_sites        https://fedorahosted.org/releases/l/i/${name}/
21
22use_bzip2           yes
23
24checksums           rmd160  5ca6e8eea9c3ee277ecb9aa9b2875748fe3ff000 \
25                    sha256  74d2ea90e103323c1f2d6a6cc9617cdae6877573eddb31aaf31a40f354cc2d2a
26
27depends_build       port:pkgconfig
28
29depends_lib         port:gettext \
30                    port:libiconv \
31                    port:cracklib
32
33patchfiles          patch-python-Makefile.in.diff \
34                    patch-src-pam_pwquality.c.diff
35
36configure.args       --disable-pam
37
38variant python27 conflicts python34 description {Build python 2.7 bindings} {
39    set python_ver          2.7
40    depends_lib-append      port:python27
41    set python_prefix       ${frameworks_dir}/Python.framework/Versions/${python_ver}
42    set python_site_path    ${python_prefix}/lib/python${python_ver}/site-packages
43    configure.args-append   --with-python-binary=${prefix}/bin/python${python_ver} \
44                            --with-pythonsitedir=${python_site_path}
45}
46
47variant python34 conflicts python27 description {Build python 3.4 bindings} {
48    set python_ver          3.4
49    depends_lib-append      port:python34
50    set python_prefix       ${frameworks_dir}/Python.framework/Versions/${python_ver}
51    set python_site_path    ${python_prefix}/lib/python${python_ver}/site-packages
52    configure.args-append   --with-python-binary=${prefix}/bin/python${python_ver} \
53                            --with-pythonsitedir=${python_site_path}
54}
55
56if {![variant_isset python27]} {
57    default_variants +python34
58}
59
60platform darwin {
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
72    }
73}
74
75livecheck.type      regex
76livecheck.url       ${master_sites}
77livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.