[124887] trunk/dports/security/certsync/Portfile
cal at macports.org
cal at macports.org
Sat Aug 30 02:50:38 PDT 2014
Revision: 124887
https://trac.macports.org/changeset/124887
Author: cal at macports.org
Date: 2014-08-30 02:50:38 -0700 (Sat, 30 Aug 2014)
Log Message:
-----------
certsync: whitespace only, add modeline, conform to modeline, openmaintainer
Modified Paths:
--------------
trunk/dports/security/certsync/Portfile
Modified: trunk/dports/security/certsync/Portfile
===================================================================
--- trunk/dports/security/certsync/Portfile 2014-08-30 05:02:02 UTC (rev 124886)
+++ trunk/dports/security/certsync/Portfile 2014-08-30 09:50:38 UTC (rev 124887)
@@ -1,79 +1,81 @@
+# -*- 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
# $Id$
-PortSystem 1.0
+PortSystem 1.0
-name certsync
-version 1.1.0
-categories security
-conflicts curl-ca-bundle
-maintainers landonf openmaintainer
-description Export x509 CAs from the Mac OS X Keychain.
-long_description The package implements exporting of x509 CAs from \
- the Mac OS X keychain, for use by OpenSSL and gnutls.
-homepage http://www.macports.org
-license MIT
-platforms darwin
+name certsync
+version 1.1.0
+categories security
+conflicts curl-ca-bundle
+maintainers landonf openmaintainer
+description Export x509 CAs from the Mac OS X Keychain.
+long_description \
+ The package implements exporting of x509 CAs from the Mac OS X keychain, \
+ for use by OpenSSL and gnutls.
+homepage http://www.macports.org
+license MIT
+platforms darwin
-installs_libs no
+installs_libs no
distfiles
-extract.mkdir yes
+extract.mkdir yes
post-extract {
- xinstall -m 644 -W ${filespath} certsync.m compat.h certsync.plist update-ca-certificates ${worksrcpath}
+ xinstall -m 644 -W ${filespath} certsync.m compat.h certsync.plist update-ca-certificates ${worksrcpath}
}
post-patch {
- reinplace "s|@PREFIX@|${prefix}|g" \
- ${worksrcpath}/update-ca-certificates \
- ${worksrcpath}/certsync.plist
+ reinplace "s|@PREFIX@|${prefix}|g" \
+ ${worksrcpath}/update-ca-certificates \
+ ${worksrcpath}/certsync.plist
- reinplace "s|@LABEL@|${startupitem.uniquename}|g" ${worksrcpath}/certsync.plist
+ reinplace "s|@LABEL@|${startupitem.uniquename}|g" ${worksrcpath}/certsync.plist
}
-use_configure no
+use_configure no
variant universal {}
# We inject our own launchd plist to allow the use of WatchPaths
-startupitem.create no
-startupitem.autostart yes
+startupitem.create no
+startupitem.autostart yes
build {
- system -W ${worksrcpath} "${configure.objc} \
- ${configure.objcflags} \
- -mmacosx-version-min=10.4 \
- -Wall \
- certsync.m -o certsync \
- ${configure.ldflags} \
- [get_canonical_archflags ld] \
- -framework Foundation -framework Security -framework CoreServices"
+ system -W ${worksrcpath} "${configure.objc} \
+ ${configure.objcflags} \
+ -mmacosx-version-min=10.4 \
+ -Wall \
+ certsync.m -o certsync \
+ ${configure.ldflags} \
+ [get_canonical_archflags ld] \
+ -framework Foundation -framework Security -framework CoreServices"
}
destroot {
- # Install the binaries
- xinstall -m 755 -W ${worksrcpath} certsync ${destroot}${prefix}/libexec
- xinstall -m 755 -W ${worksrcpath} update-ca-certificates ${destroot}${prefix}/bin
+ # Install the binaries
+ 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}
+ # 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}
- if {[getuid] == 0 && ${startupitem.install} != "no"} {
- file mkdir "${destroot}/Library/${startupitem.location}"
- ln -sf "${launchd_dir}/${startupitem.plist}" "${destroot}/Library/${startupitem.location}"
- }
+ if {[getuid] == 0 && ${startupitem.install} != "no"} {
+ file mkdir "${destroot}/Library/${startupitem.location}"
+ ln -sf "${launchd_dir}/${startupitem.plist}" "${destroot}/Library/${startupitem.location}"
+ }
- # Provide backwards compatibility with curl-ca-bundle
- xinstall -d "${destroot}${prefix}/share/curl"
- ln -s ${prefix}/etc/openssl/cert.pem ${destroot}${prefix}/share/curl/curl-ca-bundle.crt
+ # Provide backwards compatibility with curl-ca-bundle
+ xinstall -d "${destroot}${prefix}/share/curl"
+ ln -s ${prefix}/etc/openssl/cert.pem ${destroot}${prefix}/share/curl/curl-ca-bundle.crt
}
post-activate {
- system "${prefix}/bin/update-ca-certificates"
+ system "${prefix}/bin/update-ca-certificates"
}
pre-deactivate {
- delete "${prefix}/etc/openssl/cert.pem"
+ delete "${prefix}/etc/openssl/cert.pem"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140830/44f596ab/attachment-0001.html>
More information about the macports-changes
mailing list