From antoine@peanut.dreadbsd.org  Tue Dec 11 20:43:09 2007
Return-Path: <antoine@peanut.dreadbsd.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 7A34016A418
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 Dec 2007 20:43:09 +0000 (UTC)
	(envelope-from antoine@peanut.dreadbsd.org)
Received: from peanut.dreadbsd.org (peanut.dreadbsd.org [82.67.196.50])
	by mx1.freebsd.org (Postfix) with ESMTP id D602513C455
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 Dec 2007 20:43:08 +0000 (UTC)
	(envelope-from antoine@peanut.dreadbsd.org)
Received: from peanut.dreadbsd.org (localhost [127.0.0.1])
	by peanut.dreadbsd.org (8.14.2/8.14.2) with ESMTP id lBBKFeVa014398
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 Dec 2007 21:15:40 +0100 (CET)
	(envelope-from antoine@peanut.dreadbsd.org)
Received: (from antoine@localhost)
	by peanut.dreadbsd.org (8.14.2/8.14.2/Submit) id lBBKFeoq014397;
	Tue, 11 Dec 2007 21:15:40 +0100 (CET)
	(envelope-from antoine)
Message-Id: <200712112015.lBBKFeoq014397@peanut.dreadbsd.org>
Date: Tue, 11 Dec 2007 21:15:40 +0100 (CET)
From: Antoine Brodin <antoine.brodin@laposte.net>
Reply-To: Antoine Brodin <antoine.brodin@laposte.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [maintainer] update devel/py-pefile to 1.2.8
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         118558
>Category:       ports
>Synopsis:       [maintainer] update devel/py-pefile to 1.2.8
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lwhsu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 11 20:50:01 UTC 2007
>Closed-Date:    Wed Dec 12 20:21:47 UTC 2007
>Last-Modified:  Wed Dec 12 20:30:01 UTC 2007
>Originator:     Antoine Brodin
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
none
>Environment:
System: FreeBSD barton.dreadbsd.org. 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Mon Dec 3 17:11:47 CET 2007 root@barton.dreadbsd.org.:/usr/obj/usr/src/sys/BARTON i386


>Description:
Latest changes:
    * Bumped version number to 1.2.8
    * As suggested by Jim Clausing. Added computation of MD5, SHA-1, SHA-256 and SHA-512 on a per-section basis. The results are always reported when invoking the dump_info() method in the PE instance. SHA-256 and SHA-512 are calculated only in Python 2.5 onwards which includes them in the hashlib module. The SectionStructure_ instances now sport the following methods: get_hash_sha1(), get_hash_sha256(), get_hash_sha512(), get_hash_md5()
    * Faster entropy calculation by Gergely Erdelyi
    * Added some intelligence handling unicode strings in the resources information. Strings in the resources seem to always be Pascal style, added support for those
    * Changed some loops iterating using range() to use xrange() instead. It will make the code more robust/faster whenever invalid large numbers of elements are specified in different arrays
    * As per c1de0x suggestion, added set_data() method to SectionStructure_
    * Added get_entropy() method to SectionStructure_. Now it's only calculated on demand or when doing a dump_info()
    * c1de0x pointed out a redundant length check in __unpack_data__ and __unpack__. Now the exception raised by the latter is caught by the former and a warning added if a structure can't be parsed because of missing data
    * Fixed bug parsing export directory. Warning messages are added if it's found to be invalid
    * Fixed bug parsing the IAT. Some broken samples could crash pefile. The invalid IAT is now reported in the warnings
    * New method: relocate_image(new_ImageBase) will apply the relocation information, if any, to the image
    * get_memory_mapped_image() now supports and additional keyword argument, ImageBase_. By specifying an address it will return a data relocated (if the PE contains relocation information) as if it had been relocated to the new ImageBase_
    * Added full family of bytes/word/dword/qword manipulation methods (needed by the relocation functionality):
    * get_data_from_dword(dword), get_dword_from_data(data, offset), get_dword_at_rva(rva), get_dword_from_offset(offset), set_dword_at_rva(rva, dword), set_dword_at_offset(offset, dword)
    * get_data_from_word(word), get_word_from_data(data, offset), get_word_at_rva(rva), get_word_from_offset(offset), set_word_at_rva(rva, word), set_word_at_offset(offset, word)
    * get_data_from_qword(qword), get_qword_from_data(data, offset), get_qword_at_rva(rva), get_qword_from_offset(offset), set_qword_at_rva(rva, qword), set_qword_at_offset(offset, qword)
    * set_bytes_at_rva(rva, data), set_bytes_at_offset(offset, data) 
>How-To-Repeat:
>Fix:


--- py-pefile.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/py-pefile/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile	16 Sep 2007 03:01:00 -0000	1.8
+++ Makefile	11 Dec 2007 20:06:03 -0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	pefile
-PORTVERSION=	1.2.7
+PORTVERSION=	1.2.8
 CATEGORIES=	devel python
 MASTER_SITES=	http://pefile.googlecode.com/files/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/devel/py-pefile/distinfo,v
retrieving revision 1.8
diff -u -r1.8 distinfo
--- distinfo	16 Sep 2007 03:01:00 -0000	1.8
+++ distinfo	11 Dec 2007 20:06:21 -0000
@@ -1,3 +1,3 @@
-MD5 (pefile-1.2.7.tar.gz) = 5704ccbf0dac0b525c7cacade1ce2e86
-SHA256 (pefile-1.2.7.tar.gz) = 5c81c4aa804613611219c440bac526d10f4d2b546cdd3fbd677ac202eb81b85d
-SIZE (pefile-1.2.7.tar.gz) = 30437
+MD5 (pefile-1.2.8.tar.gz) = 39a92648747368b7e4f604deae576627
+SHA256 (pefile-1.2.8.tar.gz) = 04d4fc64617ffd21904e73bf28550d846a521823949e869c583c09333527642f
+SIZE (pefile-1.2.8.tar.gz) = 35918
--- py-pefile.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-python 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Dec 11 20:50:08 UTC 2007 
Responsible-Changed-Why:  
freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118558 
Responsible-Changed-From-To: freebsd-python->lwhsu 
Responsible-Changed-By: lwhsu 
Responsible-Changed-When: Wed Dec 12 03:34:42 UTC 2007 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118558 
State-Changed-From-To: open->closed 
State-Changed-By: lwhsu 
State-Changed-When: Wed Dec 12 20:21:46 UTC 2007 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118558 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/118558: commit references a PR
Date: Wed, 12 Dec 2007 20:21:35 +0000 (UTC)

 lwhsu       2007-12-12 20:21:30 UTC
 
   FreeBSD ports repository
 
   Modified files:
     devel/py-pefile      Makefile distinfo 
   Log:
   - Update to 1.2.8
   
   PR:             ports/118558
   Submitted by:   Antoine Brodin <antoine.brodin AT laposte.net> (maintainer)
   
   Revision  Changes    Path
   1.9       +1 -1      ports/devel/py-pefile/Makefile
   1.9       +3 -3      ports/devel/py-pefile/distinfo
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
