[116859] users/cal/ports/macports/mpstats/Portfile
cal at macports.org
cal at macports.org
Sat Feb 8 17:29:53 PST 2014
Revision: 116859
https://trac.macports.org/changeset/116859
Author: cal at macports.org
Date: 2014-02-08 17:29:53 -0800 (Sat, 08 Feb 2014)
Log Message:
-----------
mpstats: we don't need to read the hardware UUID when rand() will do
Modified Paths:
--------------
users/cal/ports/macports/mpstats/Portfile
Modified: users/cal/ports/macports/mpstats/Portfile
===================================================================
--- users/cal/ports/macports/mpstats/Portfile 2014-02-08 22:27:45 UTC (rev 116858)
+++ users/cal/ports/macports/mpstats/Portfile 2014-02-09 01:29:53 UTC (rev 116859)
@@ -3,7 +3,7 @@
PortSystem 1.0
name mpstats
-version 0.1.2
+version 0.1.3
categories sysutils
license BSD
platforms darwin
@@ -76,12 +76,10 @@
close $fd
}
- # the result of this will usually be too large for a 64bit integer, but we don't really care
- set hwuuid [exec system_profiler SPHardwareDataType | grep "Hardware UUID" | awk "/Hardware UUID/ {print \$3}" | tr -d - | bc]
xinstall -m 644 \
${launchd_dir}${startupitem.plist}.default \
${launchd_dir}${startupitem.plist}
- reinplace "s|@WEEKDAY@|[expr $hwuuid % 7]|g" \
+ reinplace "s|@WEEKDAY@|[expr {int(7 * rand())}]|g" \
${launchd_dir}${startupitem.plist}
reinplace "s|@HOUR@|[clock format [clock seconds] -format %H]|g" \
${launchd_dir}${startupitem.plist}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140208/2a7c8b89/attachment.html>
More information about the macports-changes
mailing list