pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/time/gnutime Import of gnutime-1.7



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1ed338dc7dec
branches:  trunk
changeset: 475836:1ed338dc7dec
user:      reed <reed%pkgsrc.org@localhost>
date:      Thu May 27 21:52:45 2004 +0000

description:
Import of gnutime-1.7
Report user, system, and real time used by a process

>From pkgsrc-wip's wip/time.

diffstat:

 time/gnutime/DESCR            |    6 +
 time/gnutime/Makefile         |   21 +++++
 time/gnutime/PLIST            |    2 +
 time/gnutime/distinfo         |    6 +
 time/gnutime/patches/patch-aa |  169 ++++++++++++++++++++++++++++++++++++++++++
 time/gnutime/patches/patch-ab |   15 +++
 6 files changed, 219 insertions(+), 0 deletions(-)

diffs (243 lines):

diff -r d6ffb1135a4c -r 1ed338dc7dec time/gnutime/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/gnutime/DESCR        Thu May 27 21:52:45 2004 +0000
@@ -0,0 +1,6 @@
+The time utility executes and measures the CPU, time, and memory
+resources used, such as pagefaults, swaps, memory, and user, system,
+and real time used by a process.
+
+GNU time can format the output in arbitrary ways by using a
+printf-style format string to include various resource measurements.
diff -r d6ffb1135a4c -r 1ed338dc7dec time/gnutime/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/gnutime/Makefile     Thu May 27 21:52:45 2004 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/05/27 21:52:45 reed Exp $
+#
+
+DISTNAME=              time-1.7
+PKGNAME=               gnu${DISTNAME}
+CATEGORIES=            time
+MASTER_SITES=          ${MASTER_SITE_GNU:=time/}
+
+MAINTAINER=            reed%reedmedia.net@localhost
+HOMEPAGE=              http://www.gnu.org/directory/GNU/time.html
+COMMENT=               Report user, system, and real time used by a process
+
+USE_BUILDLINK3=                yes
+GNU_CONFIGURE=         yes
+INFO_FILES=            time.info
+
+CONFIGURE_ARGS+=       --program-prefix=${GNU_PROGRAM_PREFIX}
+PLIST_SUBST+=          GNU_PROGRAM_PREFIX="${GNU_PROGRAM_PREFIX}"
+BUILD_DEFS+=           GNU_PROGRAM_PREFIX
+
+.include "../../mk/bsd.pkg.mk"
diff -r d6ffb1135a4c -r 1ed338dc7dec time/gnutime/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/gnutime/PLIST        Thu May 27 21:52:45 2004 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/05/27 21:52:46 reed Exp $
+bin/${GNU_PROGRAM_PREFIX}time
diff -r d6ffb1135a4c -r 1ed338dc7dec time/gnutime/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/gnutime/distinfo     Thu May 27 21:52:45 2004 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/05/27 21:52:46 reed Exp $
+
+SHA1 (time-1.7.tar.gz) = dde0c28c7426960736933f3e763320680356cc6a
+Size (time-1.7.tar.gz) = 103066 bytes
+SHA1 (patch-aa) = 73cf3ec312be4df97340a77f66c29b59c2afbf18
+SHA1 (patch-ab) = 4b9de26d8ad1356fdef77d8d72903f6760b88b42
diff -r d6ffb1135a4c -r 1ed338dc7dec time/gnutime/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/gnutime/patches/patch-aa     Thu May 27 21:52:45 2004 +0000
@@ -0,0 +1,169 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/05/27 21:52:46 reed Exp $
+
+--- time.info.orig     2004-04-30 12:16:05.573682624 -0700
++++ time.info  2004-04-30 12:16:10.970862128 -0700
+@@ -1,5 +1,9 @@
+-This is Info file ./time.info, produced by Makeinfo-1.55 from the input
+-file time.texi.
++This is time.info, produced by makeinfo version 4.6 from time.texi.
++
++INFO-DIR-SECTION Individual utilities
++START-INFO-DIR-ENTRY
++* time: (time).                 Report resource utilization.
++END-INFO-DIR-ENTRY
+ 
+    This file documents the the GNU `time' command for running programs
+ and summarizing the system resources they use.
+@@ -31,7 +35,7 @@
+ 
+ * Resource Measurement::  Measuring program resource use.
+ 
+- -- The Detailed Node Listing --
++ --- The Detailed Node Listing ---
+ 
+ Measuring Program Resource Use
+ 
+@@ -55,17 +59,17 @@
+ Measuring Program Resource Use
+ ******************************
+ 
+-   The `time' command runs another program, then displays information
++The `time' command runs another program, then displays information
+ about the resources used by that program, collected by the system while
+ the program was running.  You can select which information is reported
+-and the format in which it is shown (*note Setting Format::.), or have
++and the format in which it is shown (*note Setting Format::), or have
+ `time' save the information in a file instead of displaying it on the
+-screen (*note Redirecting::.).
++screen (*note Redirecting::).
+ 
+    The resources that `time' can report on fall into the general
+ categories of time, memory, and I/O and IPC calls.  Some systems do not
+ provide much information about program resource use; `time' reports
+-unavailable information as zero values (*note Accuracy::.).
++unavailable information as zero values (*note Accuracy::).
+ 
+    The format of the `time' command is:
+ 
+@@ -105,8 +109,8 @@
+ Setting the Output Format
+ =========================
+ 
+-   `time' uses a "format string" to determine which information to
+-display about the resources used by the command it runs.  *Note Format
++`time' uses a "format string" to determine which information to display
++about the resources used by the command it runs.  *Note Format
+ String::, for the interpretation of the format string contents.
+ 
+    You can specify a format string with the command line options listed
+@@ -144,7 +148,7 @@
+ The Format String
+ =================
+ 
+-   The "format string" controls the contents of the `time' output.  It
++The "format string" controls the contents of the `time' output.  It
+ consists of "resource specifiers" and "escapes", interspersed with
+ plain text.
+ 
+@@ -174,7 +178,7 @@
+    The resource specifiers, which are a superset of those recognized by
+ the `tcsh' builtin `time' command, are listed below.  Not all resources
+ are measured by all versions of Unix, so some of the values might be
+-reported as zero (*note Accuracy::.).
++reported as zero (*note Accuracy::).
+ 
+ * Menu:
+ 
+@@ -299,20 +303,20 @@
+ Redirecting Output
+ ==================
+ 
+-   By default, `time' writes the resource use statistics to the
+-standard error stream.  The options below make it write the statistics
+-to a file instead.  Doing this can be useful if the program you're
+-running writes to the standard error or you're running `time'
+-noninteractively or in the background.
++By default, `time' writes the resource use statistics to the standard
++error stream.  The options below make it write the statistics to a file
++instead.  Doing this can be useful if the program you're running writes
++to the standard error or you're running `time' noninteractively or in
++the background.
+ 
+ `-o FILE'
+ `--output=FILE'
+      Write the resource use statistics to FILE.  By default, this
+-     *overwrites* the file, destroying the file's previous contents.
++     _overwrites_ the file, destroying the file's previous contents.
+ 
+ `-a'
+ `--append'
+-     *Append* the resource use information to the output file instead
++     _Append_ the resource use information to the output file instead
+      of overwriting it.  This option is only useful with the `-o' or
+      `--output' option.
+ 
+@@ -384,11 +388,11 @@
+ Accuracy
+ ========
+ 
+-   The elapsed time is not collected atomically with the execution of
+-the program; as a result, in bizarre circumstances (if the `time'
+-command gets stopped or swapped out in between when the program being
+-timed exits and when `time' calculates how long it took to run), it
+-could be much larger than the actual execution time.
++The elapsed time is not collected atomically with the execution of the
++program; as a result, in bizarre circumstances (if the `time' command
++gets stopped or swapped out in between when the program being timed
++exits and when `time' calculates how long it took to run), it could be
++much larger than the actual execution time.
+ 
+    When the running time of a command is very nearly zero, some values
+ (e.g., the percentage of CPU used) may be reported as either zero (which
+@@ -417,7 +421,7 @@
+ Running the `time' Command
+ ==========================
+ 
+-   The format of the `time' command is:
++The format of the `time' command is:
+ 
+      time [option...] COMMAND [ARG...]
+ 
+@@ -437,7 +441,7 @@
+ 
+ `-a'
+ `--append'
+-     *Append* the resource use information to the output file instead
++     _Append_ the resource use information to the output file instead
+      of overwriting it.
+ 
+ `-f FORMAT'
+@@ -462,17 +466,17 @@
+ 
+ 
+ Tag Table:
+-Node: Top934
+-Node: Resource Measurement1725
+-Node: Setting Format3678
+-Node: Format String4907
+-Node: Time Resources6214
+-Node: Memory Resources6844
+-Node: I/O Resources7549
+-Node: Command Info8747
+-Node: Redirecting8964
+-Node: Examples9754
+-Node: Accuracy12064
+-Node: Invoking time13586
++Node: Top1054
++Node: Resource Measurement1847
++Node: Setting Format3794
++Node: Format String5020
++Node: Time Resources6323
++Node: Memory Resources6953
++Node: I/O Resources7658
++Node: Command Info8856
++Node: Redirecting9073
++Node: Examples9860
++Node: Accuracy12170
++Node: Invoking time13689
+ 
+ End Tag Table
diff -r d6ffb1135a4c -r 1ed338dc7dec time/gnutime/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/gnutime/patches/patch-ab     Thu May 27 21:52:45 2004 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/05/27 21:52:46 reed Exp $
+
+So it doesn't install time.info.orig too.
+
+--- Makefile.in.orig   Thu Jul 11 14:07:03 1996
++++ Makefile.in
+@@ -67,7 +67,7 @@ time_LDADD = $(LDADD)
+ 
+ MAKEINFO = makeinfo
+ TEXI2DVI = texi2dvi
+-INFOS = time.info*
++INFOS = time.info
+ INFO_DEPS = time.info
+ DVIS = time.dvi
+ TEXINFOS = time.texi



Home | Main Index | Thread Index | Old Index