source: trunk/dports/devel/openssl/Portfile @ 153040

Last change on this file since 153040 was 153040, checked in by cal@…, 12 months ago

openssl: 1.0.2i, fixes multiple vulnerabilities

See https://www.openssl.org/news/secadv/20160922.txt for the security advisory.

CVE: CVE-2016-6304, CVE-2016-6305, CVE-2016-2183, CVE-2016-6303, CVE-2016-6302
CVE: CVE-2016-2182, CVE-2016-2180, CVE-2016-2177, CVE-2016-2178, CVE-2016-2179
CVE: CVE-2016-2181, CVE-2016-6306, CVE-2016-6307, CVE-2016-6308

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 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 153040 2016-09-22 16:42:20Z cal@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6
7name                openssl
8epoch               1
9version             1.0.2i
10
11# Please revbump these ports when updating OpenSSL.
12#  - freeradius (#43461)
13#  - tor, tor-devel (#44256)
14
15categories          devel security
16platforms           darwin
17license             OpenSSL SSLeay
18maintainers         larryv cal openmaintainer
19
20description         OpenSSL SSL/TLS cryptography library
21long_description    The OpenSSL Project is a collaborative effort to \
22                    develop a robust, commercial-grade, full-featured, \
23                    and Open Source toolkit implementing the Secure \
24                    Sockets Layer (SSL v2/v3) and Transport Layer \
25                    Security (TLS v1) protocols as well as \
26                    a full-strength general purpose cryptography \
27                    library.
28homepage            https://www.openssl.org
29
30conflicts           libressl libressl-devel
31
32depends_lib         port:zlib
33
34master_sites        ${homepage}/source \
35                    http://mirror.cc.columbia.edu/pub/software/openssl
36checksums           rmd160  d33628eea2838e392390a348b516425569308c3b \
37                    sha256  9287487d11c9545b6efb287cdb70535d4e9b284dd10d51441d9b9963d000de6f
38
39patchfiles          install-headers-HFS+.patch \
40                    parallel-building.patch \
41                    remove-duplicate-bn_print-doc.patch
42
43configure.ccache    no
44configure.perl      /usr/bin/perl
45configure.cmd       ./Configure
46configure.args     -L${prefix}/lib \
47                    no-krb5 \
48                  --openssldir=${prefix}/etc/openssl \
49                    shared \
50                    zlib
51# Use SDK if necessary.
52if {${configure.sdkroot} ne ""} {
53    configure.args-append   '-isysroot ${configure.sdkroot}' \
54                            -Wl,-syslibroot,${configure.sdkroot}
55}
56
57set merger_arch_compiler no
58array set merger_configure_args {
59    ppc     darwin-ppc-cc
60    i386    darwin-i386-cc
61    ppc64   darwin64-ppc-cc
62    x86_64  darwin64-x86_64-cc
63}
64platform darwin {
65    # Don't use i386 assembly on Tiger (#38015, #43303).
66    if {${os.major} <= 8} {
67        append merger_configure_args(i386) { no-asm}
68    }
69    # Don't use x86-64 assembly on Tiger or Leopard.
70    if {${os.major} <= 9} {
71        append merger_configure_args(x86_64) { no-asm}
72    }
73}
74# Don't pass --host to configure.
75array set merger_host {ppc {} i386 {} ppc64 {} x86_64 {}}
76
77if {![variant_isset universal]
78        && [info exists merger_configure_args(${configure.build_arch})]} {
79    configure.args-append $merger_configure_args(${configure.build_arch})
80}
81configure.universal_args-delete --disable-dependency-tracking
82
83# Parallel builds don't quite work (#46719).
84use_parallel_build  no
85
86test.run            yes
87
88if {[variant_isset universal]} {
89    pre-destroot {
90        global merger_dont_diff
91        if {[llength ${universal_archs_to_use}] > 2} {
92            lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
93        }
94    }
95}
96
97destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
98destroot.destdir    INSTALL_PREFIX=${destroot}
99
100variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
101    configure.args-append   enable-rfc3779
102}
103
104livecheck.type      regex
105livecheck.url       [lindex ${master_sites} 0]
106livecheck.regex     ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
Note: See TracBrowser for help on using the repository browser.