Advertisement
Guest User

pv for cygwin README file

a guest
Sep 11th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.31 KB | None | 0 0
  1. ==
  2. pv
  3. ==
  4.  
  5. Pipe Viewer - is a terminal-based tool for monitoring the progress
  6. of data through a pipeline. It can be inserted into any normal
  7. pipeline between two processes to give a visual indication of how
  8. quickly data is passing through, how long it has taken, how near to
  9. completion it is, and an estimate of how long it will be until
  10. completion.
  11.  
  12. Additional support is available for multiple instances working in
  13. tandem, to given a visual indicator of relative throughput in a
  14. complex pipeline
  15.  
  16. See the man pages for a full list of features.
  17. man pv
  18.  
  19. Source homepage: http://www.ivarch.com/programs/pv.shtml
  20. Source download: http://www.ivarch.com/programs/sources/pv-1.4.12.tar.bz2
  21. Author: Andrew Wood <andrew.wood@ivarch.com>
  22. Cygwin maintainer: Aaron Schneider <cygwin@cygwin.com>
  23. License: Artistic License 2.0; see COPYING for details.
  24. Version: x86
  25.  
  26. -------------------------------------------------------------------------
  27.  
  28. Examples:
  29.  
  30. To simulate typing
  31. echo "You can simulate on-screen typing just like in the movies" | pv -qL 10
  32.  
  33. To view pipe transfer rate and size
  34. wget -qO - http://www.kernel.org/pub/linux/kernel/v1.0/linux-1.0.tar.gz | pv | gzip -d | pv > /dev/null
  35.  
  36. Limit the transfer rate and size of data over a pipe (100 MB at 3MBps)
  37. cat /dev/zero | pv -L 3m -Ss 100m > /dev/null
  38.  
  39. More useful commands (URL)
  40. http://www.commandlinefu.com/commands/matching/pv/cHY=/sort-by-votes
  41.  
  42. -------------------------------------------------------------------------
  43.  
  44. Runtime requirements:
  45. cygwin
  46. libintl8
  47. libiconv2
  48.  
  49. Build requirements:
  50. binutils
  51. gcc
  52. gettext-devel
  53. libiconv
  54. make
  55. readline
  56.  
  57. Build script additional requirements:
  58. coreutils
  59. findutils
  60. cygport
  61.  
  62. -------------------------------------------------------------------------
  63.  
  64. Compile with cygport
  65. cd /usr/src
  66. tar -jxvf pv-1.4.12-1-src.tar.bz2
  67. if you use setup to install this src package, it will be
  68. unpacked under /usr/src automatically.
  69. cygport pv-1.4.12-1.cygport all
  70.  
  71. This will create the following packages:
  72. /usr/src/pv-1.4.12-1.tar.bz2
  73. /usr/src/pv-1.4.12-1-src.tar.bz2
  74. /usr/src/pv-debuginfo-1.4.12-1.tar.bz2
  75.  
  76. Or use 'cygport pv-1.4.12-1.cygport prep' to create a patched source
  77. directory.
  78.  
  79. -------------------------------------------------------------------------
  80.  
  81. Manual compiling (from author's source code)
  82. Extract, configure and build:
  83. cd /usr/src
  84. wget http://www.ivarch.com/programs/sources/pv-1.4.12.tar.bz2
  85. tar -jxvf pv-1.4.12.tar.bz2
  86. cd pv-1.4.12
  87. ./configure
  88. make
  89.  
  90. Install:
  91. make install
  92.  
  93. Uninstall:
  94. make uninstall
  95.  
  96. Clean the sources:
  97. make clean
  98.  
  99. When compiling from source doc folder is not installed.
  100.  
  101. -------------------------------------------------------------------------
  102.  
  103. Package creation (for the first time)
  104. Based on http://cygwin.com/setup.html
  105.  
  106. Download and extract original author's source code
  107. cd /usr/src
  108. wget http://www.ivarch.com/programs/sources/pv-1.4.12.tar.bz2
  109. mkdir origsrc src
  110. tar -jxf pv-1.4.12.tar.bz2 -C origsrc
  111. tar -jxf pv-1.4.12.tar.bz2 -C src
  112. mkdir -p ./src/pv-1.4.12/CYGWIN-PATCHES/
  113.  
  114. Create a README, a setup.hint and pv-1.4.12-1.cygport files in unix format
  115. pv-1.4.12-1.cygport
  116. src/pv-1.4.12/CYGWIN-PATCHES/setup.hint
  117. src/pv-1.4.12/CYGWIN-PATCHES/README
  118.  
  119. Make any other change that you consider necessary to src folder contents
  120.  
  121. Create a patch to compare origsrc and src folders
  122. diff -Nrup origsrc src > pv-1.4.12-1.cygwin.patch
  123.  
  124. Add any other patches to PATCH_URI in cygport file. Collisions must be avoided.
  125.  
  126. Create all the packages with cygport
  127. cygport pv-1.4.12-1.cygport all
  128.  
  129. -------------------------------------------------------------------------
  130.  
  131. Files included in the binary package:
  132.  
  133. usr/bin/pv.exe
  134. usr/share/doc/Cygwin/pv.README
  135. usr/share/doc/pv/README
  136. usr/share/doc/pv/README.Cygwin
  137. usr/share/locale/de/LC_MESSAGES/pv.mo
  138. usr/share/locale/fr/LC_MESSAGES/pv.mo
  139. usr/share/locale/pl/LC_MESSAGES/pv.mo
  140. usr/share/locale/pt/LC_MESSAGES/pv.mo
  141. usr/share/man/man1/pv.1.gz
  142.  
  143. Files included in the source package:
  144.  
  145. pv-1.4.12-1.cygport
  146. pv-1.4.12-1.cygwin.patch
  147. pv-1.4.12.tar.bz2
  148.  
  149. Files included in the debug package:
  150. usr/lib/debug/usr/bin/pv.exe.dbg
  151. usr/src/debug/pv-1.4.12-1/src/main/debug.c
  152. usr/src/debug/pv-1.4.12-1/src/main/help.c
  153. usr/src/debug/pv-1.4.12-1/src/main/main.c
  154. usr/src/debug/pv-1.4.12-1/src/main/options.c
  155. usr/src/debug/pv-1.4.12-1/src/main/remote.c
  156. usr/src/debug/pv-1.4.12-1/src/main/version.c
  157. usr/src/debug/pv-1.4.12-1/src/pv/cursor.c
  158. usr/src/debug/pv-1.4.12-1/src/pv/display.c
  159. usr/src/debug/pv-1.4.12-1/src/pv/file.c
  160. usr/src/debug/pv-1.4.12-1/src/pv/loop.c
  161. usr/src/debug/pv-1.4.12-1/src/pv/number.c
  162. usr/src/debug/pv-1.4.12-1/src/pv/signal.c
  163. usr/src/debug/pv-1.4.12-1/src/pv/state.c
  164. usr/src/debug/pv-1.4.12-1/src/pv/transfer.c
  165.  
  166. -------------------------------------------------------------------------
  167.  
  168. Known bugs:
  169.  
  170. * The -c option does not work properly on Cygwin without cygserver running,
  171. if started near the bottom of the screen (IPC is needed to handle the
  172. terminal scrolling). To fix this, start cygserver before using pv -c.
  173.  
  174. * The -R option is not available on Cygwin without cygserver running
  175. (SYSV IPC is needed). To fix this, start cygserver before running the
  176. instance of pv you want, at runtime, to change the parameters of.
  177.  
  178. -------------------------------------------------------------------------
  179.  
  180. Cygwin version history: (For a list of changes in upstream releases,
  181. see http://www.ivarch.com/programs/pv.shtml)
  182.  
  183. 1.4.12-1:
  184. * pv version 1.4.12
  185. * Changed build requirements from gcc-4 to simply gcc
  186. * Changed in cygport from CC=gcc-4 to simply CC=gcc and CXX=g++-4 to simply CXX=g++
  187. * Removed previous patch pv-1.4.4-R-man-cyg.patch because the source code is already patched.
  188. * First version to have both x86 and x86_64.
  189.  
  190. 1.4.4-1:
  191. * pv version 1.4.4
  192. * Removed --disable-ipc from CYGCONF_ARGS in cygport file because now pv can run without cygserver.
  193. * Added patch pv-1.4.4-R-man-cyg.patch to display a warning in the man page in the BUGS section about the
  194. usage of -R option with Cygwin.
  195.  
  196. 1.3.9-2:
  197. * Added --disable-ipc to CYGCONF_ARGS in cygport file
  198.  
  199. 1.3.9-1:
  200. * pv version 1.3.9
  201.  
  202. 1.3.4-1:
  203. * pv version 1.3.4
  204. * First upstream release
  205. * First Cygwin maintainer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement