Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2012 14:54:09 GMT
From:      Danilo Egêa Gondolfo <danilogondolfo@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/173390: New Port - security/pev
Message-ID:  <201211051454.qA5Es9O9075099@red.freebsd.org>
Resent-Message-ID: <201211051500.qA5F000J022343@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         173390
>Category:       ports
>Synopsis:       New Port - security/pev
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 05 15:00:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Danilo Egêa Gondolfo
>Release:        FreeBSD 9.1-RC3
>Organization:
Universidade Estadual de Maringá
>Environment:
FreeBSD projeto 9.1-RC3 FreeBSD 9.1-RC3 #4 r242372M: Tue Oct 30 18:19:56 BRST 2012     root@projeto:/usr/obj/usr/src/sys/PROJETO  amd64
>Description:
Port of PEV.

pev is a multiplatform PE analysis toolkit that
includes tools to retrieve and parsing information
about Windows PE files.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pev
#	pev/pkg-descr
#	pev/distinfo
#	pev/Makefile
#	pev/pkg-plist
#	pev/files
#	pev/files/patch-pev-0.60-a__lib__libpe__Makefile
#	pev/files/patch-pev-0.60-a__Makefile
#	pev/files/patch-pev-0.60-a__src__Makefile
#
echo c - pev
mkdir -p pev > /dev/null 2>&1
echo x - pev/pkg-descr
sed 's/^X//' >pev/pkg-descr << 'd1199a80f26c328eeba90dcfdeb98c9e'
Xpev is a multiplatform PE analysis toolkit that
Xincludes tools to retrieve and parsing information
Xabout Windows PE files.
X
XWWW: http://sourceforge.net/projects/pev/
d1199a80f26c328eeba90dcfdeb98c9e
echo x - pev/distinfo
sed 's/^X//' >pev/distinfo << '01ca016e7a34a3175184d3d5d770a809'
XSHA256 (pev-0.60.tar.gz) = 133d4698a25f3b40b95f203d30ddea5895b41db2c8cb7724433cc4ce165c2b43
XSIZE (pev-0.60.tar.gz) = 216584
01ca016e7a34a3175184d3d5d770a809
echo x - pev/Makefile
sed 's/^X//' >pev/Makefile << '3ff578fde7d56776ba1c80b7dab538be'
X# $FreeBSD$
X
XPORTNAME=	pev
XPORTVERSION=	0.60
XCATEGORIES=	security
XMASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}/
X
XMAINTAINER=	danilogondolfo@gmail.com
XCOMMENT=	The PE analysis toolkit
X
XLICENSE=	GPLv3
XLICENSE_FILE=	${WRKSRC}/license
X
XLIB_DEPENDS=	pcre:${PORTSDIR}/devel/pcre
X
XUSE_GMAKE=	yes
XUSE_LDCONFIG=	yes
X
XPATCH_STRIP=	-p1
X
XMAN1=	readpe.1 pedis.1 pepack.1 pescan.1 \
X	rva2ofs.1 pesec.1 ofs2rva.1 pestr.1 pehash.1
X
XMANCOMPRESSED=	yes
X
X.include <bsd.port.mk>
3ff578fde7d56776ba1c80b7dab538be
echo x - pev/pkg-plist
sed 's/^X//' >pev/pkg-plist << 'c8c4ccea0f632d0be771aa05965944d6'
Xbin/readpe
Xbin/pedis
Xbin/pepack
Xbin/pescan
Xbin/rva2ofs
Xbin/pesec
Xbin/ofs2rva
Xbin/pestr
Xbin/pehash
Xlib/libpe.so
Xlib/libpe.so.1
Xlib/libpe.so.1.0
X%%DATADIR%%/userdb.txt
X@dirrm share/pev
c8c4ccea0f632d0be771aa05965944d6
echo c - pev/files
mkdir -p pev/files > /dev/null 2>&1
echo x - pev/files/patch-pev-0.60-a__lib__libpe__Makefile
sed 's/^X//' >pev/files/patch-pev-0.60-a__lib__libpe__Makefile << 'b994646466333be6084623dc497295d7'
X--- pev-0.60-b/lib/libpe/Makefile	2012-11-01 20:32:45.004068869 -0200
X+++ pev-0.60-a/lib/libpe/Makefile	2012-11-01 20:37:48.321666630 -0200
X@@ -5,10 +5,10 @@
X 
X ####### Compiler, tools and options
X 
X-PREFIX = /usr
X+PREFIX = /usr/local
X DEST = $(DESTDIR)/$(PREFIX)/lib
X VERSION = 1.0
X-override CFLAGS += -W -Wall -Wextra -pedantic -std=c99 -c
X+override CFLAGS += -W -Wall -Wextra -pedantic -std=c99 -shared -o libpe.so
X ifneq ($(PLATFORM_OS), CYGWIN)
X 	override CFLAGS += -fPIC
X endif
X@@ -46,6 +46,11 @@
X 	$(INSTALL) $(LIBNAME).so $(DEST)/$(LIBNAME).so.$(VERSION)
X 	cd $(DEST); $(SYMLINK) $(LIBNAME).so.$(VERSION) $(LIBNAME).so
X 	cd $(DEST); $(SYMLINK) $(LIBNAME).so.$(VERSION) $(LIBNAME).so.1
X+else ifeq ($(PLATFORM_OS), FreeBSD)
X+	$(STRIP) $(LIBNAME).so
X+	$(INSTALL) $(LIBNAME).so $(DEST)/$(LIBNAME).so.$(VERSION)
X+	cd $(DEST); $(SYMLINK) $(LIBNAME).so.$(VERSION) $(LIBNAME).so
X+	cd $(DEST); $(SYMLINK) $(LIBNAME).so.$(VERSION) $(LIBNAME).so.1
X else ifeq ($(PLATFORM_OS), Darwin)
X 	$(STRIP) $(LIBNAME).dylib
X 	$(INSTALL) $(LIBNAME).dylib $(DEST)/$(LIBNAME).$(VERSION).dylib
Xdiff -ur pev-0.60-b/src/Makefile pev-0.60-a/src/Makefile
b994646466333be6084623dc497295d7
echo x - pev/files/patch-pev-0.60-a__Makefile
sed 's/^X//' >pev/files/patch-pev-0.60-a__Makefile << '73e93048e943c5c604207bbb04dfa687'
X--- pev-0.60-b/Makefile	2012-11-01 20:32:45.016065672 -0200
X+++ pev-0.60-a/Makefile	2012-11-01 20:32:59.815066896 -0200
X@@ -1,6 +1,6 @@
X LIBPE_DIR = lib/libpe
X PEV_DIR = src
X-MAKE = make
X+MAKE = gmake
X VERSION = 0.60
X ZIPFILE = pev.zip
X 
Xdiff -ur pev-0.60-b/lib/libpe/Makefile pev-0.60-a/lib/libpe/Makefile
73e93048e943c5c604207bbb04dfa687
echo x - pev/files/patch-pev-0.60-a__src__Makefile
sed 's/^X//' >pev/files/patch-pev-0.60-a__src__Makefile << '94a61d6c663c3ea25126145c2949cb65'
X--- pev-0.60-b/src/Makefile	2012-11-01 20:32:45.009065928 -0200
X+++ pev-0.60-a/src/Makefile	2012-11-01 20:49:16.857787046 -0200
X@@ -5,12 +5,12 @@
X 
X ####### Compiler, tools and options
X 
X-PREFIX = /usr
X+PREFIX = /usr/local
X DEST = $(DESTDIR)/$(PREFIX)/bin
X LIBPE = ../lib/libpe
X LIBUDIS86 = ../lib/libudis86
X-override LDFLAGS += -L$(LIBPE) -lpe
X-override CFLAGS += -I$(LIBPE) -W -Wall -Wextra -std=c99 -pedantic
X+override LDFLAGS += -L/usr/local/lib -L$(LIBPE) -lpe
X+override CFLAGS += -I/usr/local/include -I$(LIBPE) -W -Wall -Wextra -std=c99 -pedantic
X ifeq ($(PLATFORM_OS), Darwin)
X 	# We disable warnings for deprecated declarations since Apple deprecated OpenSSL in Mac OS X 10.7
X 	override CFLAGS += -Wno-deprecated-declarations
X@@ -20,9 +20,9 @@
X SOURCES = output.c
X PROGS = readpe pedis pepack pescan rva2ofs pesec ofs2rva pestr pehash pestr
X INSTALL = install -m 0755
X-SHAREDIR = /usr/share/pev
X+SHAREDIR = /usr/local/share/pev
X MAN = ../doc/manpages
X-MANDIR = /usr/share/man/man1
X+MANDIR = /usr/local/man/man1
X 
X ####### Build rules
X 
94a61d6c663c3ea25126145c2949cb65
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211051454.qA5Es9O9075099>