source: trunk/dports/devel/openssl/Portfile

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

openssl: 1.0.2j, security

See https://www.openssl.org/news/secadv/20160926.txt

CVE: CVE-2016-7052

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.1 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 153177 2016-09-26 12:10:57Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6
7name                openssl
8epoch               1
9version             1.0.2j
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
34# See https://www.openssl.org/source/mirror.html
35master_sites        ${homepage}/source \
36                    ftp://gd.tuwien.ac.at/infosys/security/openssl/source/ \
37                    http://openssl.skazkaforyou.com/source/ \
38                    http://mirror.switch.ch/ftp/mirror/openssl/source/ \
39                    ftp://ftp.fi.muni.cz/pub/openssl/source/ \
40                    ftp://ftp.pca.dfn.de/pub/tools/net/openssl/source/ \
41                    http://artfiles.org/openssl.org/source/ \
42                    ftp://ftp.linux.hr/pub/openssl/source/ \
43                    ftp://guest.kuria.katowice.pl/pub/openssl/source/
44
45checksums           sha1    bdfbdb416942f666865fa48fe13c2d0e588df54f \
46                    rmd160  d5be416caf523f3496323dbd05547144348e7854 \
47                    sha256  e7aff292be21c259c6af26469c7a9b3ba26e9abaaffd325e3dccc9785256c431
48
49patchfiles          install-headers-HFS+.patch \
50                    parallel-building.patch \
51                    remove-duplicate-bn_print-doc.patch
52
53configure.ccache    no
54configure.perl      /usr/bin/perl
55configure.cmd       ./Configure
56configure.args     -L${prefix}/lib \
57                    no-krb5 \
58                  --openssldir=${prefix}/etc/openssl \
59                    shared \
60                    zlib
61# Use SDK if necessary.
62if {${configure.sdkroot} ne ""} {
63    configure.args-append   '-isysroot ${configure.sdkroot}' \
64                            -Wl,-syslibroot,${configure.sdkroot}
65}
66
67set merger_arch_compiler no
68array set merger_configure_args {
69    ppc     darwin-ppc-cc
70    i386    darwin-i386-cc
71    ppc64   darwin64-ppc-cc
72    x86_64  darwin64-x86_64-cc
73}
74platform darwin {
75    # Don't use i386 assembly on Tiger (#38015, #43303).
76    if {${os.major} <= 8} {
77        append merger_configure_args(i386) { no-asm}
78    }
79    # Don't use x86-64 assembly on Tiger or Leopard.
80    if {${os.major} <= 9} {
81        append merger_configure_args(x86_64) { no-asm}
82    }
83}
84# Don't pass --host to configure.
85array set merger_host {ppc {} i386 {} ppc64 {} x86_64 {}}
86
87if {![variant_isset universal]
88        && [info exists merger_configure_args(${configure.build_arch})]} {
89    configure.args-append $merger_configure_args(${configure.build_arch})
90}
91configure.universal_args-delete --disable-dependency-tracking
92
93# Parallel builds don't quite work (#46719).
94use_parallel_build  no
95
96test.run            yes
97
98if {[variant_isset universal]} {
99    pre-destroot {
100        global merger_dont_diff
101        if {[llength ${universal_archs_to_use}] > 2} {
102            lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
103        }
104    }
105}
106
107destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
108destroot.destdir    INSTALL_PREFIX=${destroot}
109
110variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
111    configure.args-append   enable-rfc3779
112}
113
114livecheck.type      regex
115livecheck.url       [lindex ${master_sites} 0]
116livecheck.regex     ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
Note: See TracBrowser for help on using the repository browser.