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

Last change on this file since 123276 was 123276, checked in by cal@…, 3 years ago

openssl: update to 1.0.1i, maintainer override due to security, revbump ports that need to be after openssl per comment in openssl Portfile

  • CVE-2014-3508
  • CVE-2014-5139
  • CVE-2014-3509
  • CVE-2014-3505
  • CVE-2014-3506
  • CVE-2014-3507
  • CVE-2014-3510
  • CVE-2014-3511
  • CVE-2014-3512
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# $Id: Portfile 123276 2014-08-07 20:24:35Z cal@macports.org $
2
3PortSystem 1.0
4PortGroup  muniversal 1.0
5
6name                openssl
7version             1.0.1i
8epoch               1
9
10# At least the following ports statically link OpenSSL and need to be revbumped
11# for every update of OpenSSL:
12#  - ...
13# Although they dynamically link OpenSSL, at least the following ports need to
14# be revbumped for every update of OpenSSL:
15#  - freeradius
16#  - tor
17# These lists aren't exhaustive. Feel free to add more entries as you find them.
18
19platforms           darwin
20categories          devel security
21maintainers         mww
22homepage            http://www.openssl.org/
23license             OpenSSL SSLeay
24description         OpenSSL SSL/TLS cryptography library
25
26long_description \
27    The OpenSSL Project is a collaborative effort to develop a robust, \
28    commercial-grade, full-featured, and Open Source toolkit implementing \
29    the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security \
30    (TLS v1) protocols as well as a full-strength general purpose \
31    cryptography library.
32
33master_sites        http://www.openssl.org/source/
34checksums           md5     c8dc151a671b9b92ff3e4c118b174972 \
35                    sha1    74eed314fa2c93006df8d26cd9fc630a101abd76 \
36                    rmd160  aa566f80f79aec8edb07fd61d917f62052a73155 \
37                    sha256  3c179f46ca77069a6a0bac70212a9b3b838b2f66129cb52d568837fc79d8fcc7
38
39depends_lib         port:zlib
40
41patchfiles          patch-Makefile.org.diff patch-crypto-Makefile.diff \
42                    patch-bn_internal.pod.diff patch-Configure.diff
43
44post-patch {
45    # Ensure that the correct compiler is used
46    reinplace "s|cc:|${configure.cc}:|" ${worksrcpath}/Configure
47    # use SDK if necessary
48    if {${configure.sdkroot} != ""} {
49        reinplace "s|\\(-arch \[_a-zA-Z0-9\]*\\)|\\1 -isysroot ${configure.sdkroot}|" ${worksrcpath}/Configure
50    }
51}
52
53configure.cmd       ./Configure
54configure.args      -L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib no-krb5 shared
55configure.ccache    no
56
57use_parallel_build  no
58
59destroot.destdir    INSTALL_PREFIX=${destroot}
60destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
61
62test.run            yes
63test.dir            ${worksrcpath}/test
64test.target         alltests
65
66livecheck.type      regex
67livecheck.url       ${master_sites}
68livecheck.regex     ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
69
70variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
71    configure.args-append    enable-rfc3779
72}
73
74# code for universal build
75array set merger_configure_args {
76    ppc    darwin-ppc-cc
77    i386   darwin-i386-cc
78    ppc64  darwin64-ppc-cc
79    x86_64 darwin64-x86_64-cc
80}
81
82if { [variant_isset universal] } {
83    set merger_arch_compiler "no"
84
85    configure.universal_args-delete --disable-dependency-tracking
86
87    pre-destroot {
88        global merger_dont_diff
89        if { [llength ${universal_archs_to_use}] > 2 } {
90            lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
91        }
92    }
93
94    # Do not set --host.
95    array set merger_host {
96        ppc    ""
97        i386   ""
98        ppc64  ""
99        x86_64 ""
100    }
101} elseif {[info exists merger_configure_args($build_arch)]} {
102    configure.args-append   $merger_configure_args($build_arch)
103}
104
105platform darwin 8 i386 {
106    configure.args-append no-asm
107}
Note: See TracBrowser for help on using the repository browser.