Ignore:
Timestamp:
Aug 30, 2014, 9:50:38 AM (5 years ago)
Author:
cal@…
Message:

certsync: whitespace only, add modeline, conform to modeline, openmaintainer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/security/certsync/Portfile

    r124828 r124887  
     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
    12# $Id$
    23
    3 PortSystem              1.0
     4PortSystem          1.0
    45
    5 name                    certsync
    6 version                 1.1.0
    7 categories              security
    8 conflicts               curl-ca-bundle
    9 maintainers             landonf openmaintainer
    10 description             Export x509 CAs from the Mac OS X Keychain.
    11 long_description        The package implements exporting of x509 CAs from \
    12                         the Mac OS X keychain, for use by OpenSSL and gnutls.
    13 homepage                http://www.macports.org
    14 license                 MIT
    15 platforms               darwin
     6name                certsync
     7version             1.1.0
     8categories          security
     9conflicts           curl-ca-bundle
     10maintainers         landonf openmaintainer
     11description         Export x509 CAs from the Mac OS X Keychain.
     12long_description    \
     13    The package implements exporting of x509 CAs from the Mac OS X keychain, \
     14    for use by OpenSSL and gnutls.
     15homepage            http://www.macports.org
     16license             MIT
     17platforms           darwin
    1618
    17 installs_libs           no
     19installs_libs       no
    1820
    1921distfiles
    2022
    21 extract.mkdir           yes
     23extract.mkdir       yes
    2224post-extract {
    23         xinstall -m 644 -W ${filespath} certsync.m compat.h certsync.plist update-ca-certificates ${worksrcpath}
     25    xinstall -m 644 -W ${filespath} certsync.m compat.h certsync.plist update-ca-certificates ${worksrcpath}
    2426}
    2527
    2628post-patch {
    27         reinplace "s|@PREFIX@|${prefix}|g" \
    28                 ${worksrcpath}/update-ca-certificates \
    29                 ${worksrcpath}/certsync.plist
     29    reinplace "s|@PREFIX@|${prefix}|g" \
     30        ${worksrcpath}/update-ca-certificates \
     31        ${worksrcpath}/certsync.plist
    3032
    31         reinplace "s|@LABEL@|${startupitem.uniquename}|g" ${worksrcpath}/certsync.plist
     33    reinplace "s|@LABEL@|${startupitem.uniquename}|g" ${worksrcpath}/certsync.plist
    3234}
    3335
    34 use_configure           no
     36use_configure       no
    3537
    3638variant universal {}
    3739
    3840# We inject our own launchd plist to allow the use of WatchPaths
    39 startupitem.create      no
    40 startupitem.autostart   yes
     41startupitem.create  no
     42startupitem.autostart yes
    4143
    4244build {
    43         system -W ${worksrcpath} "${configure.objc} \
    44                 ${configure.objcflags} \
    45                 -mmacosx-version-min=10.4 \
    46                 -Wall \
    47                 certsync.m -o certsync \
    48                 ${configure.ldflags} \
    49                 [get_canonical_archflags ld] \
    50                 -framework Foundation -framework Security -framework CoreServices"
     45    system -W ${worksrcpath} "${configure.objc} \
     46        ${configure.objcflags} \
     47        -mmacosx-version-min=10.4 \
     48        -Wall \
     49        certsync.m -o certsync \
     50        ${configure.ldflags} \
     51        [get_canonical_archflags ld] \
     52        -framework Foundation -framework Security -framework CoreServices"
    5153}
    5254
    5355destroot {
    54         # Install the binaries
    55         xinstall -m 755 -W ${worksrcpath} certsync ${destroot}${prefix}/libexec
    56         xinstall -m 755 -W ${worksrcpath} update-ca-certificates ${destroot}${prefix}/bin
     56    # Install the binaries
     57    xinstall -m 755 -W ${worksrcpath} certsync ${destroot}${prefix}/libexec
     58    xinstall -m 755 -W ${worksrcpath} update-ca-certificates ${destroot}${prefix}/bin
    5759
    58         # Install our custom plist
    59         set launchd_dir "${prefix}/etc/${startupitem.location}/${startupitem.uniquename}"
    60         xinstall -m 755 -d ${destroot}/${launchd_dir}
    61         xinstall -m 644 -W ${worksrcpath} certsync.plist  ${destroot}/${launchd_dir}/${startupitem.plist}
     60    # Install our custom plist
     61    set launchd_dir "${prefix}/etc/${startupitem.location}/${startupitem.uniquename}"
     62    xinstall -m 755 -d ${destroot}/${launchd_dir}
     63    xinstall -m 644 -W ${worksrcpath} certsync.plist  ${destroot}/${launchd_dir}/${startupitem.plist}
    6264
    63         if {[getuid] == 0 && ${startupitem.install} != "no"} {
    64                 file mkdir "${destroot}/Library/${startupitem.location}"
    65                 ln -sf "${launchd_dir}/${startupitem.plist}" "${destroot}/Library/${startupitem.location}"
    66         }
     65    if {[getuid] == 0 && ${startupitem.install} != "no"} {
     66        file mkdir "${destroot}/Library/${startupitem.location}"
     67        ln -sf "${launchd_dir}/${startupitem.plist}" "${destroot}/Library/${startupitem.location}"
     68    }
    6769
    68         # Provide backwards compatibility with curl-ca-bundle
    69         xinstall -d "${destroot}${prefix}/share/curl"
    70         ln -s ${prefix}/etc/openssl/cert.pem ${destroot}${prefix}/share/curl/curl-ca-bundle.crt
     70    # Provide backwards compatibility with curl-ca-bundle
     71    xinstall -d "${destroot}${prefix}/share/curl"
     72    ln -s ${prefix}/etc/openssl/cert.pem ${destroot}${prefix}/share/curl/curl-ca-bundle.crt
    7173}
    7274
    7375post-activate {
    74         system "${prefix}/bin/update-ca-certificates"
     76    system "${prefix}/bin/update-ca-certificates"
    7577}
    7678
    7779pre-deactivate {
    78         delete "${prefix}/etc/openssl/cert.pem"
     80    delete "${prefix}/etc/openssl/cert.pem"
    7981}
Note: See TracChangeset for help on using the changeset viewer.