[109371] trunk/dports/security/certsync/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Aug 14 03:03:07 PDT 2013


Revision: 109371
          https://trac.macports.org/changeset/109371
Author:   ryandesign at macports.org
Date:     2013-08-14 03:03:07 -0700 (Wed, 14 Aug 2013)
Log Message:
-----------
certsync: use phases correctly: extract in extract phase; patch in patch phase

Modified Paths:
--------------
    trunk/dports/security/certsync/Portfile

Modified: trunk/dports/security/certsync/Portfile
===================================================================
--- trunk/dports/security/certsync/Portfile	2013-08-14 04:06:17 UTC (rev 109370)
+++ trunk/dports/security/certsync/Portfile	2013-08-14 10:03:07 UTC (rev 109371)
@@ -1,6 +1,7 @@
 # $Id$
 
 PortSystem 1.0
+
 name			certsync
 version			1.0.4
 categories		security
@@ -14,13 +15,19 @@
 
 distfiles
 
+extract.mkdir		yes
+post-extract {
+	xinstall -m 644 -W ${filespath} certsync.m update-ca-certificates ${worksrcpath}
+}
+
+post-patch {
+        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/update-ca-certificates
+}
+
 use_configure no
 
 variant universal {}
 
-# TODO: Ideally this would be run by default, rather than
-# requiring 'port load'. It doesn't run any network services, but rather,
-# simply ensures that the certificate store is always up-to-date.
 startupitem.create yes
 startupitem.start "${prefix}/bin/certsync -s -o '${prefix}/etc/openssl/cert.pem'"
 # trunk forward compatibility
@@ -29,17 +36,14 @@
 }
 
 build {
-	file mkdir "${worksrcpath}"
-	system "${configure.objc} \
+	system -W ${worksrcpath} "${configure.objc} \
 		${configure.objcflags} \
 		-mmacosx-version-min=10.6 \
 		-Wall \
-		${filespath}/certsync.m -o ${worksrcpath}/certsync \
+		certsync.m -o certsync \
 		${configure.ldflags} \
 		[get_canonical_archflags ld] \
 		-framework Foundation -framework Security -framework CoreServices"
-	file copy "${filespath}/update-ca-certificates" "${worksrcpath}/update-ca-certificates"
-	reinplace "s|@PREFIX@|${prefix}|g" "${worksrcpath}/update-ca-certificates"
 }
 
 destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130814/a877b532/attachment.html>


More information about the macports-changes mailing list