[116806] users/jmr/mpstats

jmr at macports.org jmr at macports.org
Fri Feb 7 12:37:33 PST 2014


Revision: 116806
          https://trac.macports.org/changeset/116806
Author:   jmr at macports.org
Date:     2014-02-07 12:37:33 -0800 (Fri, 07 Feb 2014)
Log Message:
-----------
mpstats port: generate uuid on first activation rather than during destroot

Modified Paths:
--------------
    users/jmr/mpstats/mpstats.conf
    users/jmr/mpstats/port/Portfile

Modified: users/jmr/mpstats/mpstats.conf
===================================================================
--- users/jmr/mpstats/mpstats.conf	2014-02-07 20:36:56 UTC (rev 116805)
+++ users/jmr/mpstats/mpstats.conf	2014-02-07 20:37:33 UTC (rev 116806)
@@ -4,5 +4,8 @@
 # Where to submit usage data
 stats_url       localhost
 
-# Unique identifier for usage statistics
+# Unique identifier for usage statistics - should be of the form produced by
+# `uuidgen`. Note that mpstats.conf.default has a placeholder value here, as
+# the id needs to be unique for each installation and so can't be generated
+# in advance or included in the archive.
 stats_id        @STATS_UUID@

Modified: users/jmr/mpstats/port/Portfile
===================================================================
--- users/jmr/mpstats/port/Portfile	2014-02-07 20:36:56 UTC (rev 116805)
+++ users/jmr/mpstats/port/Portfile	2014-02-07 20:37:33 UTC (rev 116806)
@@ -19,12 +19,11 @@
 master_sites        sourceforge:macports
 
 use_bzip2           yes
-checksums           rmd160 8fae2cb42569278cca5ea631a3805802de634971 \
-                    sha256 cd3f54df954e8091f01cf358af54090ac27bc8af8db259f42dee5875caf5a6ca
+checksums           rmd160 6411865c289d95f15eec870fd3aa8d1ffa7c4502 \
+                    sha256 43a7c0e5956acf96f6a3e9c913229c6decbeabb5a4e5645a829a7fca7878a7ef
 
 configure {
     reinplace "s|set prefix /opt/local|set prefix ${prefix}|" ${worksrcpath}/mpstats.tcl
-    reinplace "s|@STATS_UUID@|[exec uuidgen]|" ${worksrcpath}/mpstats.conf
 }
 build {}
 destroot {
@@ -36,6 +35,7 @@
 post-activate {
     if {![file exists ${prefix}/etc/mpstats.conf]} {
         copy ${prefix}/etc/mpstats.conf.default ${prefix}/etc/mpstats.conf
+        reinplace "s|@STATS_UUID@|[exec uuidgen]|" ${prefix}/etc/mpstats.conf
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140207/eddfe84c/attachment.html>


More information about the macports-changes mailing list