Date: Tuesday, August 26, 2014 @ 17:10:15
  Author: fyan
Revision: 117915

upgpkg: tcpflow 1.4.4-2

add patch for FS#41697

Added:
  tcpflow/trunk/FS41697.patch
Modified:
  tcpflow/trunk/PKGBUILD

---------------+
 FS41697.patch |   11 +++++++++++
 PKGBUILD      |   10 +++++++---
 2 files changed, 18 insertions(+), 3 deletions(-)

Added: FS41697.patch
===================================================================
--- FS41697.patch                               (rev 0)
+++ FS41697.patch       2014-08-26 15:10:15 UTC (rev 117915)
@@ -0,0 +1,11 @@
+--- a/src/tcpip.cpp
++++ b/src/tcpip.cpp
+@@ -262,7 +262,7 @@ void tcpip::print_packet(const u_char *d
+     else if(demux.opt.output_strip_nonprint){
+       for(const u_char *cc = data;cc<data+length;cc++){
+           if(isprint(*cc) || (*cc=='\n') || (*cc=='\r')){
+-              written += fputc(*cc,stdout);
++              written += (fputc(*cc,stdout)!=EOF);
+           }
+       }
+     }

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2014-08-26 14:59:01 UTC (rev 117914)
+++ PKGBUILD    2014-08-26 15:10:15 UTC (rev 117915)
@@ -5,7 +5,7 @@
 
 pkgname=tcpflow
 pkgver=1.4.4
-pkgrel=1
+pkgrel=2
 pkgdesc="Captures data transmitted as part of TCP connections then stores the 
data conveniently"
 arch=('i686' 'x86_64')
 url="http://afflib.org/software/tcpflow";
@@ -15,11 +15,13 @@
 source=("git+https://github.com/simsong/$pkgname.git#tag=$pkgname-$pkgver";
         'git+https://github.com/simsong/be13_api.git'
         'git+https://github.com/simsong/dfxml.git'
-        'git+https://github.com/joyent/http-parser.git')
+        'git+https://github.com/joyent/http-parser.git'
+        'FS41697.patch')
 md5sums=('SKIP'
          'SKIP'
          'SKIP'
-         'SKIP')
+         'SKIP'
+         'b4e66e456beffe28414e55fee913a84c')
 
 prepare() {
   cd $pkgname
@@ -28,6 +30,8 @@
   git config submodule."src/dfxml".url "$srcdir/dfxml"
   git config submodule."src/http-parser".url "$srcdir/http-parser"
   git submodule update
+
+  patch -p1 -i ../FS41697.patch
 }
 
 build() {

Reply via email to