Ignore:
Timestamp:
Aug 14, 2013, 10:03:07 AM (6 years ago)
Author:
ryandesign@…
Message:

certsync: use phases correctly: extract in extract phase; patch in patch phase

File:
1 edited

Legend:

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

    r109343 r109371  
    22
    33PortSystem 1.0
     4
    45name                    certsync
    56version                 1.0.4
     
    1516distfiles
    1617
     18extract.mkdir           yes
     19post-extract {
     20        xinstall -m 644 -W ${filespath} certsync.m update-ca-certificates ${worksrcpath}
     21}
     22
     23post-patch {
     24        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/update-ca-certificates
     25}
     26
    1727use_configure no
    1828
    1929variant universal {}
    2030
    21 # TODO: Ideally this would be run by default, rather than
    22 # requiring 'port load'. It doesn't run any network services, but rather,
    23 # simply ensures that the certificate store is always up-to-date.
    2431startupitem.create yes
    2532startupitem.start "${prefix}/bin/certsync -s -o '${prefix}/etc/openssl/cert.pem'"
     
    3037
    3138build {
    32         file mkdir "${worksrcpath}"
    33         system "${configure.objc} \
     39        system -W ${worksrcpath} "${configure.objc} \
    3440                ${configure.objcflags} \
    3541                -mmacosx-version-min=10.6 \
    3642                -Wall \
    37                 ${filespath}/certsync.m -o ${worksrcpath}/certsync \
     43                certsync.m -o certsync \
    3844                ${configure.ldflags} \
    3945                [get_canonical_archflags ld] \
    4046                -framework Foundation -framework Security -framework CoreServices"
    41         file copy "${filespath}/update-ca-certificates" "${worksrcpath}/update-ca-certificates"
    42         reinplace "s|@PREFIX@|${prefix}|g" "${worksrcpath}/update-ca-certificates"
    4347}
    4448
Note: See TracChangeset for help on using the changeset viewer.