# -*- 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
maintainers {landonf @landonf} openmaintainer
description Export x509 CAs from the Mac OS X Keychain.
The package implements exporting of x509 CAs from the Mac OS X keychain, \
for use by OpenSSL and gnutls.
homepage https://www.macports.org/
xinstall -m 644 -W ${filespath} certsync.m compat.h certsync.plist update-ca-certificates ${worksrcpath}
reinplace "s|@PREFIX@|${prefix}|g" \
${worksrcpath}/update-ca-certificates \
${worksrcpath}/certsync.plist
reinplace "s|@LABEL@|${startupitem.uniquename}|g" ${worksrcpath}/certsync.plist
# We inject our own launchd plist to allow the use of WatchPaths
startupitem.autostart yes
system -W ${worksrcpath} "${configure.objc} \
-mmacosx-version-min=${macosx_deployment_target} \
[get_canonical_archflags ld] \
-framework Foundation -framework Security -framework CoreServices"
xinstall -m 755 -W ${worksrcpath} certsync ${destroot}${prefix}/libexec
xinstall -m 755 -W ${worksrcpath} update-ca-certificates ${destroot}${prefix}/bin
# Install our custom plist
set launchd_dir "${prefix}/etc/${startupitem.location}/${startupitem.uniquename}"
xinstall -m 755 -d ${destroot}/${launchd_dir}
xinstall -m 644 -W ${worksrcpath} certsync.plist ${destroot}/${launchd_dir}/${startupitem.plist}